Posterior Uncertainty Quantification in Neural Networks using Data Augmentation

Luhuan Wu, Sinead Williamson

In high-stakes applications such as autonomous driving and medical diagnostics, neural networks must not only provide accurate predictions but also reliably quantify their own uncertainty. While Deep Ensembles (DE) are the current standard for Uncertainty Quantification (UQ), recent research presented at AISTATS 2024 suggests they lack a rigorous theoretical foundation. This paper introduces MixupMP, a principled, data-driven framework that leverages data augmentation to improve both predictive performance and uncertainty reliability.

The Theoretical Flaw in Deep Ensembles

Bayesian Neural Networks (BNNs) are theoretically ideal for UQ but suffer from scalability issues and the difficulty of defining meaningful priors over millions of parameters. Consequently, practitioners rely on Deep Ensembles—averaging the outputs of multiple models trained with different initializations.

The authors demonstrate that through the lens of Martingale Posteriors (MP), Deep Ensembles are functionally equivalent to the Bayesian Bootstrap (BB). This equivalency reveals a critical "mis-specification": DE implicitly assumes that all future data will be exact replicates of the training set. In overparameterized models capable of perfect memorization, this leads to a "pointy" uncertainty landscape where the model is only uncertain at the immediate decision boundaries, remaining overconfident in the vast, empty spaces between data clusters.

The MixupMP Framework

To address this, the researchers propose MixupMP. This method replaces the assumption of "exact repeats" with a more realistic simulation of the future using Mixup data augmentation. Mixup creates synthetic examples by linearly interpolating between pairs of real training samples and their labels. By training ensemble members on these "interpolated futures," the model learns to account for the novelty of unseen data.

Synthetic data clusters and 'future' samples (x) for varying concentration ratios $r$.

A central component of this framework is the concentration ratio, $r$. When $r=0$, the model behaves like a standard ensemble. As $r$ increases, the model incorporates more synthetic "future" data. The authors find that optimal performance typically occurs at intermediate values (e.g., $r=0.1$ to $1.0$), where the model balances respect for the training data with an acknowledgement of potential out-of-distribution samples.

Filling the Gaps in Uncertainty

Standard ensembles often fail by being overconfident in the "no-man's-land" between data clusters. MixupMP forces the model to maintain higher entropy (uncertainty) in these regions by populating them with synthetic samples during training. This approach effectively uses domain knowledge—via the choice of augmentation—to define a prior for what future data might look like, rather than attempting to guess a prior for abstract model weights.

The resulting uncertainty landscape showing high entropy in the 'no-man's-land' between data clusters.

Experimental Results and Robustness

The researchers evaluated MixupMP against standard Deep Ensembles, Laplace approximations, and MC Dropout across several benchmarks, including CIFAR-10/100 and their corrupted variants (CIFAR-C).

  • Accuracy: On CIFAR-100, MixupMP ($r=1.0$) achieved 85.98% accuracy, significantly outperforming the standard Deep Ensemble's 83.28%.
  • Calibration: MixupMP ($r=0.1$) yielded the lowest Expected Calibration Error (ECE), indicating that its predicted probabilities were more representative of its actual accuracy.
  • Distribution Shift: Under heavy corruption (e.g., fog or blur in CIFAR-100-C), MixupMP maintained an informative uncertainty profile. While standard ensembles often became wildly overconfident as noise increased, MixupMP's uncertainty scaled appropriately with the level of data degradation.

Conclusion and Future Directions

MixupMP provides a theoretically grounded alternative to standard ensembles by treating data augmentation as a proxy for future data distribution. While the method requires hyperparameter tuning for $r$ and the mixup strength $\alpha$, it offers a significant leap in reliability for safety-critical AI. Future work may explore extending this "future-simulating" approach to non-image modalities, such as natural language processing or tabular data, where different augmentation strategies would be required.

Summary updated

BibTeX
@inproceedings{wu2024posterior,
  author = {Luhuan Wu and Sinead Williamson},
  title = {{Posterior Uncertainty Quantification in Neural Networks using Data Augmentation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure