Lune

CVPR2021Top-tier venue

On Focal Loss for Class-Posterior Probability Estimation: A Theoretical Perspective

Nontawat Charoenphakdee, Jayakorn Vongkulbhisal, Nuttapong Chairatanakul, Masashi Sugiyama

Abstract

The focal loss has demonstrated its effectiveness in many real-world applications such as object detection and image classification, but its theoretical understanding has been limited so far. In this paper, we first prove that the focal loss is classification-calibrated, i.e., its minimizer surely yields the Bayes-optimal classifier and thus the use of the focal loss in classification can be theoretically justified. However, we also prove a negative fact that the focal loss is not strictly proper, i.e., the confidence score of the classifier obtained by focal loss minimization does not match the true class-posterior probability and thus it is not reliable as a class-posterior probability estimator. To mitigate this problem, we next prove that a particular closed-form transformation of the confidence score allows us to recover the true class-posterior probability. Through experiments on benchmark datasets, we demonstrate that our proposed transformation significantly improves the accuracy of class-posterior probability estimation.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Classification with Rejection Based on Cost-sensitive Classification cites Consistent Estimators for Learning to Defer to an Expert
  • Generalizing Consistent Multi-Class Classification with Rejection to be Compatible with Arbitrary Losses cites Classification with Rejection Based on Cost-sensitive Classification
  • Generalizing Consistent Multi-Class Classification with Rejection to be Compatible with Arbitrary Losses cites Consistent Estimators for Learning to Defer to an Expert
  • Dual Focal Loss for Calibration cites Calibrating Deep Neural Networks using Focal Loss
  • Beyond One-Hot Labels: Semantic Mixing for Model Calibration cites Calibrating Deep Neural Networks using Focal Loss
  • Beyond One-Hot Labels: Semantic Mixing for Model Calibration cites Dual Focal Loss for Calibration
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Dual Focal Loss for CalibrationLinwei Tao, Minjing Dong, Chang XuICML 2023 · 56 citations
  2. Generalizing Consistent Multi-Class Classification with Rejection to be Compatible with Arbitrary LossesYuzhou Cao, Tianchi Cai, Lei Feng, Lihong Gu et al.NeurIPS 2022 · 42 citations
  3. Learning to Find Good Models in RANSACDaniel Barath, Luca Cavalli, Marc PollefeysCVPR 2022 · 41 citations
  4. Towards Calibrated Multi-Label Deep Neural NetworksJiacheng Cheng, Nuno VasconcelosCVPR 2024
  5. Beyond One-Hot Labels: Semantic Mixing for Model CalibrationHaoyang Luo, Linwei Tao, Minjing Dong, Chang XuICML 2025

Builds on4

  1. Calibrating Deep Neural Networks using Focal LossJishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz et al.NeurIPS 2020 · 674 citations
  2. Peer Loss Functions: Learning from Noisy Labels without Knowing Noise RatesYang Liu, Hongyi GuoICML 2020 · 280 citations
  3. Consistent Estimators for Learning to Defer to an ExpertHussein Mozannar, David A. SontagICML 2020 · 267 citations
  4. Classification with Rejection Based on Cost-sensitive ClassificationNontawat Charoenphakdee, Zhenghang Cui, Yivan Zhang, Masashi SugiyamaICML 2021 · 78 citations

Related papers

  1. Uncertainty Weighted Gradients for Model CalibrationJinxu Lin, Linwei Tao, Minjing Dong, Chang XuCVPR 2025
  2. Beyond calibration: estimating the grouping loss of modern neural networksAlexandre Perez-Lebel, Marine Le Morvan, Gaël VaroquauxICLR 2023 · 5 citations
  3. Improved Balanced Classification with Theoretically Grounded Loss FunctionsCorinna Cortes, Mehryar Mohri, Yutao ZhongNeurIPS 2025 · 19 citations
  4. Confidence Calibration of Classifiers with Many ClassesAdrien Le-Coz, Stéphane Herbin, Faouzi AdjedNeurIPS 2024 · 21 citations
  5. AdaFocal: Calibration-aware Adaptive Focal LossArindam Ghosh, Thomas Schaaf, Matthew GormleyNeurIPS 2022 · 71 citations
Dusk over the sea between two cliffs drawn in fine vertical lines