Lune

CVPR2022Top-tier venue

A Stitch in Time Saves Nine: A Train-Time Regularizing Loss for Improved Neural Network Calibration

Ramya Hebbalaguppe, Jatin Prakash, Neelabh Madan, Chetan Arora

Abstract

Deep Neural Networks (dnns) are known to make over-confident mistakes, which makes their use problematic in safety-critical applications. State-of-the-art (sota) calibration techniques improve on the confidence of predicted labels alone, and leave the confidence of non-max classes (e.g. top-2, top-5) uncalibrated. Such calibration is not suitable for label refinement using post-processing. Further, most sota techniques learn a few hyper-parameters post-hoc, leaving out the scope for image, or pixel specific calibration. This makes them unsuitable for calibration under domain shift, or for dense prediction tasks like semantic segmentation. In this paper, we argue for intervening at the train time itself, so as to directly produce calibrated dnn models. We propose a novel auxiliary loss function: Multi-class Difference in Confidence and Accuracy (mdca), to achieve the same. mdca can be used in conjunction with other application/task specific loss functions. We show that training with mdca leads to better calibrated models in terms of Expected Calibration Error (ece), and Static Calibration Error (sce) on image classification, and segmentation tasks. We report ece (sce) score of 0.72 (1.60) on the cifar 100 dataset, in comparison to 1.90 (1.71) by the sota. Under domain shift, a ResNet-18 model trained on pacs dataset using mdca gives a average ece (sce) score of 19.7 (9.7) across all domains, compared to 24.2 (11.8) by the sota. For segmentation task, we report a 2× reduction in calibration error on pascal-voc dataset in comparison to Focal Loss [32]. Finally, mdca training improves calibration even on imbalanced data, and for natural language classification tasks.

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.

18 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

  • Towards Improving Calibration in Object Detection Under Domain Shift cites Calibrating Deep Neural Networks using Focal Loss
  • Towards Improving Calibration in Object Detection Under Domain Shift cites Post-Hoc Uncertainty Calibration for Domain Drift Scenarios
  • Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibrator cites Calibrating Deep Neural Networks using Focal Loss
  • Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibrator cites Revisiting the Calibration of Modern Neural Networks
  • Cal-DETR: Calibrated Detection Transformer cites Towards Improving Calibration in Object Detection Under Domain Shift
  • Cal-DETR: Calibrated Detection Transformer cites Calibrating Deep Neural Networks using Focal Loss
  • Cal-DETR: Calibrated Detection Transformer cites Post-Hoc Uncertainty Calibration for Domain Drift Scenarios
  • ACLS: Adaptive and Conditional Label Smoothing for Network Calibration cites Calibrating Deep Neural Networks using Focal Loss
  • ACLS: Adaptive and Conditional Label Smoothing for Network Calibration cites Revisiting the Calibration of Modern Neural Networks
  • ACLS: Adaptive and Conditional Label Smoothing for Network Calibration cites Local Temperature Scaling for Probability Calibration
  • RankMixup: Ranking-Based Mixup Training for Network Calibration cites Calibrating Deep Neural Networks using Focal Loss
  • RankMixup: Ranking-Based Mixup Training for Network Calibration cites Post-Hoc Uncertainty Calibration for Domain Drift Scenarios
  • RankMixup: Ranking-Based Mixup Training for Network Calibration cites Local Temperature Scaling for Probability Calibration
  • Local Temperature Scaling for Probability Calibration cites Calibrating Deep Neural Networks using Focal Loss
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers18

  1. Towards Improving Calibration in Object Detection Under Domain ShiftMuhammad Akhtar Munir, Muhammad Haris Khan, M. Saquib Sarfraz, Mohsen AliNeurIPS 2022 · 37 citations
  2. Cal-DETR: Calibrated Detection TransformerMuhammad Akhtar Munir, Salman H. Khan, Muhammad Haris Khan, Mohsen Ali et al.NeurIPS 2023 · 24 citations
  3. Your Pre-trained LLM is Secretly an Unsupervised Confidence CalibratorBeier Luo, Shuoyuan Wang, Sharon Li, Hongxin WeiNeurIPS 2025 · 22 citations
  4. ACLS: Adaptive and Conditional Label Smoothing for Network CalibrationHyekang Park, Jongyoun Noh, Youngmin Oh, Donghyeon Baek et al.ICCV 2023 · 22 citations
  5. RankMixup: Ranking-Based Mixup Training for Network CalibrationJongyoun Noh, Hyekang Park, Junghyup Lee, Bumsub HamICCV 2023 · 22 citations

Builds on5

  1. Calibrating Deep Neural Networks using Focal LossJishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz et al.NeurIPS 2020 · 674 citations
  2. Revisiting the Calibration of Modern Neural NetworksMatthias Minderer, Josip Djolonga, Rob Romijnders, Frances Hubis et al.NeurIPS 2021 · 633 citations
  3. Local Temperature Scaling for Probability CalibrationZhipeng Ding, Xu Han, Peirong Liu, Marc NiethammerICCV 2021 · 109 citations
  4. Stationary Activations for Uncertainty Calibration in Deep LearningLassi Meronen, Christabella Irwanto, Arno SolinNeurIPS 2020 · 22 citations
  5. Post-Hoc Uncertainty Calibration for Domain Drift ScenariosChristian Tomani, Sebastian Gruber, Muhammed Ebrar Erdem, Daniel Cremers et al.CVPR 2021

Related papers

  1. Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object DetectionMuhammad Akhtar Munir, Muhammad Haris Khan, Salman H. Khan, Fahad Shahbaz KhanCVPR 2023
  2. Soft Calibration Objectives for Neural NetworksArchit Karandikar, Nicholas Cain, Dustin Tran, Balaji Lakshminarayanan et al.NeurIPS 2021 · 127 citations
  3. Multiclass Confidence and Localization Calibration for Object DetectionBimsara Pathiraja, Malitha Gunawardhana, Muhammad Haris KhanCVPR 2023
  4. Improving Accuracy and Calibration via Differentiated Deep Mutual LearningHan Liu, Peng Cui, Bingning Wang, Weipeng Chen et al.CVPR 2025
  5. Confidence-Aware Learning for Deep Neural NetworksJooyoung Moon, Jihyo Kim, Younghak Shin, Sangheum HwangICML 2020 · 184 citations
Dusk over the sea between two cliffs drawn in fine vertical lines