What are the tradeoffs of training on a surrogate loss instead of the target evaluation metric?
Last updated
Metrics like accuracy, F1 or AUC are non-differentiable, so we train on smooth surrogates (log loss, hinge). These are optimizable, often convex, give calibrated probabilities, and are classification-calibrated in the limit.
Cost: mismatch with the real metric (lower log loss need not raise F1 or NDCG), per-example losses miss set-level or ranking structure, and unbounded losses are outlier-sensitive.
Mitigate by tuning thresholds, early stopping and model selection on the true metric, or by using metric-aware losses (cost weighting, LambdaRank).