[Paper Review] Bayesian Neural Network Ensembles
This paper proposes a Bayesian neural network ensemble method that uses randomised MAP sampling with parameter regularization around prior-drawn weights to produce consistent posterior predictive samples in wide networks. By injecting noise into the prior mean via i.i.d. draws from a normal distribution, the method achieves accurate uncertainty estimation with only 5–10 models, outperforming standard ensembles and approximate Bayesian methods like VI and MC Dropout on regression tasks.
Ensembles of neural networks (NNs) have long been used to estimate predictive uncertainty; a small number of NNs are trained from different initialisations and sometimes on differing versions of the dataset. The variance of the ensemble's predictions is interpreted as its epistemic uncertainty. The appeal of ensembling stems from being a collection of regular NNs - this makes them both scalable and easily implementable. They have achieved strong empirical results in recent years, often presented as a practical alternative to more costly Bayesian NNs (BNNs). The departure from Bayesian methodology is of concern since the Bayesian framework provides a principled, widely-accepted approach to handling uncertainty. In this extended abstract we derive and implement a modified NN ensembling scheme, which provides a consistent estimator of the Bayesian posterior in wide NNs - regularising parameters about values drawn from a prior distribution.
Motivation & Objective
- To develop a scalable, practical method for Bayesian neural network inference that avoids costly MCMC or variational inference.
- To address the gap between empirical ensemble methods and principled Bayesian uncertainty estimation in deep learning.
- To show that randomised MAP sampling with properly calibrated noise can consistently approximate the true posterior in wide neural networks.
- To demonstrate that only a small number of models (5–10) are needed to capture predictive uncertainty effectively.
Proposed method
- The method uses a modified loss function that regularizes network parameters around a randomly drawn prior mean, defined as $\text{Loss}_{\text{anchor}} = \frac{1}{N}\|\mathbf{y}-\hat{\mathbf{y}}\|_2^2 + \frac{1}{N}\|\boldsymbol{\Gamma}^{1/2}(\boldsymbol{\theta}-\boldsymbol{\theta}_0)\|_2^2$, where $\boldsymbol{\theta}_0 \sim \mathcal{N}(\boldsymbol{\mu}_{\text{prior}}, \boldsymbol{\Sigma}_{\text{prior}})$.
- The noise distribution for $\boldsymbol{\theta}_0$ is derived to ensure the resulting MAP estimates have the correct posterior mean and covariance, with $\boldsymbol{\Sigma}_0 = \boldsymbol{\Sigma}_{\text{prior}} + \boldsymbol{\Sigma}_{\text{prior}}^2 \boldsymbol{\Sigma}_{\text{like}}^{-1}$.
- For wide neural networks, the term $\boldsymbol{\Sigma}_{\text{prior}}^2 \boldsymbol{\Sigma}_{\text{like}}^{-1}$ vanishes, allowing the use of $\boldsymbol{\Sigma}_0 = \boldsymbol{\Sigma}_{\text{prior}}$ as a valid approximation.
- Each model in the ensemble is trained independently by minimizing the anchored loss with a different $\boldsymbol{\theta}_0$, producing i.i.d. samples from the posterior predictive distribution.
- The method avoids injecting noise into the likelihood (e.g., targets), which is complex and inconsistent in non-linear models, and instead focuses on the prior mean as the sole noise source.
- The approach is theoretically justified under the assumption that the posterior is dominated by the prior in wide networks, which holds in over-parameterized Bayesian neural networks.
Experimental results
Research questions
- RQ1Can randomised MAP sampling with noise injected into the prior mean produce a consistent estimator of the true posterior in wide Bayesian neural networks?
- RQ2How many models are needed in an ensemble to achieve reliable uncertainty estimates in predictive space?
- RQ3Why do standard ensembling methods fail to capture epistemic uncertainty in out-of-distribution regions, and can this be corrected via proper prior regularization?
- RQ4Can a simple, scalable method approximate gold-standard Bayesian inference (e.g., HMC or GP) without requiring MCMC or variational inference?
- RQ5Does the method outperform existing scalable Bayesian deep learning approaches like VI and MC Dropout in capturing parameter correlations and predictive uncertainty?
Key findings
- The proposed method produces predictive distributions that closely approximate the gold standard from Hamiltonian Monte Carlo and Gaussian processes on a toy regression problem with ReLU, sigmoidal, and RBF activations.
- The method outperforms mean-field VI and MC Dropout in capturing epistemic uncertainty, particularly in interpolated regions, due to its ability to model parameter correlations.
- Despite some overestimation of variance, the method provides a qualitatively accurate approximation of the true posterior predictive distribution.
- An ensemble size of only 5–10 models is sufficient to achieve good uncertainty estimation, and this number does not scale with input or output dimensionality.
- The method correctly reproduces the behavior of RBF Gaussian processes in out-of-distribution regions, including high-confidence zero predictions far from training data.
- On ten standard benchmark datasets, the method outperforms Deep Ensembles on tasks where epistemic uncertainty is the dominant source of uncertainty, demonstrating superior uncertainty quantification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.