TL;DR
While deep ensembles are often touted as a "silver bullet" for better model calibration, this paper reveals that they can actually worsen uncertainty estimates, especially when combined with modern techniques like mixup augmentation. The authors propose a simple yet highly effective fix: Pool-Then-Calibrate, a strategy that aggregates model predictions first and applies temperature scaling second, effectively halving the Expected Calibration Error (ECE) in data-scarce regimes.
The Calibration Problem in Low-Data Regimes
In deep learning, "calibration" refers to how well a model’s predicted probabilities match reality. If a model says it is 90% sure about a classification, it should be right 90% of the time. Unfortunately, modern neural networks are notoriously over-confident, a problem that becomes even more acute when training data is limited.
While researchers often use deep ensembles (averaging the outputs of multiple models) to improve both accuracy and calibration, this paper identifies a hidden conflict. Modern data augmentation strategies like mixup—which creates synthetic training examples by blending pairs of images—actually tend to make models under-confident. When you ensemble these already under-confident models, the resulting "average" becomes even more timid, leading to poor calibration. The authors set out to find the optimal way to combine ensembling, data augmentation, and post-processing calibration.
Evaluating Calibration Strategies
The researchers investigated the interplay between three common tools:
- Deep Ensembles: Training $K$ independent models and averaging their softmax outputs.
- Mixup Augmentation: A regularization technique that trains on convex combinations of image pairs and their labels.
- Temperature Scaling: A post-processing step where a single parameter ($\tau$) is used to "soften" or "sharpen" the final probability distribution.
The core contribution is the comparison of four strategies for combining these tools:
- (A) Naive Ensembling: Just average the models and hope for the best.
- (B) Calibrate-then-Pool: Apply temperature scaling to each model individually, then average them.
- (C) Joint Pool-and-Calibrate: Simultaneously optimize the temperature while considering the aggregated ensemble.
- (D) Pool-Then-Calibrate: Average the raw predictions of the models first, then fit a single temperature parameter on a small validation set to calibrate the final ensemble output.
These methods were evaluated in the "low-data regime" using small subsets of standard benchmarks, including CIFAR-10, CIFAR-100, Imagenette, Imagewoof, and a real-world Diabetic Retinopathy dataset.
Key Insights: Why Order Matters
Ensembling is a "Confidence Sink" Due to the mathematical property of entropy (it is a concave function), averaging the predictions of several networks always results in a prediction with higher entropy (lower confidence) than the average confidence of the individual networks.
The Mixup Conflict Mixup is great for accuracy but tends to make models under-confident. Because ensembling also reduces confidence, combining the two without correction leads to a model that is "too shy," significantly hurting calibration.
Order Matters: Pool First, Calibrate Second The most surprising finding is that calibrating individual models before ensembling (Method B) is counter-productive. Because the act of averaging changes the confidence level, the calibration must happen after the models are pooled to account for the ensemble's inherent shift toward lower confidence.
Distance to Training Data The paper shows that as test images become more "different" from the training set (measured via unsupervised feature distance), models become increasingly over-confident (for low mixup) or under-confident (for high mixup). However, the Pool-Then-Calibrate strategy remains robust across these distances.
Key Results
- ECE Reduction: The Pool-Then-Calibrate (Method D) strategy consistently outperformed others, often halving the Expected Calibration Error (ECE) compared to standard deep ensembles.
- Out-of-Distribution (OOD) Detection: Method D significantly improved the model's ability to distinguish between known classes and completely unseen classes (OOD). It achieved a 45% better separation in prediction entropy between in-class and out-of-class samples compared to vanilla ensembling.
- Robustness to Noise: On the CIFAR-10C dataset (Gaussian noise), the proposed method maintained high accuracy while keeping ECE low (1.65% vs. 15.13% for a standard ensemble).
- Efficiency: Method D is computationally "cheap" because it only requires fitting a single scalar parameter ($\tau$) on a tiny validation set after the models are already trained.
Limitations and Future Work
- Validation Set Dependency: The method requires a validation set to fit the temperature parameter. In extremely data-scarce environments, "wasting" even 50 images for validation can be a tough pill to swallow. The authors noted that fitting the temperature on the training set does not work.
- Simple Scaling: The study focused on Temperature Scaling because more complex methods (like Vector or Matrix scaling) tended to overfit the small validation sets used in this research. Future work could explore more sophisticated calibration methods that are robust to small samples.
- Theoretical Depth: While the paper provides strong empirical evidence and intuitive mathematical heuristics (like entropy concavity), a more rigorous theoretical framework for why the "pooling" process interacts specifically with different types of data augmentation remains an open area for research.
Summary updated