What is log-cosh loss and its advantage over Huber?
mediumAnswer
- L(y, ŷ) = log(cosh(y - ŷ)) ≈ for small errors -ŷ| - for large — same behavior as Huber but smooth everywhere (all derivatives exist).
- No δ hyperparameter.
- Slightly more expensive to compute.
- Use it when you want Huber's outlier-robustness without tuning δ, and gradient smoothness matters (e.g., second-order optimizers).
Check yourself — multiple choice
- Discontinuous
- — Huber-like behavior but smooth everywhere and no hyperparameter
- Same as MAE
- Only for classification
log-cosh: smooth everywhere Huber-alternative, no δ.
#losses
Practise Deep Learning
214 interview questions in this topic.
Related questions
- Why compute softmax + cross-entropy jointly via log-sum-exp?
- How should the output head be designed for a regression task with a strictly positive target?
- How is the output head different for multi-label vs multi-class classification?
- What is label smoothing and why does it help?
- How does YOLO / SSD / RetinaNet differ from two-stage detection?
- Briefly, what do BLEU and ROUGE measure?