The Devil is in the Margin: Margin-based Label Smoothing for Network Calibration
Not on the map. Why?
Abstract (arXiv)
In spite of the dominant performances of deep neural networks, recent works have shown that they are poorly calibrated, resulting in over-confident predictions. Miscalibration can be exacerbated by overfitting due to the minimization of the cross-entropy during training, as it promotes the predicted softmax probabilities to match the one-hot label assignments. This yields a pre-softmax activation of the correct class that is significantly larger than the remaining activations. Recent evidence from the literature suggests that loss functions that embed implicit or explicit maximization of the entropy of predictions yield state-of-the-art calibration performances. We provide a unifying constrained-optimization perspective of current state-of-the-art calibration losses. Specifically, these losses could be viewed as approximations of a linear penalty (or a Lagrangian) imposing equality constraints on logit distances. This points to an important limitation of such underlying equality constraints, whose ensuing gradients constantly push towards a non-informative solution, which might prevent from reaching the best compromise between the discriminative performance and calibration of the model during gradient-based optimization. Following our observations, we propose a simple and flexible generalization based on inequality constraints, which imposes a controllable margin on logit distances. Comprehensive experiments on a variety of image classification, semantic segmentation and NLP benchmarks demonstrate that our method sets novel state-of-the-art results on these tasks in terms of network calibration, without affecting the discriminative performance. The code is available at https://github.com/by-liu/MbLS .
Key facts. Cited by 91 papers in the map (data through 7 Oct 2026). Builds on 23 of its 37 references that are in the map. First posted on arXiv 30 Nov 2021.
Builds on
23 of 37 references.
References · 23
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,154
- 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,274
- 2019When Does Label Smoothing Help?cited by 985
- 2013Network In Networkcited by 600
- 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 461
- 2020Calibrating Deep Neural Networks using Focal Losscited by 353
11 more
- 2015Probabilistic Backpropagation for Scalable Learning of Bayesian Neural Networkscited by 295
- 2020Does label smoothing mitigate label noise?cited by 204
- 2020Mix-n-Match: Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learningcited by 190
- 2020Hyperparameter Ensembles for Robustness and Uncertainty Quantificationcited by 149
- 2020Local Temperature Scaling for Probability Calibrationcited by 95
- 2016Structured and Efficient Variational Deep Learning with Matrix Gaussian Posteriorscited by 82
- 2020Post-hoc Uncertainty Calibration for Domain Drift Scenarioscited by 61
- 2016DisturbLabel: Regularizing CNN on the Loss Layercited by 41
- 2021Meta-Cal: Well-controlled Post-hoc Calibration by Rankingcited by 33
- 2019Confidence Calibration for Convolutional Neural Networks Using Structured Dropoutcited by 19
- 2021Orthogonal Ensemble Networks for Biomedical Image Segmentationcited by 16
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 24; 2024: 23; 2025: 23; 2026: 16.
91 papers.
Sort:
By area:
- 2023Calibration in Deep Learning: A Survey of the State-of-the-Artcited by 72
- 2023Rethinking Confidence Calibration for Failure Predictioncited by 43
- 2024Robust Calibration of Large Vision-Language Adapterscited by 28
- 2023A Unified Perspective for Loss-Oriented Imbalanced Learning via Localizationcited by 24
- 2023RankMixup: Ranking-Based Mixup Training for Network Calibrationcited by 19
- 2023Multiclass Confidence and Localization Calibration for Object Detectioncited by 16
- 2023ACLS: Adaptive and Conditional Label Smoothing for Network Calibrationcited by 15
- 2023Two Sides of Miscalibration: Identifying Over and Under-Confidence Prediction for Network Calibrationcited by 14
- 2025O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Modelscited by 14
- 2021Maximum Entropy on Erroneous Predictions (MEEP): Improving model calibration for medical image segmentationcited by 13
- 2022Class Adaptive Network Calibrationcited by 13
- 2024Dynamic Correlation Learning and Regularization for Multi-Label Confidence Calibrationcited by 13
38 more
- 2023Trust your neighbours: Penalty-based constraints for model calibrationcited by 12
- 2023Bridging Precision and Confidence: A Train-Time Loss for Calibrating Object Detectioncited by 12
- 2024Are foundation models for computer vision good conformal predictors?cited by 12
- 2022On the Optimal Combination of Cross-Entropy and Soft Dice Losses for Lesion Segmentation with Out-of-Distribution Robustnesscited by 11
- 2023Cal-DETR: Calibrated Detection Transformercited by 11
- 2024Towards Understanding Why Label Smoothing Degrades Selective Classification and How to Fix Itcited by 11
- 2024On Calibration of Object Detectors: Pitfalls, Evaluation and Baselinescited by 11
- 2025Towards Objective Fine-tuning: How LLMs' Prior Knowledge Causes Potential Poor Calibration?cited by 11
- 2024Revisiting Confidence Estimation: Towards Reliable Failure Predictioncited by 9
- 2023Multi-Head Multi-Loss Model Calibrationcited by 8
- 2024LFME: A Simple Framework for Learning from Multiple Experts in Domain Generalizationcited by 8
- 2024Feature Clipping for Uncertainty Calibrationcited by 8
- 2022Learning to segment fetal brain tissue from noisy annotationscited by 7
- 2024Neighbor-Aware Calibration of Segmentation Networks with Penalty-Based Constraintscited by 7
- 2024OSSAR: Towards Open-Set Surgical Activity Recognition in Robot-assisted Surgerycited by 7
- 2025Calibrated Language Models and How to Find Them with Label Smoothingcited by 7
- 2023Cut your Losses with Squentropycited by 6
- 2023Data Optimization in Deep Learning: A Surveycited by 6
- 2024A Review of Bayesian Uncertainty Quantification in Deep Probabilistic Image Segmentationcited by 6
- 2023Tailoring Mixup to Data for Calibrationcited by 5
- 2025Adaptive Decision Boundary for Few-Shot Class-Incremental Learningcited by 5
- 2023Boundary-weighted logit consistency improves calibration of segmentation networkscited by 4
- 2023Empirical Optimal Risk to Quantify Model Trustworthiness for Failure Detectioncited by 4
- 2024Confidence-Aware Multi-Field Model Calibrationcited by 4
- 2024Uncertainty Calibration with Energy Based Instance-wise Scaling in the Wild Datasetcited by 4
- 2025T-CIL: Temperature Scaling using Adversarial Perturbation for Calibration in Class-Incremental Learningcited by 4
- 2021Probabilistic Approach for Road-Users Detectioncited by 3
- 2024Error-Driven Uncertainty Aware Trainingcited by 3
- 2024Unlocking the Potential of Model Calibration in Federated Learningcited by 3
- 2024Ordinal-Aware Calibration for Ordinal Classificationcited by 3
- 2025Balancing Two Classifiers via A Simplex ETF Structure for Model Calibrationcited by 3
- 2025Uncertainty Estimation by Human Perception versus Neural Modelscited by 3
- 2025Calibration-Aware Prompt Learning for Medical Vision-Language Modelscited by 3
- 2025A-TPT: Angular Diversity Calibration Properties for Test-Time Prompt Tuning of Vision-Language Modelscited by 3
- 2024Consistency-Guided Temperature Scaling Using Style and Content Information for Out-of-Domain Calibrationcited by 2
- 2024Class and Region-Adaptive Constraints for Network Calibrationcited by 2
- 2024Do not trust what you trust: Miscalibration in Semi-supervised Learningcited by 2
- 2025Technical report on label-informed logit redistribution for better domain generalization in low-shot classification with foundation modelscited by 2
50 most cited of 91 All 91 (JSON)
- 2026Bridging the Confidence Gap: Temperature Scaling for Calibrating Test-Time Prompt Tuning15 Sep 2026
- 2026Which Tokens Should SFT Actually Learn? A Token-Trimming Perspective on Mathematical Reasoning9 Sep 2026
- 2026Rethinking the Test-Time Prompt Tuning Objective from the Perspective of Calibration31 Aug 2026
- 2026MVC-Bench: Benchmarking Calibration of Medical Vision-Language Models27 Aug 2026
- 2026Beyond scalar losses: calibrating segmentation models via gradient vector field surgery15 Jul 2026
- 2026LiST: Lipschitz Scaling Training for Robust and Calibrated Neural Networks8 Jul 2026
- 2026FedLAS: Feature-Modulated Bidirectional Label Smoothing for Neural Network Calibration26 Jun 2026
- 2026Quantile Adaptive Temperature Scaling for Confidence Calibration19 Jun 2026
- 2026SafeECGMatch: Calibration-Aware Joint Frequency and Time Space Semi-Supervised Learning for Open-Set ECG Classification6 Jun 2026
- 2026Enhancing Deep Neural Network Reliability with Refinement and Calibration22 May 2026
- 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretraining30 Apr 2026
- 2026Too Sharp, Too Sure: When Calibration Follows Curvature22 Apr 2026
38 more
- 2026BEM: Training-Free Background Embedding Memory for False-Positive Suppression in Real-Time Fixed-Background Camera13 Apr 2026
- 2026HypeLoRA: Hyper-Network-Generated LoRA Adapters for Calibrated Language Model Fine-Tuning1 Mar 2026
- 2026Towards Calibrating Prompt Tuning of Vision-Language Models22 Feb 2026
- 2026SoC: Semantic Orthogonal Calibration for Test-Time Prompt Tuning13 Jan 2026
- 2025Deep Probabilistic Supervision for Image Classification30 Dec 2025
- 2025Learning to Retrieve with Weakened Labels: Robust Training under Label Noise15 Dec 2025
- 2025Towards Reliable Test-Time Adaptation: Style Invariance as a Correctness Likelihood8 Dec 2025
- 2025A-TPT: Angular Diversity Calibration Properties for Test-Time Prompt Tuning of Vision-Language Models30 Oct 2025
- 2025DATS: Distance-Aware Temperature Scaling for Calibrated Class-Incremental Learning25 Sep 2025
- 2025Calibration-Aware Prompt Learning for Medical Vision-Language Models18 Sep 2025
- 2025Label Smoothing++: Enhanced Label Regularization for Training Neural Networks22 Aug 2025
- 2025Deep Neural Network Calibration by Reducing Classifier Shift with Stochastic Masking12 Aug 2025
- 2025Calibration Attention: Learning Reliability-Aware Representations for Vision Transformers12 Aug 2025
- 2025Calibrated Language Models and How to Find Them with Label Smoothing1 Aug 2025
- 2025CaliMatch: Adaptive Calibration for Improving Safe Semi-supervised Learning30 Jul 2025
- 2025h-calibration: Rethinking Classifier Recalibration with Probabilistic Error-Bounded Objective22 Jun 2025
- 2025Uncertainty Estimation by Human Perception versus Neural Models18 Jun 2025
- 2025Towards Understanding The Calibration Benefits of Sharpness-Aware Minimization29 May 2025
- 2025CLUE: Neural Networks Calibration via Learning Uncertainty-Error alignment28 May 2025
- 2025Towards Objective Fine-tuning: How LLMs' Prior Knowledge Causes Potential Poor Calibration?27 May 2025
- 2025Beyond One-Hot Labels: Semantic Mixing for Model Calibration18 Apr 2025
- 2025Adaptive Decision Boundary for Few-Shot Class-Incremental Learning15 Apr 2025
- 2025Balancing Two Classifiers via A Simplex ETF Structure for Model Calibration14 Apr 2025
- 2025T-CIL: Temperature Scaling using Adversarial Perturbation for Calibration in Class-Incremental Learning28 Mar 2025
- 2025O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Models15 Mar 2025
- 2025We Care Each Pixel: Calibrating on Medical Segmentation Model7 Mar 2025
- 2025Technical report on label-informed logit redistribution for better domain generalization in low-shot classification with foundation models29 Jan 2025
- 2024Are foundation models for computer vision good conformal predictors?8 Dec 2024
- 2024A Review of Bayesian Uncertainty Quantification in Deep Probabilistic Image Segmentation25 Nov 2024
- 2024LFME: A Simple Framework for Learning from Multiple Experts in Domain Generalization22 Oct 2024
- 2024Ordinal-Aware Calibration for Ordinal Classification21 Oct 2024
- 2024Feature Clipping for Uncertainty Calibration16 Oct 2024
- 2024Unlocking the Potential of Model Calibration in Federated Learning7 Sep 2024
- 2024Improving Uncertainty-Error Correspondence in Deep Bayesian Medical Image Segmentation5 Sep 2024
- 2024Advancing Medical Image Segmentation: Morphology-Driven Learning with Diffusion Transformer1 Aug 2024
- 2024Robust Calibration of Large Vision-Language Adapters18 Jul 2024
- 2024Uncertainty Calibration with Energy Based Instance-wise Scaling in the Wild Dataset17 Jul 2024
- 2024Dynamic Correlation Learning and Regularization for Multi-Label Confidence Calibration9 Jul 2024
50 newest of 91 All 91 (JSON)
- 2025O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Modelscited by 14
- 2024Are foundation models for computer vision good conformal predictors?cited by 12
- 2025Calibration-Aware Prompt Learning for Medical Vision-Language Modelscited by 3
- 2025A-TPT: Angular Diversity Calibration Properties for Test-Time Prompt Tuning of Vision-Language Modelscited by 3
- 2026SoC: Semantic Orthogonal Calibration for Test-Time Prompt Tuningcited by 2
- 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretrainingcited by 2
- 2026MVC-Bench: Benchmarking Calibration of Medical Vision-Language Modelscited by 1
- 2026Towards Calibrating Prompt Tuning of Vision-Language Modelscited by 0
- 2026MVC-Bench: Benchmarking Calibration of Medical Vision-Language Models27 Aug 2026
- 2026Improving Calibration in Test-Time Prompt Tuning for Vision-Language Models via Data-Free Flatness-Aware Prompt Pretraining30 Apr 2026
- 2026Towards Calibrating Prompt Tuning of Vision-Language Models22 Feb 2026
- 2026SoC: Semantic Orthogonal Calibration for Test-Time Prompt Tuning13 Jan 2026
- 2025A-TPT: Angular Diversity Calibration Properties for Test-Time Prompt Tuning of Vision-Language Models30 Oct 2025
- 2025Calibration-Aware Prompt Learning for Medical Vision-Language Models18 Sep 2025
- 2025O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Models15 Mar 2025
- 2024Are foundation models for computer vision good conformal predictors?8 Dec 2024
- 2023Calibration in Deep Learning: A Survey of the State-of-the-Artcited by 72
- 2023Rethinking Confidence Calibration for Failure Predictioncited by 43
- 2024Robust Calibration of Large Vision-Language Adapterscited by 28
- 2023A Unified Perspective for Loss-Oriented Imbalanced Learning via Localizationcited by 24
- 2023RankMixup: Ranking-Based Mixup Training for Network Calibrationcited by 19
- 2023Multiclass Confidence and Localization Calibration for Object Detectioncited by 16
- 2023ACLS: Adaptive and Conditional Label Smoothing for Network Calibrationcited by 15
- 2023Two Sides of Miscalibration: Identifying Over and Under-Confidence Prediction for Network Calibrationcited by 14
- 2021Maximum Entropy on Erroneous Predictions (MEEP): Improving model calibration for medical image segmentationcited by 13
- 2022Class Adaptive Network Calibrationcited by 13
- 2024Dynamic Correlation Learning and Regularization for Multi-Label Confidence Calibrationcited by 13
- 2023Trust your neighbours: Penalty-based constraints for model calibrationcited by 12
12 most cited of 81 All 81 (JSON)
- 2026Bridging the Confidence Gap: Temperature Scaling for Calibrating Test-Time Prompt Tuning15 Sep 2026
- 2026Rethinking the Test-Time Prompt Tuning Objective from the Perspective of Calibration31 Aug 2026
- 2026Beyond scalar losses: calibrating segmentation models via gradient vector field surgery15 Jul 2026
- 2026LiST: Lipschitz Scaling Training for Robust and Calibrated Neural Networks8 Jul 2026
- 2026FedLAS: Feature-Modulated Bidirectional Label Smoothing for Neural Network Calibration26 Jun 2026
- 2026Quantile Adaptive Temperature Scaling for Confidence Calibration19 Jun 2026
- 2026SafeECGMatch: Calibration-Aware Joint Frequency and Time Space Semi-Supervised Learning for Open-Set ECG Classification6 Jun 2026
- 2026Enhancing Deep Neural Network Reliability with Refinement and Calibration22 May 2026
- 2026Too Sharp, Too Sure: When Calibration Follows Curvature22 Apr 2026
- 2026BEM: Training-Free Background Embedding Memory for False-Positive Suppression in Real-Time Fixed-Background Camera13 Apr 2026
- 2026HypeLoRA: Hyper-Network-Generated LoRA Adapters for Calibrated Language Model Fine-Tuning1 Mar 2026
- 2025Deep Probabilistic Supervision for Image Classification30 Dec 2025
12 newest of 81 All 81 (JSON)