Introduction
Deep neural networks (DNNs) are often deployed in high-stakes environments, yet they suffer from a significant flaw: overconfidence. A model might predict a class with near-total certainty even when its prediction is incorrect. Uncertainty calibration aims to align a model's confidence with its actual likelihood of being correct. While mixup training—training on convex combinations of image pairs and labels—has been widely adopted to improve both accuracy and raw calibration, this paper identifies a critical "pitfall" in its application.
The Mixup Pitfall: A Barrier to Optimal Calibration
The authors demonstrate that while mixup improves "raw" calibration out of the box, it paradoxically makes models less responsive to standard post-hoc calibration techniques like Temperature Scaling (TS).
This phenomenon occurs because mixup introduces a "confidence penalty" by training on soft, "blurry" labels (e.g., 0.5 Cat, 0.5 Dog). While this prevents extreme overconfidence initially, it acts as a performance ceiling. The model learns a smoothed representation that lacks the distinct features of pure classes, preventing it from reaching the peak calibration performance achievable by standard Empirical Risk Minimization (ERM) models after post-processing.
Mixup Inference in Training (MIT)
To overcome this limitation, the researchers propose Mixup Inference in Training (MIT). This approach seeks to retain the regularization benefits of mixup while avoiding the degradation of calibratability.
The core of MIT is the Decoupling Principle. Mathematically, if two samples are mixed twice with different weights, the individual predictions for the original raw samples can be algebraically recovered in the output space. By "un-mixing" the predictions before the final softmax layer, the model can be trained using the original, "sharp" one-hot labels of the raw samples, even though the input was a mixed image.
The authors evaluate two variants:
- MIT-L: Decoupling is applied only at the final layer.
- MIT-A: Decoupling is integrated across all blocks of the architecture (e.g., ResNet).
Experimental Evaluation
The proposed methods were tested on SVHN, CIFAR-10, CIFAR-100, and Tiny-ImageNet using various ResNet architectures (18, 50, 110, and 152).
Key Findings
- Widespread Failure of Vanilla Mixup: In 82% of the tested scenarios, vanilla mixup resulted in worse calibrated ECE than standard ERM after Temperature Scaling.
- Superiority of MIT: MIT-A consistently outperformed vanilla mixup in both predictive accuracy and post-hoc calibration. For instance, on CIFAR-100 with ResNet-110, MIT-A reached a top-1 accuracy of 79.1% with significantly better calibration than the baseline.
- Robustness: MIT is less sensitive to the choice of the "alpha" hyperparameter, which typically dictates the intensity of mixing and significantly impacts vanilla mixup's performance.
Conclusion
This research highlights that a model appearing well-calibrated immediately after training is not necessarily the most reliable. By focusing on "Optimal ECE"—the best possible calibration after post-processing—the authors reveal that vanilla mixup hinders a model's true potential. The proposed MIT framework successfully decouples the regularization of mixup from the training labels, allowing models to achieve state-of-the-art accuracy alongside superior uncertainty calibration.
Summary updated