Calibration in One Go: Jointly Learning Accurate and Calibrated Neural Networks
cs.LG, cs.AI, stat.ML
Submitted: 2026-10-09
Updated: 2026-10-09
Comments: 27 pages, 7 figures
Project page: http://probml.github.io/book2
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: Neural networks (NNs), while highly flexible and versatile, are often poorly calibrated.
Terminology
Abstract
Neural networks (NNs), while highly flexible and versatile, are often poorly calibrated. Post-hoc calibration methods adjust the outputs of an already trained model using a separate calibration dataset and additional calibration parameters. This process adds overhead that requires separate optimization of the calibrator and subsequent model selection. In this paper, we show that standard (post-hoc) calibrators can be trained end-to-end with the backbone via a bilevel Stackelberg formulation. This formulation eliminates the need for a separate calibration set or a dedicated calibration loss by jointly optimizing accuracy and calibration using cross-entropy, introducing only one additional hyperparameter: the calibrator learning rate. Although our framework supports calibrators ranging from temperature and matrix scaling to NN layers, our results show that using the final classification layer itself as the calibrator yields accurate, well-calibrated models with no additional parameters. Our approach outperforms SOTA calibrators with minimal added complexity, while also avoiding the multiplicative overhead of separate calibration components in settings such as multi-task learning.
Sources
- A Brief Introduction to Robust Bilevel Optimization
- Rethinking Early Stopping: Refine, Then Calibrate
- CalArena: A Large-Scale Post-Hoc Calibration Benchmark
- Meta-Calibration: Learning of Model Calibration Using Differentiable Expected Calibration Error
- Benchmarking Neural Network Robustness to Common Corruptions and Perturbations
- Deep Anomaly Detection with Outlier Exposure
- COPA: Comparing the incomparable in multi-objective model evaluation
- Revisiting Explicit Regularization in Neural Networks for Well-Calibrated Predictive Uncertainty
- Adam: A Method for Stochastic Optimization
- Amazing Things Come From Having Many Good Models
- Exploring the Potential of Bilevel Optimization for Calibrating Neural Networks
- Calibration in Deep Learning: A Survey of the State-of-the-Art
- Wide Residual Networks
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks