Bayesian Foundations of Deep Ensembles

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 134 papers34 conceptsfrozen 2026-10-04

Deep ensembles—the practice of training multiple neural networks from different random initializations and averaging their predictions—are arguably the most successful technique for uncertainty quantification in modern machine learning. Despite their empirical dominance, they were long dismissed as a "heuristic" or a "trick" that lacked the mathematical elegance of true Bayesian Neural Networks (BNNs).

However, a growing body of research is closing this gap. By reframing ensembles through the lenses of variational inference, gradient flows, and Gaussian processes, researchers have shown that ensembles are not just a shortcut; they are a principled way to approximate the Bayesian posterior.

The Problem of Posterior Collapse

In a perfect Bayesian world, we want to sample from the posterior distribution $p(\theta | \mathcal{D})$. Standard deep ensembles attempt this by training $N$ independent models. But as Kashyap Chitta and José M. Álvarez point out in Deep Probabilistic Ensembles, independent training doesn't guarantee that the resulting models represent the true posterior.

Without a shared objective or a connection to a prior, ensemble members often "collapse" toward the same high-performing regions of the parameter space. This leads to overconfidence: the models agree too much, failing to capture the "knowledge uncertainty" (epistemic uncertainty) required for safety-critical tasks.

Anchoring to the Prior

The first major step toward a rigorous Bayesian interpretation came from the concept of anchoring. In Bayesian Neural Network Ensembles, Tim Pearce and colleagues demonstrated that a simple modification to the loss function can transform an ensemble into a consistent posterior estimator.

The intuition is straightforward: instead of regularizing weights toward zero (standard $L_2$ regularization), each ensemble member is regularized toward a different "anchor" point drawn from the prior distribution. This forces the models to stay diverse and ensures that the ensemble variance reflects the true breadth of the Bayesian posterior. Kamil Ciosek and Richard E. Turner expanded on this in Conservative Uncertainty Estimation By Fitting Prior Networks, showing that training "predictor" networks to match randomized "prior" networks provides a conservative bound on uncertainty that prevents overconfident predictions.

Ensembles as Gradient Flows

If anchoring provides the "where" (the prior), recent work on repulsive ensembles explains the "how" (the dynamics). Francesco D'Angelo and Vincent Fortuin proved in Repulsive Deep Ensembles are Bayesian that adding a "repulsive" term between ensemble members transforms the training process into a Wasserstein gradient flow.

In this view, the ensemble members are particles moving through the space of probability distributions. The repulsive force prevents them from clustering together, effectively pushing them to cover the entire posterior distribution. Veit David Wild and Jeremias Knoblauch further unified this in A Rigorous Link between Deep Ensembles and (Variational) Bayesian Methods, showing that ensembles can be viewed as a discrete approximation of a continuous optimization problem over the space of all possible models.

The Functional Perspective

While many researchers focus on the weights of the network, others argue that the true Bayesian nature of ensembles is best seen in function space. Feng Zhou introduced DE-GP, a framework that treats ensemble members as basis functions for a Gaussian Process (GP). By training the ensemble using functional variational inference, we can fix the "uncertainty collapse" that plagues standard models.

This functional view is echoed in the world of gradient boosting. Aleksei Ustimenko and Liudmila Prokhorenkova proved in Gradient Boosting Performs Low-Rank Gaussian Process Inference that even non-neural ensembles like GBDTs are mathematically equivalent to performing inference in a GP. This suggests that the "Bayesian-ness" of ensembles is a fundamental property of additive model construction, not just a quirk of neural networks.

Bridging Heuristics and Theory

The most recent wave of research suggests that ensembles might have been Bayesian all along, even without explicit modifications. In Deep Ensembles Secretly Perform Empirical Bayes, Gabriel Loaiza-Ganem and Yixin Wang argue that the stochasticity of training—random seeds, data shuffling, and initialization—acts as an implicit prior.

Furthermore, Yipei Wang and Xiaoqian Wang propose the theory of distributional equivalence in Agree to Disagree. They show that while individual models disagree on specific points, they follow an identical global distribution. This allows us to predict the behavior of a massive ensemble using just a few members, providing a theoretical explanation for why even small ensembles are so effective at capturing uncertainty.

By moving from "random seeds" to "gradient flows" and "functional priors," this research direction has turned a practical heuristic into one of the most theoretically grounded tools in the deep learning arsenal.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_bayesian_foundations_of_deep_ensembles_070d3c94,
  title = {Bayesian Foundations of Deep Ensembles},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/bayesian-foundations-of-deep-ensembles/rdr_070d3c9441d14fd8ae98eec73794d344},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-06},
}

This exact version (version 1, frozen text):

@misc{lacuna_bayesian_foundations_of_deep_ensembles_070d3c94_v1,
  title = {Bayesian Foundations of Deep Ensembles},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/bayesian-foundations-of-deep-ensembles/rdr_070d3c9441d14fd8ae98eec73794d344/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-06},
}