Skip to main content
QUICK REVIEW

[Paper Review] Noisy Natural Gradient as Variational Inference

Guodong Zhang, Shengyang Sun|arXiv (Cornell University)|Dec 6, 2017
Machine Learning and AlgorithmsComputer Science38 references28 citations
TL;DR

This paper introduces noisy natural gradient as a variational inference method for Bayesian neural networks, showing that adaptive weight noise in optimization implicitly performs natural gradient on a variational posterior to maximize the ELBO. It enables efficient training of full-covariance, matrix-variate Gaussian posteriors using noisy variants of K-FAC and Adam, achieving predictive variances that closely match Hamiltonian Monte Carlo and improving exploration in active learning and reinforcement learning.

ABSTRACT

Variational Bayesian neural nets combine the flexibility of deep learning with Bayesian uncertainty estimation. Unfortunately, there is a tradeoff between cheap but simple variational families (e.g.~fully factorized) or expensive and complicated inference procedures. We show that natural gradient ascent with adaptive weight noise implicitly fits a variational posterior to maximize the evidence lower bound (ELBO). This insight allows us to train full-covariance, fully factorized, or matrix-variate Gaussian variational posteriors using noisy versions of natural gradient, Adam, and K-FAC, respectively, making it possible to scale up to modern-size ConvNets. On standard regression benchmarks, our noisy K-FAC algorithm makes better predictions and matches Hamiltonian Monte Carlo's predictive variances better than existing methods. Its improved uncertainty estimates lead to more efficient exploration in active learning, and intrinsic motivation for reinforcement learning.

Motivation & Objective

  • To bridge natural gradient optimization with variational inference in Bayesian neural networks.
  • To address the trade-off between computational cost and expressiveness in variational posterior approximations.
  • To develop scalable, efficient methods for fitting full-covariance and matrix-variate Gaussian posteriors without expensive inference procedures.
  • To improve uncertainty estimation for downstream tasks like active learning and reinforcement learning with intrinsic motivation.

Proposed method

  • Reinterprets adaptive weight noise in optimization as natural gradient on a variational posterior using the exact Fisher information matrix.
  • Derives a unified evidence lower bound (ELBO) that subsumes both weight update and Fisher matrix estimation as natural gradient steps.
  • Proposes noisy K-FAC and noisy Adam as efficient algorithms for training matrix-variate and fully factorized Gaussian posteriors, respectively.
  • Uses the Opper-Archambeau gradient estimator for Gaussian distributions to compute gradients of the ELBO with respect to posterior parameters.
  • Applies the reparameterization trick and pathwise derivatives to enable differentiable training of the variational posterior.
  • Leverages Kronecker-factored curvature approximations with correlated weight noise to scale to modern ConvNets.

Experimental results

Research questions

  • RQ1Can natural gradient optimization with adaptive weight noise be interpreted as variational inference on a Bayesian neural network posterior?
  • RQ2How can full-covariance and matrix-variate Gaussian posteriors be efficiently trained without costly inference procedures?
  • RQ3Can noisy natural gradient methods match the predictive uncertainty of Hamiltonian Monte Carlo on standard benchmarks?
  • RQ4Does improved uncertainty estimation lead to more efficient exploration in active learning and reinforcement learning?
  • RQ5Can standard optimization algorithms like Adam and K-FAC be adapted to perform variational inference via noise injection?

Key findings

  • The noisy K-FAC algorithm achieved predictive variances that correlated more strongly with Hamiltonian Monte Carlo than existing methods, with a Pearson correlation of 0.92 on the Boston housing dataset.
  • NNG-MVG and NNG-BlkTri outperformed other methods in matching HMC’s predictive variances, with NNG-BlkTri showing slightly better performance due to its more flexible posterior.
  • In active learning, NNG-MVG_A achieved lower test RMSE than random selection (NNG-MVG_R) and outperformed PBP_A and NNG-FFG_A on most datasets.
  • In reinforcement learning with intrinsic motivation, replacing the dynamics network’s posterior with NNG-MVG significantly improved exploration efficiency across three continuous control tasks.
  • The Gaussian noise baseline failed to learn in the same tasks, while VIME with NNG-MVG outperformed both the baseline and the original VIME formulation using Bayes-by-Backprop.
  • The method enables training of full-covariance posteriors using K-FAC-like curvature approximations with correlated noise, achieving GPU-friendly scalability.

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.