Abstract
Sequential Anchored Ensembles (SAE) is a lightweight method for approximating the Bayesian posterior of neural networks by training ensemble members sequentially rather than from scratch. By using a "guided walk" to sample loss functions that are close to one another, SAE allows for much faster convergence, enabling the creation of massive ensembles (thousands of members) for the same computational cost as a standard ensemble of just a few dozen. This approach significantly improves uncertainty calibration in deep learning models.
Introduction
Quantifying uncertainty in deep learning is critical for high-stakes applications like medicine or autonomous driving. Bayesian Deep Learning (BDL) provides a formal framework for this by estimating a "posterior" distribution over network parameters. However, calculating this posterior is notoriously difficult because neural networks have millions of parameters.
One popular approximation is Anchored Ensembles (AE). In AE, multiple models are trained, each with a slightly different "anchored" loss function designed so that the resulting optima follow the Bayesian posterior. The primary drawback is computational cost: training a high-quality ensemble with 100 members requires repeating the full training process 100 times from scratch. This bottleneck limits the diversity and quality of the uncertainty estimates we can afford to produce.
Methodology: Breaking the Bottleneck
SAE breaks this bottleneck by exploiting the continuity of the loss landscape. If two anchored loss functions are similar, their optimal weights should also be similar. The method consists of three key components:
- Sequential Initialization: Instead of random initialization, the $i$-th member starts with the weights of the $(i-1)$-th member.
- Guided Walk Metropolis-Hastings: To ensure sequential training works, the "anchors" (targets in the loss function) are sampled such that consecutive anchors are close to each other. A modified MCMC procedure moves the anchor in a specific direction until it hits a low-probability region, then reverses.
- Short Training Cycles: Because the starting weights are already near the new optimum, the network only needs a brief training burst to converge.
Experimental Evaluation
The authors evaluated SAE on a variety of benchmarks from the NeurIPS 2021 Approximate Inference in Bayesian Deep Learning competition, including Cifar10 (ResNet-20), Cifar10-C (AlexNet), IMDB (CNN-LSTM), DermaMNIST (2-layer CNN), and UCI-Gap (MLP regression).
Key Results
SAE achieved 2nd and 3rd place in the light and extended tracks of the NeurIPS competition. The primary advantage of SAE is its efficiency: for a 10,000-epoch budget on image tasks, SAE generated 4,510 ensemble members, whereas standard AE only managed 100 members.
As shown in the table below, this massive increase in ensemble size leads to superior calibration. On Cifar10, SAE achieved a significantly lower Total Variation (TV) score of 0.133 compared to 0.199 for AE, indicating that SAE's uncertainty estimates are much closer to the true Bayesian ground truth.
Discussion and Conclusion
SAE demonstrates that "quantity has a quality of its own" in Bayesian approximation. By navigating the prior space to pick anchors, SAE makes the sampling process more stable and efficient than standard MCMC methods that attempt to sample the complex posterior directly.
While SAE performed slightly worse on the UCI-Gap regression task, its performance on high-dimensional classification tasks is exemplary. Future work may involve combining SAE with other efficiency-boosting techniques like cyclical learning rates or low-precision training to further scale Bayesian deep learning.
Summary updated