EasyDeepLearn

What is Huber loss and why is it a compromise between MAE and MSE?

medium

Answer

  • Huber loss is quadratic for  r\mathrm{for}\; \mid r| ≤ delta (like MSE) and linear beyond delta (like MAE), joined smoothly at delta.
  • Combines MSE's differentiability near zero (good gradients for optimization) with MAE's robustness to outliers (linear tail doesn't blow up on rare huge errors). delta acts as an outlier threshold — typical values are 1    σy1\; \cdot \;\sigma_{y} or set via CV.
  • Used in robust regression, Huber-loss neural nets, and reinforcement learning (Huber for value updates).
Check yourself — multiple choice
  • Huber is always the same as MSE
  • Quadratic near zero, linear beyond δ — MSE's gradients + MAE's outlier robustness
  • Huber only works for classification
  • Huber replaces cross-validation

Huber = quadratic small errors + linear big errors ⇒ smooth and robust.

#metrics-regression#regression

Practise Supervised Learning

215 interview questions in this topic.

Related questions