Introduction
Deep neural networks have achieved remarkable success across various domains, yet they remain notoriously "overconfident." These models often produce high-probability predictions even when they are incorrect, a problem that is exacerbated when the models encounter data that differs from their training distribution—a phenomenon known as distribution shift. Bayesian Deep Learning (BDL) offers a theoretical solution to this issue by marginalizing over the posterior distribution of model parameters rather than relying on a single point estimate.
Despite its theoretical promise, BDL has faced a "replication crisis," with many algorithms evaluated only on small-scale, synthetic benchmarks like MNIST or CIFAR-10 with artificial corruptions. This paper provides a rigorous reality check for modern BDL algorithms by evaluating them on the WILDS benchmark, a collection of large-scale, real-world datasets spanning satellite imagery, molecular biology, and natural language processing.
Methodology: The BDL Taxonomy
The authors evaluate a comprehensive suite of BDL algorithms, categorizing them into three primary groups:
- Single-mode Approximations: These methods approximate the posterior around a single local optimum. Examples include Stochastic Weight Averaging-Gaussian (SWAG), Monte Carlo Dropout (MCD), Laplace Approximation, and various Variational Inference (VI) techniques such as Bayes By Backprop (BBB) and Rank-1 VI.
- Multi-mode Approximations (MultiX): A key contribution of this work is the systematic evaluation of "MultiX" methods. These involve ensembling multiple probabilistic models (e.g., MultiSWAG, MultiBBB). This approach aims to capture both local uncertainty (via the probabilistic method) and global uncertainty (via ensembling across different basins in the loss landscape).
- Baselines: The study compares these against standard Maximum A Posteriori (MAP) training and the widely used Deep Ensembles.
To measure performance, the authors utilize standard accuracy and calibration metrics, but they introduce a more nuanced tool: signed Expected Calibration Error (sECE). Unlike standard ECE, which only quantifies the magnitude of miscalibration, sECE indicates the direction—revealing whether a model is systematically overconfident (negative) or underconfident (positive).
Empirical Results and Insights
The MultiX Advantage in CNNs
For Convolutional Neural Networks (CNNs) evaluated on vision tasks like iWildCam and FMoW, the MultiX approach emerged as a clear powerhouse. By combining the benefits of ensembling with local posterior approximations, MultiX methods consistently outperformed standard Deep Ensembles. On the iWildCam dataset, the Laplace approximation and MultiX variants achieved near-perfect calibration, whereas standard MAP models remained significantly overconfident.
The Transformer Surprise
Perhaps the most surprising finding occurred in the context of Large Language Models. When fine-tuning DistilBERT on text classification tasks like CivilComments and Amazon, the benefits of ensembling largely vanished. The authors hypothesize that because these models are fine-tuned from a single pre-trained checkpoint, the individual members of an ensemble do not diverge sufficiently in the parameter space to provide meaningful diversity.
In this regime, Variational Inference (VI)—often dismissed as difficult to tune or outdated—staged a significant comeback. On the CivilComments task, BBB achieved a worst-group accuracy of approximately 54%, a substantial improvement over the 42% achieved by both standard MAP training and Deep Ensembles. This suggests that for fine-tuning scenarios, capturing local uncertainty via VI is more effective than attempting to capture global uncertainty via ensembling.
Posterior Quality and HMC
To validate the quality of these approximations, the authors compared BDL methods against a "gold standard" posterior generated via Hamiltonian Monte Carlo (HMC) on CIFAR-10-C. Using Total Variation (TV) distance as a metric, the results demonstrated that MultiSWAG and MultiiVON provide the closest approximations to the true Bayesian posterior achieved at scale to date.
Discussion and Limitations
The study highlights a critical distinction between training from scratch and fine-tuning. While MultiX is superior for the former, VI appears more robust for the latter. However, the authors acknowledge several limitations:
- Architecture Scope: The evaluation focused on CNNs and Transformers; future work is needed to assess Recurrent Neural Networks (LSTMs) and other diverse architectures.
- Computational Constraints: The comparison to HMC was limited to CIFAR-10 because HMC remains computationally prohibitive for the larger WILDS datasets.
- Pre-training Influence: Most results in this study are based on fine-tuning. The behavior of BDL might differ significantly if large-scale models were trained from scratch, though this remains a challenge for future research due to the immense resource requirements.
Conclusion
This large-scale evaluation moves beyond toy datasets to show that BDL can provide tangible benefits in real-world scenarios. By identifying the strengths of MultiX for CNNs and the unexpected efficacy of Variational Inference for Transformers, the authors provide a roadmap for practitioners looking to deploy more reliable and less "arrogant" deep learning models in the wild.
Summary updated