Improving Calibration by Relating Focal Loss, Temperature Scaling, and Properness
Not on the map. Why?
Abstract (arXiv)
Proper losses such as cross-entropy incentivize classifiers to produce class probabilities that are well-calibrated on the training data. Due to the generalization gap, these classifiers tend to become overconfident on the test data, mandating calibration methods such as temperature scaling. The focal loss is not proper, but training with it has been shown to often result in classifiers that are better calibrated on test data. Our first contribution is a simple explanation about why focal loss training often leads to better calibration than cross-entropy training. For this, we prove that focal loss can be decomposed into a confidence-raising transformation and a proper loss. This is why focal loss pushes the model to provide under-confident predictions on the training data, resulting in being better calibrated on the test data, due to the generalization gap. Secondly, we reveal a strong connection between temperature scaling and focal loss through its confidence-raising transformation, which we refer to as the focal calibration map. Thirdly, we propose focal temperature scaling - a new post-hoc calibration method combining focal calibration and temperature scaling. Our experiments on three image classification datasets demonstrate that focal temperature scaling outperforms standard temperature scaling.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 10 of its 18 references that are in the map. First posted on arXiv 21 Aug 2024.
Builds on
10 of 18 references.
References · 10
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2019Beyond temperature scaling: Obtaining well-calibrated multiclass probabilities with Dirichlet calibrationcited by 364
- 2020Calibrating Deep Neural Networks using Focal Losscited by 357
- 2019Sparse Sequence-to-Sequence Modelscited by 170
- 2023Calibration in Deep Learning: A Survey of the State-of-the-Artcited by 75
- 2021Classifier Calibration: A survey on how to assess and improve predicted class probabilitiescited by 73
- 2019Robust Bi-Tempered Logistic Loss Based on Bregman Divergencescited by 61
- 2022AdaFocal: Calibration-aware Adaptive Focal Losscited by 32
- 2020On Focal Loss for Class-Posterior Probability Estimation: A Theoretical Perspectivecited by 21
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026Toward Calibrated Mixture-of-Experts Under Distribution Shiftcited by 1
- 2025Revisiting Reweighted Risk for Calibration: AURC, Focal, and Inverse Focal Losscited by 0
- 2026Beyond Caption-Based Queries for Video Moment Retrievalcited by 0
- 2026Structured Proper Loss Geometries for Multiclass Classification: Theory and Controlled Empirical Evaluationcited by 0
- 2026Structured Proper Loss Geometries for Multiclass Classification: Theory and Controlled Empirical Evaluation28 Jun 2026
- 2026Toward Calibrated Mixture-of-Experts Under Distribution Shift18 Jun 2026
- 2026Beyond Caption-Based Queries for Video Moment Retrieval2 Mar 2026
- 2025Revisiting Reweighted Risk for Calibration: AURC, Focal, and Inverse Focal Loss29 May 2025