Abstract
Bayesian Neural Networks (BNNs) provide a principled framework for uncertainty quantification but face significant scaling challenges. This paper introduces "stochastic ensembles," a unified framework that bridges deep ensembling and stochastic regularization under a Variational Inference (VI) lens. By combining multiple ensemble members with internal stochasticity (e.g., dropout), the proposed method achieves superior posterior approximations. Evaluations against Hamiltonian Monte Carlo (HMC) ground truths on CIFAR-10 and CIFAR-100 demonstrate that stochastic ensembles significantly outperform standard deep ensembles and MultiSWA in terms of accuracy, calibration, and predictive entropy.
Introduction
Understanding model uncertainty is critical for deploying deep learning in safety-critical applications. While Bayesian Neural Networks (BNNs) are the theoretical gold standard, calculating the true posterior is computationally prohibitive for modern architectures. Practitioners often rely on heuristics like Deep Ensembles or Monte Carlo (MC) Dropout. This work formalizes these techniques into a single mathematical framework called "stochastic ensembles," asking whether their combination can more closely approximate the true Bayesian posterior.
Methods
The authors employ Variational Inference (VI) to define a family of "stochastic ensemble" distributions. The core of the approach is the Stochastic Ensemble Ansatz, which accounts for both $K$ ensemble members and internal stochasticity. A key feature of the derived loss function is a "repulsive force" term that encourages diversity among ensemble members, preventing them from collapsing into a single solution.
The paper explores three realizations:
- SE1: Ensembles using MC Dropout.
- SE2: Ensembles using DropConnect.
- SE3 (Non-parametric Dropout): A novel joint training approach where parameters are randomly exchanged between members, eliminating the need for manual "drop rate" tuning.
Results
The methods were rigorously benchmarked against "ground truth" HMC simulations for ResNet-20 on CIFAR-10 and CIFAR-100.
Calibration and Accuracy
Stochastic ensembles (specifically SE1) demonstrated superior performance. On CIFAR-100, SE1 achieved 68.49% accuracy, compared to 62.84% for regular ensembles. Crucially, SE1's calibration curves closely matched the HMC baseline, indicating more reliable uncertainty estimates.
Posterior Quality
A major contribution of this work is the direct comparison of predictive entropy distributions against HMC. As shown in the entropy histograms, the distribution for SE1 aligns much more closely with the HMC "gold standard" than regular ensembles or MultiSWA, which often appear overconfident.
Sensitivity to Distribution Shift
On corrupted datasets (CIFAR-C), SE1 showed increased sensitivity to noise. While this might seem like a drawback, it actually mirrors the behavior of the true HMC posterior, suggesting that standard ensembles may be "incorrectly robust" or overconfident under shift.
Conclusion
Stochastic ensembles provide a mathematically grounded and practically effective way to approximate Bayesian posteriors in deep learning. By leveraging both the mode-finding capabilities of ensembles and the basin-exploration of stochasticity, they offer a significant step forward in uncertainty quantification. Future work will focus on automating hyperparameter tuning to further enhance the accessibility of these high-quality posterior approximations.
Summary updated