Sample Margin-Aware Recalibration of Temperature Scaling
Not on the map. Why?
Abstract (arXiv)
Recent advances in deep learning have significantly improved predictive accuracy. However, modern neural networks remain systematically overconfident, posing risks for deployment in safety-critical scenarios. Current post-hoc calibration methods face a fundamental dilemma: global approaches like Temperature Scaling apply uniform adjustments across all samples, introducing high bias despite computational efficiency, while more expressive methods that operate on full logit distributions suffer from high variance due to noisy high-dimensional inputs and insufficient validation data. To address these challenges, we propose Sample Margin-Aware Recalibration of Temperature (SMART), a lightweight, data-efficient recalibration method that precisely scales logits based on the margin between the top two logits -- termed the logit gap. Specifically, the logit gap serves as a denoised, scalar signal directly tied to decision boundary uncertainty, providing a robust indicator that avoids the noise inherent in high-dimensional logit spaces while preserving model prediction invariance. Meanwhile, SMART employs a novel soft-binned Expected Calibration Error (SoftECE) objective that balances model bias and variance through adaptive binning, enabling stable parameter updates even with extremely limited calibration data. Extensive evaluations across diverse datasets and architectures demonstrate that SMART achieves state-of-the-art calibration performance even with substantially fewer parameters compared to existing parametric methods, offering a principled, robust, and highly efficient solution for practical uncertainty quantification in neural network predictions. The source code is available at: https://anonymous.4open.science/r/SMART-8B11.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 44 of its 69 references that are in the map. First posted on arXiv 30 Jun 2025.
Builds on
44 of 69 references.
References · 44
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2016Wide Residual Networkscited by 3,070
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
32 more
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2019When Does Label Smoothing Help?cited by 988
- 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 901
- 2019Large-Scale Long-Tailed Recognition in an Open Worldcited by 705
- 2019Measuring Calibration in Deep Learningcited by 446
- 2019Beyond temperature scaling: Obtaining well-calibrated multiclass probabilities with Dirichlet calibrationcited by 364
- 2020Calibrating Deep Neural Networks using Focal Losscited by 357
- 2019Verified Uncertainty Calibrationcited by 309
- 2019On Mixup Training: Improved Calibration and Predictive Uncertainty for Deep Neural Networkscited by 305
- 2022Mitigating Neural Network Overconfidence with Logit Normalizationcited by 252
- 2020Mix-n-Match: Ensemble and Compositional Methods for Uncertainty Calibration in Deep Learningcited by 190
- 2020Improving model calibration with accuracy versus uncertainty optimizationcited by 123
- 2020Mitigating Bias in Calibration Error Estimationcited by 101
- 2020Calibration of Neural Networks using Splinescited by 97
- 2020Local Temperature Scaling for Probability Calibrationcited by 95
- 2021Soft Calibration Objectives for Neural Networkscited by 92
- 2020Intra Order-preserving Functions for Calibration of Multi-Class Neural Networkscited by 65
- 2022Better Uncertainty Calibration via Proper Scores for Classification and Beyondcited by 65
- 2023Smooth ECE: Principled Reliability Diagrams via Kernel Smoothingcited by 63
- 2022A Stitch in Time Saves Nine: A Train-Time Regularizing Loss for Improved Neural Network Calibrationcited by 49
- 2021Parameterized Temperature Scaling for Boosting the Expressive Power in Post-Hoc Uncertainty Calibrationcited by 48
- 2022Sample-dependent Adaptive Temperature Scaling for Improved Calibrationcited by 48
- 2023When Does Optimizing a Proper Loss Yield Calibration?cited by 36
- 2023Dual Focal Loss for Calibrationcited by 33
- 2019Can We Trust You? On Calibration of a Probabilistic Object Detector for Autonomous Drivingcited by 30
- 2023Proximity-Informed Calibration for Deep Neural Networkscited by 18
- 2024On Temperature Scaling and Conformal Prediction of Deep Classifierscited by 13
- 2023Beyond Probability Partitions: Calibrating Neural Networks with Semantic Aware Groupingcited by 10
- 2024Feature Clipping for Uncertainty Calibrationcited by 8
- 2025Uncertainty Weighted Gradients for Model Calibrationcited by 5
- 2024Optimizing Calibration by Gaining Aware of Prediction Correctnesscited by 4
- 2025Beyond One-Hot Labels: Semantic Mixing for Model Calibrationcited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2026Post-Calibration Reliability Reranking of Relevance Decisions via Label-wise Monotone Projectioncited by 2
- 2025Quantifying and Improving Adaptivity in Conformal Prediction through Input Transformationscited by 0
- 2026Signal-Routed Temperature Scaling: Low-Capacity Risk-Conditioned Calibration for Small Validation Budgetscited by 0
- 2026Signal-Routed Temperature Scaling: Low-Capacity Risk-Conditioned Calibration for Small Validation Budgets30 Sep 2026
- 2026Post-Calibration Reliability Reranking of Relevance Decisions via Label-wise Monotone Projection11 Aug 2026
- 2025Quantifying and Improving Adaptivity in Conformal Prediction through Input Transformations14 Nov 2025