Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Deep Ensembles via the Neural Tangent Kernel

Bobby He, Balaji Lakshminarayanan|arXiv (Cornell University)|Jul 11, 2020
Gaussian Processes and Bayesian InferenceComputer Science62 references28 citations
TL;DR

This paper proposes Bayesian deep ensembles by modifying standard deep ensemble training through the addition of a random, untrainable function to each ensemble member, enabling a valid posterior predictive interpretation in the infinite-width limit via the Neural Tangent Kernel (NTK). The method yields more conservative, uncertainty-aware predictions than standard deep ensembles and closely approximates the analytic posterior predictive distribution in both regression and classification tasks, outperforming baselines on out-of-distribution generalization.

ABSTRACT

We explore the link between deep ensembles and Gaussian processes (GPs) through the lens of the Neural Tangent Kernel (NTK): a recent development in understanding the training dynamics of wide neural networks (NNs). Previous work has shown that even in the infinite width limit, when NNs become GPs, there is no GP posterior interpretation to a deep ensemble trained with squared error loss. We introduce a simple modification to standard deep ensembles training, through addition of a computationally-tractable, randomised and untrainable function to each ensemble member, that enables a posterior interpretation in the infinite width limit. When ensembled together, our trained NNs give an approximation to a posterior predictive distribution, and we prove that our Bayesian deep ensembles make more conservative predictions than standard deep ensembles in the infinite width limit. Finally, using finite width NNs we demonstrate that our Bayesian deep ensembles faithfully emulate the analytic posterior predictive when available, and can outperform standard deep ensembles in various out-of-distribution settings, for both regression and classification tasks.

Motivation & Objective

  • To provide a principled Bayesian interpretation for deep ensembles, which currently lack such a foundation despite strong empirical performance.
  • To bridge the gap between deep ensembles and Gaussian processes (GPs) in the infinite-width limit using the Neural Tangent Kernel (NTK).
  • To develop a computationally tractable modification to standard deep ensemble training that enables exact posterior sampling in the NTK regime.
  • To evaluate whether the proposed Bayesian deep ensembles improve uncertainty calibration and out-of-distribution robustness compared to standard deep ensembles and other baselines.
  • To demonstrate that the method faithfully emulates the analytic posterior predictive distribution when available, particularly in simple, wide architectures.

Proposed method

  • Introduces a modified deep ensemble training procedure where each base learner is regularized toward an independently drawn, random, and untrainable function during optimization.
  • Leverages the Neural Tangent Kernel (NTK) framework to show that, in the infinite-width limit, the resulting ensemble approximates a GP posterior predictive distribution.
  • Uses the NTK to prove that the modified ensemble yields a valid posterior sample for the neural network function $ f(\cdot, \bm{\theta}) $, enabling Bayesian inference.
  • Employs randomised priors in the NTK regime to achieve exact posterior sampling under the assumption of linearity in parameters, which holds locally for wide networks.
  • Applies the method to both regression and classification tasks, using MLPs and CNNs, and compares predictive performance and uncertainty calibration against standard deep ensembles and random prior baselines.
  • Employs error-vs-confidence and predictive entropy histograms to evaluate uncertainty calibration on in-distribution and out-of-distribution datasets like NotMNIST and SVHN.

Experimental results

Research questions

  • RQ1Can a simple modification to standard deep ensemble training yield a valid Bayesian posterior predictive interpretation in the infinite-width limit?
  • RQ2How does the proposed Bayesian deep ensemble compare to standard deep ensembles and random prior baselines in terms of uncertainty calibration and out-of-distribution robustness?
  • RQ3To what extent does the method emulate the analytic posterior predictive distribution when it is available?
  • RQ4What is the impact of ensemble size and NTK hyperparameters on predictive performance and uncertainty calibration?
  • RQ5Can the NTK framework be used to derive a principled Bayesian interpretation for deep ensembles, resolving a long-standing open question in Bayesian deep learning?

Key findings

  • The proposed Bayesian deep ensembles achieve significantly lower error than standard deep ensembles on out-of-distribution test sets, with a 15% reduction in error at confidence threshold $ \tau = 0.6 $ on the NotMNIST dataset.
  • On the MNIST vs NotMNIST benchmark, the NTKGP-based ensemble methods closely match the analytic NTKGP posterior predictive distribution in both in-distribution and out-of-distribution performance.
  • Predictive entropy histograms show that the Bayesian deep ensembles make more conservative predictions on out-of-distribution data, as evidenced by higher entropy values on NotMNIST and SVHN.
  • The method outperforms both standard deep ensembles and random prior (RP) baselines in uncertainty calibration, particularly on OOD generalization tasks.
  • For smaller ensemble sizes, the Bayesian deep ensembles still provide strong uncertainty calibration, and performance improves with larger ensembles, approaching the analytic posterior.
  • The method is most effective in the lazy learning regime and may underperform standard deep ensembles when confident predictions are not harmful, though this can be mitigated via NTK hyperparameter tuning.

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.