# Metric Gaussian Variational Inference

arXiv: https://arxiv.org/abs/1901.11033 · HTML: https://mlsanity.com/paper/1901.11033/

## Key facts

- Cited by 14 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 30 Jan 2019.

## Built on by (most cited first, 14 of 14)

- [Amortized Variational Inference: A Systematic Review](https://mlsanity.com/paper/2209.10888/) (2022)
- [Geometric variational inference](https://mlsanity.com/paper/2105.10470/) (2021)
- [Physics-informed Information Field Theory for Modeling Physical Systems with Uncertainty Quantification](https://mlsanity.com/paper/2301.07609/) (2023)
- [Riemannian Laplace Approximation with the Fisher Metric](https://mlsanity.com/paper/2311.02766/) (2023)
- [Probabilistic Autoencoder using Fisher Information](https://mlsanity.com/paper/2110.14947/) (2021)
- [Bayesian Imaging for Radio Interferometry with Score-Based Priors](https://mlsanity.com/paper/2311.18012/) (2023)
- [Sparse Kernel Gaussian Processes through Iterative Charted Refinement (ICR)](https://mlsanity.com/paper/2206.10634/) (2022)
- [Generative imaging for radio interferometry with fast uncertainty quantification](https://mlsanity.com/paper/2507.21270/) (2025)
- [Classification and Uncertainty Quantification of Corrupted Data using Semi-Supervised Autoencoders](https://mlsanity.com/paper/2105.13393/) (2021)
- [Information Field Theory and Artificial Intelligence](https://mlsanity.com/paper/2112.10133/) (2021)
- [Re-Envisioning Numerical Information Field Theory (NIFTy.re): A Library for Gaussian Processes and Variational Inference](https://mlsanity.com/paper/2402.16683/) (2024)
- [Causal, Bayesian, & Non-parametric Modeling of the SARS-CoV-2 Viral Load Distribution vs. Patient's Age](https://mlsanity.com/paper/2105.13483/) (2021)
- [Attention to Entropic Communication](https://mlsanity.com/paper/2307.11423/) (2023)
- [GraphGP: Scalable Gaussian Processes with Vecchia's Approximation](https://mlsanity.com/paper/2606.11402/) (2026)

## Abstract (arXiv)

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.
