[Paper Review] Multi-Class Uncertainty Calibration via Mutual Information Maximization-based Binning
This paper proposes I-Max binning, an information-theoretic method that maximizes mutual information between true labels and quantized logits to optimize bin edges for multi-class uncertainty calibration. By decoupling bin edge and representative optimization, it improves calibration and ranking accuracy, especially with small calibration sets (e.g., 1k samples), outperforming state-of-the-art methods on ImageNet and CIFAR benchmarks while preserving model accuracy.
Post-hoc multi-class calibration is a common approach for providing high-quality confidence estimates of deep neural network predictions. Recent work has shown that widely used scaling methods underestimate their calibration error, while alternative Histogram Binning (HB) methods often fail to preserve classification accuracy. When classes have small prior probabilities, HB also faces the issue of severe sample-inefficiency after the conversion into K one-vs-rest class-wise calibration problems. The goal of this paper is to resolve the identified issues of HB in order to provide calibrated confidence estimates using only a small holdout calibration dataset for bin optimization while preserving multi-class ranking accuracy. From an information-theoretic perspective, we derive the I-Max concept for binning, which maximizes the mutual information between labels and quantized logits. This concept mitigates potential loss in ranking performance due to lossy quantization, and by disentangling the optimization of bin edges and representatives allows simultaneous improvement of ranking and calibration performance. To improve the sample efficiency and estimates from a small calibration set, we propose a shared class-wise (sCW) calibration strategy, sharing one calibrator among similar classes (e.g., with similar class priors) so that the training sets of their class-wise calibration problems can be merged to train the single calibrator. The combination of sCW and I-Max binning outperforms the state of the art calibration methods on various evaluation metrics across different benchmark datasets and models, using a small calibration set (e.g., 1k samples for ImageNet).
Motivation & Objective
- To address the limitations of existing histogram binning (HB) methods in multi-class calibration, particularly their sample inefficiency and degradation of classification accuracy.
- To resolve the underestimation of calibration error in temperature scaling and histogram density estimation (HDE) methods due to bias-variance trade-offs in binning.
- To develop a method that simultaneously optimizes calibration performance and maintains high classification accuracy, especially when calibration data is limited.
- To introduce a shared class-wise (sCW) calibration strategy that merges training data across similar classes (e.g., same category or prior) to improve sample efficiency.
- To provide a reliable, convergence-guaranteed calibration method that is robust to small calibration sets and avoids the pitfalls of uniform binning strategies.
Proposed method
- I-Max binning is formulated as an information-theoretic optimization that maximizes the mutual information between true labels and quantized logits, ensuring minimal loss of predictive information during binning.
- The method iteratively optimizes bin edges to maximize mutual information, which inherently ensures sufficient calibration samples per bin and improves calibration reliability.
- Bin edges and bin representatives are optimized separately, decoupling the objectives of calibration and ranking accuracy, thus avoiding performance degradation from lossy quantization.
- A shared class-wise (sCW) calibration strategy is introduced, where one calibrator is trained across multiple similar classes (e.g., with similar class priors), merging their calibration data to improve sample efficiency.
- The approach uses one-vs-rest (OvR) calibration per class, with I-Max binning applied independently to each class’s prediction logits to ensure class-specific calibration.
- The method is evaluated using Expected Calibration Error (ECE), NLL, Brier score, and top-1 accuracy, with ablation studies confirming its superiority over baseline binning and scaling methods.
Experimental results
Research questions
- RQ1Can mutual information maximization over bin edges lead to better calibration performance while preserving classification accuracy in multi-class settings?
- RQ2How does I-Max binning compare to traditional histogram binning (Eq. size/mass) and scaling methods in terms of calibration error and accuracy under small calibration data regimes?
- RQ3To what extent does the shared class-wise (sCW) calibration strategy improve sample efficiency without sacrificing calibration quality?
- RQ4Does I-Max binning eliminate the bias-variance trade-off inherent in histogram density estimation (HDE) used in ECE evaluation?
- RQ5Can the disentanglement of bin edge and representative optimization lead to simultaneous improvements in both calibration and ranking performance?
Key findings
- I-Max binning achieves the lowest Expected Calibration Error (ECE) across all benchmarks, with 0.0224 ± 0.0016 ECE on ImageNet using 1k calibration samples when combined with temperature scaling.
- The method maintains high top-1 accuracy (96.28 ± 0.19) while reducing ECE by over 50% compared to standard histogram binning (Eq. size: 0.0288 ± 0.0039) on ImageNet.
- With only 1k calibration samples, I-Max w. GP achieves 0.0218 ± 0.0012 top-1 ECE on CIFAR100, outperforming all baselines including BWS and ETS-MnM.
- The sCW strategy enables effective calibration even for low-prior classes, reducing ECE by up to 50% compared to independent binning on rare classes.
- I-Max binning converges reliably and shows stable performance across multiple random seeds, unlike HDE-based ECE estimates that are sensitive to bin count.
- The method outperforms state-of-the-art calibration techniques (e.g., GP, BWS, ETS-MnM) in both calibration error and uncertainty estimation metrics (NLL, Brier score) on ImageNet and CIFAR datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.