[Paper Review] Combining Ensembles and Data Augmentation can Harm your Calibration
This paper identifies a critical pathology where combining ensembles and data augmentation (specifically Mixup) degrades model calibration due to compounding under-confidence from soft labels and weight marginalization. To resolve this, the authors propose CAMixup—a class- and example-level adaptive Mixup coefficient adjustment that restores calibration while boosting accuracy, achieving state-of-the-art uncertainty calibration on CIFAR-10, CIFAR-100, and ImageNet.
Ensemble methods which average over multiple neural network predictions are a simple approach to improve a model's calibration and robustness. Similarly, data augmentation techniques, which encode prior information in the form of invariant feature transformations, are effective for improving calibration and robustness. In this paper, we show a surprising pathology: combining ensembles and data augmentation can harm model calibration. This leads to a trade-off in practice, whereby improved accuracy by combining the two techniques comes at the expense of calibration. On the other hand, selecting only one of the techniques ensures good uncertainty estimates at the expense of accuracy. We investigate this pathology and identify a compounding under-confidence among methods which marginalize over sets of weights and data augmentation techniques which soften labels. Finally, we propose a simple correction, achieving the best of both worlds with significant accuracy and calibration gains over using only ensembles or data augmentation individually. Applying the correction produces new state-of-the art in uncertainty calibration across CIFAR-10, CIFAR-100, and ImageNet.
Motivation & Objective
- To investigate why combining ensembles and data augmentation like Mixup harms model calibration despite both improving it individually.
- To identify the root cause of calibration degradation, particularly the compounding under-confidence from soft labels in Mixup and marginalization over weights in ensembles.
- To develop a correction method that enables the benefits of both ensembles and data augmentation without sacrificing calibration.
- To achieve state-of-the-art uncertainty calibration across multiple benchmarks while maintaining competitive accuracy.
Proposed method
- Propose CAMixup, a method that adaptively assigns Mixup coefficients per class based on validation set reliability (accuracy minus confidence) to correct for under-confidence.
- Apply a thresholding mechanism on class-level reliability to determine whether Mixup should be applied to each class, avoiding uniform application across all examples in a class.
- Extend CAMixup to an example-level variant using forgetting counts—where high forgetting counts indicate unreliable predictions—applying Mixup only to examples with high forgetting counts to improve calibration.
- Use temperature scaling in conjunction with CAMixup to further refine calibration, particularly on in-distribution and out-of-distribution data.
- Train models using standard deep learning pipelines with CAMixup integrated during training, dynamically adjusting Mixup coefficients based on model behavior during validation.
- Evaluate the method across multiple ensembling techniques (MC-dropout, BatchEnsemble, Deep Ensembles) and datasets (CIFAR-10, CIFAR-100, ImageNet) to ensure robustness and generalization.
Experimental results
Research questions
- RQ1Why does combining ensembles and Mixup lead to worse calibration despite both improving it individually?
- RQ2What causes the compounding under-confidence effect when combining weight marginalization (ensembles) and label smoothing (Mixup)?
- RQ3Can a dynamic, adaptive Mixup coefficient strategy mitigate the calibration degradation caused by this interaction?
- RQ4Does the proposed CAMixup method achieve better calibration and accuracy than using ensembles or data augmentation alone?
- RQ5Can the method generalize across different architectures and datasets, including ImageNet?
Key findings
- Combining ensembles and Mixup consistently degrades calibration across all three ensembling methods tested (MC-dropout, BatchEnsemble, Deep Ensembles), with ECE increasing significantly on CIFAR-10 and CIFAR-100.
- The root cause is a compounding under-confidence effect: Mixup’s soft labels introduce a negative confidence bias that is exacerbated when combined with ensemble marginalization over weights.
- CAMixup achieves state-of-the-art calibration on CIFAR-10 (0.4% ECE) and CIFAR-100 (2.3% ECE), outperforming both individual techniques and their naive combination.
- On ImageNet, CAMixup achieves 1.5% ECE, a new state-of-the-art, while maintaining competitive accuracy of 77.4% top-1 accuracy with ResNet-50.
- Forgetting count-based CAMixup further improves calibration on CIFAR-10, outperforming class-based CAMixup on most metrics for BatchEnsemble and MC-dropout, though results are inconsistent on CIFAR-100.
- Temperature scaling combined with CAMixup further improves in-distribution calibration but does not significantly improve out-of-distribution calibration.
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.