paper-with-me

Papers

The Intriguing Effects of Focal Loss on the Calibration of Deep Neural Networks

2019-09-25 · Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz, Philip Torr, Puneet Dokania

Miscalibration -- a mismatch between a model's confidence and its correctness -- of Deep Neural Networks (DNNs) makes their predictions hard for downstream components to trust. Ideally, we want networks to be accurate, calibrated and confident. Temperature scaling, the most popular calibration approach, will calibrate a DNN without affecting its accuracy, but it will also make its correct predictions under-confident. In this paper, we show that replacing the widely used cross-entropy loss with focal loss allows us to learn models that are already very well calibrated. When combined with temperature scaling, focal loss, whilst preserving accuracy and yielding state-of-the-art calibrated models, also preserves the confidence of the model's correct predictions, which is extremely desirable for downstream tasks. We provide a thorough analysis of the factors causing miscalibration, and use the insights we glean from this to theoretically justify the empirically excellent performance of focal loss. We perform extensive experiments on a variety of computer vision (CIFAR-10/100) and NLP (SST, 20 Newsgroup) datasets, and with a wide variety of different network architectures, and show that our approach achieves state-of-the-art accuracy and calibration in almost all cases.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Improving Calibration by Relating Focal Loss, Temperature Scaling, and Properness

2024-08-21 · Viacheslav Komisarenko, Meelis Kull

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 t…

image-classificationImage Classification

Revisiting Reweighted Risk for Calibration: AURC, Focal Loss, and Inverse Focal Loss

2025-05-29 · Han Zhou, Sebastian G. Gruber, Teodora Popordanoska, Matthew B. Blaschko

Several variants of reweighted risk functionals, such as focal losss, inverse focal loss, and the Area Under the Risk-Coverage Curve (AURC), have been proposed in the literature and claims have been made in relation to t…

AdaFocal: Calibration-aware Adaptive Focal Loss

2022-11-21 · Arindam Ghosh, Thomas Schaaf, Matthew R. Gormley

Much recent work has been devoted to the problem of ensuring that a neural network's confidence scores match the true probability of being correct, i.e. the calibration problem. Of note, it was found that training with f…

Out-of-Distribution Detection

End-to-End Lidar-Camera Self-Calibration for Autonomous Vehicles

2023-04-24 · Arya Rachman, Jürgen Seiler, André Kaup

Autonomous vehicles are equipped with a multi-modal sensor setup to enable the car to drive safely. The initial calibration of such perception sensors is a highly matured topic and is routinely done in an automated facto…

Autonomous VehiclesFeature Correlation

Calibrating Deep Neural Networks using Focal Loss

2020-02-21 · NeurIPS 2020 12 · Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz 외

Miscalibration - a mismatch between a model's confidence and its correctness - of Deep Neural Networks (DNNs) makes their predictions hard to rely on. Ideally, we want networks to be accurate, calibrated and confident. W…