Skip to main content
QUICK REVIEW

[Paper Review] Approximate Inference Turns Deep Networks into Gaussian Processes

Mohammad Emtiyaz Khan, Alexander Immer|arXiv (Cornell University)|Jun 5, 2019
Gaussian Processes and Bayesian InferenceComputer Science22 references13 citations
TL;DR

This paper establishes a theoretical equivalence between Gaussian posterior approximations in Bayesian deep neural networks (DNNs) and Gaussian process (GP) posteriors, enabling the extraction of GP kernels and nonlinear feature maps during standard DNN training. Surprisingly, the derived kernel is equivalent to the neural tangent kernel (NTK), allowing DNN hyperparameter tuning via GP marginal likelihood without cross-validation.

ABSTRACT

Deep neural networks (DNN) and Gaussian processes (GP) are two powerful models with several theoretical connections relating them, but the relationship between their training methods is not well understood. In this paper, we show that certain Gaussian posterior approximations for Bayesian DNNs are equivalent to GP posteriors. This enables us to relate solutions and iterations of a deep-learning algorithm to GP inference. As a result, we can obtain a GP kernel and a nonlinear feature map while training a DNN. Surprisingly, the resulting kernel is the neural tangent kernel. We show kernels obtained on real datasets and demonstrate the use of the GP marginal likelihood to tune hyperparameters of DNNs. Our work aims to facilitate further research on combining DNNs and GPs in practical settings.

Motivation & Objective

  • To establish a theoretical connection between training procedures of deep neural networks (DNNs) and Gaussian processes (GPs).
  • To show that Gaussian posterior approximations in Bayesian DNNs (e.g., Laplace approximation, variational inference) are mathematically equivalent to GP posteriors.
  • To enable the extraction of GP kernels and nonlinear feature maps during standard DNN training.
  • To demonstrate that the derived kernel corresponds to the neural tangent kernel (NTK), providing a new perspective on its emergence.
  • To enable practical hyperparameter tuning in DNNs using the GP marginal likelihood, avoiding cross-validation.

Proposed method

  • Use Gaussian posterior approximations (Laplace and variational inference) on Bayesian DNNs to derive equivalent GP posterior distributions.
  • Derive the corresponding GP kernel and nonlinear feature map from the DNN's weight posterior approximation.
  • Show that the resulting kernel is equivalent to the neural tangent kernel (NTK), derived from the Jacobian of the DNN output.
  • Apply the DNN2GP framework to extract feature maps and kernels from trained DNNs on real datasets like MNIST and CIFAR.
  • Use the GP marginal likelihood computed from the DNN2GP transformation to tune DNN hyperparameters such as regularization strength, noise variance, and network width.
  • Validate the method on synthetic and real datasets (e.g., UCI Red Wine Quality), comparing hyperparameter selection via marginal likelihood and test loss.

Experimental results

Research questions

  • RQ1Can Gaussian posterior approximations in Bayesian DNNs be formally mapped to GP posteriors?
  • RQ2Does the kernel derived from DNN training via approximate inference correspond to the neural tangent kernel (NTK)?
  • RQ3Can the GP marginal likelihood obtained from DNN training be used to tune DNN hyperparameters effectively?
  • RQ4What is the relationship between the feature maps extracted from DNNs and the corresponding GP kernel?
  • RQ5How do the hyperparameters selected via GP marginal likelihood compare to those selected via standard test error in real-world DNNs?

Key findings

  • The Gaussian posterior approximation in Bayesian DNNs via Laplace or variational inference is mathematically equivalent to the posterior in a GP regression model.
  • The derived kernel from the DNN training process is equivalent to the neural tangent kernel (NTK), emerging naturally from the posterior approximation.
  • Nonlinear feature maps extracted from trained DNNs using the DNN2GP framework capture meaningful representations, visualized effectively on MNIST and CIFAR datasets.
  • The GP marginal likelihood computed from the DNN2GP transformation selects DNN hyperparameters (e.g., regularization, width, noise variance) that yield low test error, matching performance of cross-validation.
  • On both synthetic and real-world datasets (e.g., UCI Red Wine Quality), hyperparameters selected via the GP marginal likelihood generalize well, demonstrating its viability as a hyperparameter tuning objective.
  • The framework enables a seamless integration of DNNs and GPs, allowing the use of GP inference tools on standard DNNs without architectural changes.

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.