|国家预印本平台
首页|Sample Margin-Aware Recalibration of Temperature Scaling

Sample Margin-Aware Recalibration of Temperature Scaling

Sample Margin-Aware Recalibration of Temperature Scaling

来源:Arxiv_logoArxiv
英文摘要

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.

Haolan Guo、Linwei Tao、Haoyang Luo、Minjing Dong、Chang Xu

计算技术、计算机技术

Haolan Guo,Linwei Tao,Haoyang Luo,Minjing Dong,Chang Xu.Sample Margin-Aware Recalibration of Temperature Scaling[EB/OL].(2025-06-30)[2025-07-19].https://arxiv.org/abs/2506.23492.点此复制

评论