The Loss Function Taxonomy & Gradient Dynamics framework defines the formal mathematical objectives guiding gradient optimization across regression, classification, ranking, and metric learning; the taxonomy spans: 1) Regression: MSE (L2, quadratic penalties sensitive to outliers), MAE (L1, median-robust but non-differentiable at 0), Huber Loss (smooth piecewise combination of L1 and L2); 2) Classification: Binary Cross-Entropy, Multi-class Softmax Cross-Entropy, Focal Loss (modulating factor
γ suppressing easy-negative gradients); 3) Metric Learning: Triplet Margin Loss and InfoNCE (temperature-scaled contrastive cross-entropy).