NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Case for Bayesian Deep Learning

Andrew Gordon WilsonarXiv 2020

Abstract

Bayesian Deep Learning (BDL) is often perceived as a niche or computationally prohibitive alternative to standard deep learning. In this position paper, Andrew Gordon Wilson argues that the Bayesian framework is not only practical but essential for understanding and improving neural network generalization. By shifting the focus from optimization—finding a single set of weights—to marginalization—averaging over the posterior distribution—BDL addresses fundamental issues of miscalibration and model underspecification. This paper explores the theoretical foundations of Bayesian Model Averaging (BMA), the role of architecture as a functional prior, and modern scalable approximations that bring Bayesian benefits to large-scale deep learning.

Introduction

In the current landscape of artificial intelligence, deep learning is dominated by the paradigm of optimization. We define a loss function and use stochastic gradient descent (SGD) to find a single point estimate of model parameters that minimizes that loss. While successful, this approach ignores the inherent uncertainty in model selection. Andrew Gordon Wilson’s position paper argues that Bayesianism provides the most natural and effective framework for deep learning, asserting that the core of the Bayesian approach is not the choice of priors, but the process of marginalization.

The Problem: The Pitfalls of Optimization

Classical deep learning typically relies on Maximum A Posteriori (MAP) optimization. This "bet everything on one horse" strategy is problematic because modern neural networks are highly flexible and "underspecified" by the available data. For any given dataset, there exists an almost infinite number of weight configurations that can achieve zero training error but produce wildly different predictions on unseen data.

By selecting only a single set of weights ($w$), we ignore all other compelling explanations for the data. This leads to two primary failures:

  1. Miscalibration: Models become overconfident in their predictions, even when they are wrong, because they do not account for the range of other plausible outcomes.
  2. Lost Accuracy: We lose the "wisdom of the crowd." Optimization picks one path, whereas the true underlying function might be better represented by an average of many high-performing models.

The Bayesian Alternative: Marginalization

The paper centers on Bayesian Model Averaging (BMA). Rather than seeking a single "best" model, BMA calculates a predictive distribution by integrating over all possible weight settings, weighted by their posterior probability:

$$p(y|x, \mathcal{D}) = \int p(y|x, w)p(w|\mathcal{D})dw$$

While this integral follows directly from the rules of probability, it is computationally intractable for deep networks with millions of parameters. However, Wilson argues that even a crude approximation of this integral is significantly better than a point estimate (a Dirac delta approximation), which is the most impoverished representation possible.

Scalable Approximations

To bridge the gap between theory and practice, the paper highlights several modern methods that make BMA feasible for large-scale architectures:

  • Deep Ensembles: Often viewed as a non-Bayesian trick, Wilson argues that training the same architecture multiple times from different random starts is actually a highly effective way to approximate the BMA integral. These ensembles sample different "basins" of the loss landscape, capturing functional diversity.
  • SWAG (SWA-Gaussian): This method approximates the posterior distribution by analyzing the geometry of the SGD trajectory, providing a scalable way to estimate uncertainty without the cost of full MCMC.
  • Subspace Inference: By performing Bayesian inference within a low-dimensional subspace of the model's parameters, researchers can retain computational efficiency while capturing the most important variations in the model's predictions.

Key Philosophical Insights

The Volume Argument

In high-dimensional parameter spaces, the geometry of the loss landscape is counterintuitive. "Flat" regions of the landscape occupy significantly more volume than "sharp" peaks. Because Bayesian methods integrate over volume (marginalization) rather than just searching for the lowest point (optimization), they naturally favor these flat regions. Crucially, flat regions are empirically known to generalize better to new data, explaining why Bayesian approaches often outperform standard SGD.

Function Space vs. Parameter Space

A common critique of Bayesian NNs is the difficulty of choosing a prior for millions of weights. Wilson counters this by distinguishing between parameter space and function space. Even if we use a simple, "vague" Gaussian prior on the weights, the complex architecture of a CNN or a Transformer transforms that prior into a highly structured and useful prior in function space. The inductive biases we care about—like translation invariance in images—are baked into the architecture, which the Bayesian framework then leverages through marginalization.

Results and Empirical Evidence

The paper synthesizes findings from across the BDL literature to demonstrate three core benefits:

  1. Improved Calibration: Bayesian methods significantly reduce overconfidence, a requirement for safety-critical fields like autonomous driving and medical diagnostics.
  2. Higher Accuracy: Averaging over different models consistently outperforms single-point estimates, particularly when data is limited, noisy, or subject to distribution shift.
  3. Scalability: Modern techniques like SWAG and Deep Ensembles prove that Bayesian benefits do not require an order-of-magnitude increase in compute, making them viable for industry-scale ImageNet or Transformer models.

Conclusion and Future Directions

Wilson concludes that the question is not whether we should be Bayesian, but how we should approximate the Bayesian integral. The future of the field lies in developing more sophisticated priors directly in function space and creating better methods to navigate the multi-modal posterior landscapes of modern architectures. By moving away from the limitations of optimization and embracing marginalization, the deep learning community can build models that are not only more accurate but more honest about what they do not know.

Summary updated

BibTeX
@misc{wilson2020case,
  author = {Andrew Gordon Wilson},
  title = {{The Case for Bayesian Deep Learning}},
  year = {2020},
  eprint = {2001.10995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.10995},
}
Figure