Abstract
Modern deep neural networks often exhibit overconfidence, where predicted probabilities do not accurately reflect true likelihoods. This paper introduces two novel non-parametric calibration techniques—NA-FIR and SCIR—designed specifically for multi-class settings. By making isotonic regression "normalization-aware," these methods integrate the sum-to-one constraint directly into the calibration process. Experimental results across diverse image and text datasets demonstrate that these techniques achieve state-of-the-art performance, significantly reducing Expected Calibration Error (ECE) and improving statistical reliability.
Introduction
Calibration is the process of ensuring a model's confidence scores match its actual accuracy. In multi-class problems, the standard approach involves calibrating each class independently (e.g., via One-vs-Rest) and then normalizing the resulting vector so it sums to one. However, this "calibrate then normalize" workflow is suboptimal because the calibration step is blind to the final normalization, which can distort the probability estimates. This research addresses this flaw by proposing methods that account for normalization during the optimization phase.
Methods
The authors propose two techniques based on Isotonic Regression (IR), a non-parametric approach that learns a monotonic mapping from raw scores to probabilities.
NA-FIR (Normalization-Aware Flattened Isotonic Regression)
NA-FIR assumes that a model's overconfidence behavior is consistent across classes (permutation invariance). It "flattens" all class predictions into a single pool and optimizes the Negative Log-Likelihood (NLL) by incorporating the normalization term directly into the loss function. To handle the resulting non-convex optimization, the authors employ a simulated annealing approach via Markov Chain Monte Carlo (MCMC).
SCIR (Sorted Cumulative Isotonic Regression)
SCIR treats calibration as a cumulative bivariate regression problem. Instead of predicting individual class probabilities, it predicts the cumulative sum of the top-$r$ sorted probabilities. This approach naturally respects class rankings and the sum-to-one constraint. The authors developed a 2D grid dynamic programming algorithm to solve this multi-dimensional regression efficiently.
Results and Discussion
The proposed methods were evaluated on 75 baseline models across seven benchmark datasets, including ImageNet-1k, CIFAR-100, and various text classification tasks.
Calibration Performance
The proposed techniques consistently outperformed standard parametric methods like Temperature Scaling (TS). As shown in the reliability plots, uncalibrated models often exhibit high ECE and significant overconfidence.
In contrast, the SCIR method significantly reduces the ECE and aligns the predicted scores with the fraction of positives, achieving statistical significance.
Key Insights
- Normalization Awareness: Accounting for the division by the sum during training avoids the "collateral damage" typical of post-hoc normalization.
- Statistical Significance: Proposed methods were frequently the only ones to achieve positive p-values in reliability tests, indicating they are statistically indistinguishable from a perfectly calibrated procedure.
- Order Preservation: NA-FIR is designed to be order-preserving, ensuring that the model's original class rankings remain unchanged after calibration.
Conclusion
NA-FIR and SCIR provide a robust, data-driven alternative to parametric calibration. By integrating normalization into the isotonic regression framework, these methods achieve superior calibration across a wide range of architectures and domains. Future work will explore scaling these techniques to extremely large label spaces and investigating the trade-offs between calibration and model refinement.
Summary updated