Abstract
Modern deep neural networks have achieved remarkable accuracy across various domains, yet they often fail to provide reliable estimates of their own predictive uncertainty. This paper investigates the phenomenon of miscalibration in state-of-the-art architectures, identifying factors such as increased model capacity and batch normalization as primary drivers of overconfidence. We evaluate several post-processing calibration methods and demonstrate that temperature scaling—a simple, single-parameter extension of Platt scaling—is exceptionally effective at producing well-calibrated probabilities without compromising classification accuracy.
Introduction: The Calibration Gap
In safety-critical applications like autonomous driving or medical diagnosis, a model's confidence must reflect its actual likelihood of being correct. A "calibrated" model is one where a prediction with 80% confidence is correct exactly 80% of the time. While historical models like LeNet (1998) were naturally well-calibrated, modern architectures like ResNet (2016) tend to be significantly overconfident.
As shown in Figure 1, the reliability diagram for ResNet reveals a large "gap" where confidence consistently exceeds accuracy, whereas LeNet's average confidence closely tracks its accuracy. This paper explores why this divergence occurs and how to rectify it.
Measuring and Visualizing Calibration
To quantify miscalibration, the authors utilize Expected Calibration Error (ECE). ECE partitions predictions into bins based on confidence and calculates the weighted average difference between accuracy and confidence within those bins. Visually, Reliability Diagrams plot sample accuracy against confidence, where a perfectly calibrated model follows the identity line.
Why Modern Networks are Overconfident
The study identifies several architectural and training trends that contribute to miscalibration:
- Model Capacity: Increasing depth and width improves accuracy but harms calibration. High-capacity models can "overfit" the Negative Log Likelihood (NLL) during training, driving confidence scores toward 1.0 even for uncertain samples.
- Batch Normalization: While essential for training deep networks, Batch Normalization is found to increase miscalibration.
- Weight Decay: Reducing regularization (less weight decay) helps accuracy but leads to more overconfident predictions.
Figure 5 illustrates these trade-offs. For instance, as depth increases, classification error generally decreases, but ECE tends to rise, indicating a disconnect between accuracy and probability modeling.
Temperature Scaling: A Simple Solution
The authors evaluate various calibration techniques, including non-parametric methods (e.g., histogram binning) and parametric methods (e.g., vector scaling). The standout performer is Temperature Scaling.
Temperature scaling divides the network's logits (pre-softmax scores) by a single learned scalar $T$ (temperature) optimized on a hold-out validation set. This "softens" the probability distribution. Because it is a monotonic transformation, it preserves the model's original predictions and accuracy while dramatically improving calibration. For a ResNet-110 on CIFAR-100, ECE dropped from 16.53% to just 1.26% using this method.
Conclusion
Calibration is a critical yet often overlooked aspect of neural network performance. Modern architectural choices that favor accuracy frequently come at the cost of reliable confidence estimates. Temperature scaling provides a computationally efficient and robust way to recover calibration, making it an essential tool for deploying deep learning models in real-world, high-stakes environments.
Summary updated