Skip to main content
QUICK REVIEW

[Paper Review] Metric Gaussian Variational Inference

Jakob Knollmüller, T. A. Enßlin|arXiv (Cornell University)|Jan 30, 2019
Gaussian Processes and Bayesian InferenceComputer Science24 citations
TL;DR

Metric Gaussian Variational Inference (MGVI) is a scalable Bayesian inference method that achieves full-covariance Gaussian approximations with linear memory and computational cost by iteratively optimizing mean and covariance using natural gradient descent and implicit sampling. It outperforms mean-field and Laplace approximations in accuracy and matches or exceeds HMC in predictive performance while being significantly faster in high-dimensional problems with up to a million parameters.

ABSTRACT

Solving Bayesian inference problems approximately with variational approaches can provide fast and accurate results. Capturing correlation within the approximation requires an explicit parametrization. This intrinsically limits this approach to either moderately dimensional problems, or requiring the strongly simplifying mean-field approach. We propose Metric Gaussian Variational Inference (MGVI) as a method that goes beyond mean-field. Here correlations between all model parameters are taken into account, while still scaling linearly in computational time and memory. With this method we achieve higher accuracy and in many cases a significant speedup compared to traditional methods. MGVI is an iterative method that performs a series of Gaussian approximations to the posterior. We alternate between approximating the covariance with the inverse Fisher information metric evaluated at an intermediate mean estimate and optimizing the KL-divergence for the given covariance with respect to the mean. This procedure is iterated until the uncertainty estimate is self-consistent with the mean parameter. We achieve linear scaling by avoiding to store the covariance explicitly at any time. Instead we draw samples from the approximating distribution relying on an implicit representation and numerical schemes to approximately solve linear equations. Those samples are used to approximate the KL-divergence and its gradient. The usage of natural gradient descent allows for rapid convergence. Formulating the Bayesian model in standardized coordinates makes MGVI applicable to any inference problem with continuous parameters. We demonstrate the high accuracy of MGVI by comparing it to HMC and its fast convergence relative to other established methods in several examples. We investigate real-data applications, as well as synthetic examples of varying size and complexity and up to a million model parameters.

Motivation & Objective

  • To develop a scalable Bayesian inference method that captures full posterior correlations without quadratic scaling in memory or computation.
  • To overcome the limitations of mean-field and Laplace approximations by enabling self-consistent uncertainty quantification in high-dimensional models.
  • To extend variational inference to complex, high-dimensional posteriors—including those with weak priors and strong likelihoods—using a coordinate-standardized framework.
  • To achieve linear scaling in both time and memory by avoiding explicit covariance storage through implicit sampling and Fisher metric approximation.
  • To provide a general-purpose method applicable to diverse inference problems, including large-scale image reconstruction and logistic regression with millions of parameters.

Proposed method

  • MGVI performs iterative Gaussian approximations to the posterior by alternating between updating the covariance using the inverse Fisher information metric at the current mean estimate and optimizing the KL divergence for that covariance with respect to the mean.
  • The method uses implicit sampling via numerical linear solvers to draw samples from the approximate posterior without storing the full covariance matrix, enabling linear memory scaling.
  • Stochastic estimates of the KL divergence and its gradient are computed using antithetic sampling to reduce variance, with optimization performed via natural gradient descent.
  • The algorithm uses standardized coordinates to ensure invariance under reparameterization and to enable broad applicability across continuous-parameter models.
  • Convergence is achieved when the mean estimate becomes self-consistent with the uncertainty estimate derived from the Fisher metric.
  • The approach implicitly represents correlations between all parameters through the iterative update of mean and metric-based covariance, avoiding explicit full-covariance parametrization.

Experimental results

Research questions

  • RQ1Can a variational inference method achieve full-covariance posterior approximations with linear computational and memory scaling in high-dimensional models?
  • RQ2How does MGVI compare in accuracy and convergence speed to HMC, mean-field ADVI, and Laplace approximations in complex, high-dimensional inference problems?
  • RQ3To what extent does the use of the Fisher information metric as a covariance approximation improve posterior uncertainty estimation compared to mean-field or Laplace methods?
  • RQ4How does MGVI perform in scenarios with weak priors and strong likelihoods, where standard methods struggle to converge?
  • RQ5Can MGVI be effectively applied to real-world problems such as large-scale logistic regression and image reconstruction with millions of parameters?

Key findings

  • MGVI achieves higher accuracy than HMC, Laplace, mean-field ADVI, and even full-covariance ADVI in predictive likelihood on synthetic and real-data examples, with a mean predictive log-likelihood of -0.808 compared to HMC's -0.802.
  • In the large logistic regression problem, MGVI converges faster than mf-ADVI and fc-ADVI, with a predictive log-likelihood of -0.808, outperforming HMC's -0.802 and the Laplace approximation's -0.60.
  • MGVI demonstrates linear scaling in memory and computation, enabling its use in problems with up to a million parameters, where full-covariance methods are infeasible.
  • The method achieves self-consistent mean and uncertainty estimates by iteratively updating the mean via KL minimization and the covariance via the inverse Fisher metric, leading to improved posterior approximation.
  • MGVI outperforms HMC in predictive performance on the full logistic regression model, despite HMC being asymptotically exact, indicating superior approximation quality.
  • MGVI’s use of antithetic sampling and natural gradient descent enables robust convergence even in flat or degenerate posterior landscapes, where mean-field methods may fail.

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.