Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty in Neural Networks: Approximately Bayesian Ensembling

Tim Pearce, Felix Leibfried|arXiv (Cornell University)|Oct 12, 2018
Reservoir Engineering and Simulation MethodsEngineering25 references38 citations
TL;DR

This paper proposes anchored ensembling, a method that regularizes neural network weights around samples from a prior distribution to approximate Bayesian inference. By modifying standard ensembling with parameter regularization, it achieves uncertainty estimates closer to Bayesian methods, outperforming standard ensembling and matching variational inference in experiments across regression, classification, and reinforcement learning tasks.

ABSTRACT

Understanding the uncertainty of a neural network's (NN) predictions is essential for many purposes. The Bayesian framework provides a principled approach to this, however applying it to NNs is challenging due to large numbers of parameters and data. Ensembling NNs provides an easily implementable, scalable method for uncertainty quantification, however, it has been criticised for not being Bayesian. This work proposes one modification to the usual process that we argue does result in approximate Bayesian inference; regularising parameters about values drawn from a distribution which can be set equal to the prior. A theoretical analysis of the procedure in a simplified setting suggests the recovered posterior is centred correctly but tends to have an underestimated marginal variance, and overestimated correlation. However, two conditions can lead to exact recovery. We argue that these conditions are partially present in NNs. Empirical evaluations demonstrate it has an advantage over standard ensembling, and is competitive with variational methods.

Motivation & Objective

  • To address the challenge of uncertainty quantification in deep neural networks, which is critical for real-world applications like active learning and adversarial robustness.
  • To bridge the gap between practical ensembling methods and principled Bayesian inference, which is computationally infeasible for large-scale models.
  • To develop a scalable, implementable method that approximates Bayesian posterior inference in neural networks through parameter regularization.
  • To theoretically analyze the conditions under which anchored ensembling recovers the true posterior, and empirically validate its performance against standard ensembling and variational inference.

Proposed method

  • Anchored ensembling introduces a regularization term that pulls network parameters toward values sampled from a prior distribution, effectively implementing randomised MAP sampling (RMS).
  • The method samples anchor parameters from a prior distribution and trains each network in the ensemble to minimize a loss function regularized around these anchors.
  • Theoretical analysis shows that under multivariate normal assumptions, the method recovers the correct posterior mean but underestimates marginal variance and overestimates correlation.
  • Exact posterior recovery is achieved under two conditions: perfectly correlated parameters or parameters with infinite marginal likelihood variance ('extrapolation parameters').
  • The approach is extended to classification tasks via parameter-space abstraction, enabling application beyond regression.
  • Empirical evaluation uses standard benchmarks in regression, image classification (CIFAR-10, MNIST), sentiment analysis (IMDb), and reinforcement learning (FetchPush), comparing against standard ensembling and variational inference.

Experimental results

Research questions

  • RQ1Can a simple modification to standard ensembling—regularizing parameters around samples from a prior—produce uncertainty estimates that approximate Bayesian inference?
  • RQ2Under what theoretical conditions does anchored ensembling exactly recover the true posterior distribution?
  • RQ3How does anchored ensembling compare to standard ensembling and variational inference in terms of predictive uncertainty and accuracy across diverse tasks?
  • RQ4To what extent are the theoretical conditions for exact posterior recovery (perfect correlation or infinite variance) approximately satisfied in real neural networks?

Key findings

  • Anchored ensembling produces predictive distributions that closely resemble those of Gaussian processes and exact Bayesian methods, as shown in visualizations across multiple tasks.
  • The method significantly outperforms standard ensembling in uncertainty estimation, particularly in out-of-distribution detection and generalization.
  • On CIFAR-10, anchored ensembling achieved test accuracy comparable to variational inference while providing better uncertainty calibration.
  • In the FetchPush reinforcement learning environment, the method enabled more effective exploration and higher final cumulative rewards than standard ensembling.
  • Empirical results show that anchored ensembling is competitive with state-of-the-art variational inference methods in both regression and classification tasks.
  • Theoretical analysis confirms that while the method generally underestimates variance and overestimates correlation, the two conditions for exact posterior recovery are partially satisfied in neural networks, explaining the strong empirical performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.