paper-with-me

Papers

Calibrating Deep Neural Networks using Focal Loss

2020-02-21 · NeurIPS 2020 12 · Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz, Philip H. S. Torr, Puneet K. Dokania

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. We show that, as opposed to the standard cross-entropy loss, focal loss [Lin et. al., 2017] allows us to learn models that are already very well calibrated. When combined with temperature scaling, whilst preserving accuracy, it yields state-of-the-art calibrated models. We provide a thorough analysis of the factors causing miscalibration, and use the insights we glean from this to justify the empirically excellent performance of focal loss. To facilitate the use of focal loss in practice, we also provide a principled approach to automatically select the hyperparameter involved in the loss function. We perform extensive experiments on a variety of computer vision and NLP datasets, and with a wide variety of network architectures, and show that our approach achieves state-of-the-art calibration without compromising on accuracy in almost all cases. Code is available at https://github.com/torrvision/focal_calibration.

📄 PDF Abstract BibTeX arXiv:2002.09437

Code (3)

torrvision/focal_calibration 공식 구현 pytorch
kclip/calibrating-bayesian-learning pytorch
ondrejbohdal/meta-calibration pytorch

Methods 이 논문이 사용한 방법론

Focal Loss A Focal Loss function addresses class imbalance during training in tasks like object detection. Focal loss applies a modulating term to the cross entropy loss in order to…

Similar Papers 제목 키워드 기반

Calibrating Deep Neural Network using Euclidean Distance

2024-10-23 · Wenhao Liang, Chang Dong, Liangwei Zheng, Zhengyang Li 외

Uncertainty is a fundamental aspect of real-world scenarios, where perfect information is rarely available. Humans naturally develop complex internal models to navigate incomplete data and effectively respond to unforese…

Navigate

Self-Calibrating Isometric Non-Rigid Structure-from-Motion

2018-09-01 · ECCV 2018 9 · Shaifali Parashar, Adrien Bartoli, Daniel Pizarro

We present self-calibrating isometric non-rigid structure- from-motion (SCIso-NRSfM), the first method to reconstruct a non-rigid object from at least three monocular images with constant but unknown focal length. The ma…

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

Cyclical Focal Loss

2022-02-16 · Leslie N. Smith

The cross-entropy softmax loss is the primary loss function used to train deep neural networks. On the other hand, the focal loss function has been demonstrated to provide improved performance when there is an imbalance …

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