Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Bayesian›Variational Inference
Bayesian methods

Variational Inference

Variational Bayesian Inference · Also known as: VI, variational Bayes, VB, mean-field variational inference, ELBO optimisation, variational approximation

Variational inference (VI) is a family of techniques that turn Bayesian posterior computation into an optimisation problem. Instead of drawing samples from the exact posterior — as Markov chain Monte Carlo does — VI posits a simpler, tractable family of distributions and finds the member of that family closest to the true posterior by maximising the evidence lower bound (ELBO). Introduced in its modern graphical-model form by Jordan, Ghahramani, Jaakkola and Saul (1999) and given a comprehensive statistical treatment by Blei, Kucukelbir and McAuliffe (2017), VI is now the standard scalable inference engine in probabilistic machine learning.

ScholarGate
  1. Bayesian methods
  2. v1
  3. 3 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Variational Inference
Bayesian RegressionExpectation PropagationLatent Dirichlet Allocat…MCMCBayesian Online LearningDynamic Hamiltonian Mont…Dynamic Variational Infe…Gibbs SamplingHamiltonian Monte CarloHierarchical Bayesian In…

+15 more

When to use it

Variational inference is the right choice when (1) the posterior is intractable and MCMC would be too slow for the dataset size or model complexity; (2) the model involves continuous latent variables that admit a tractable ELBO under a chosen variational family; and (3) an approximate but fast answer is acceptable. It is routinely applied to topic models, deep generative models (variational autoencoders), Gaussian process approximations, and any hierarchical Bayesian model fit to large data. VI is not suited when the posterior has sharp multimodality or heavy tails that a unimodal or mean-field family cannot capture, or when exact posterior summaries are required.

Strengths & limitations

Strengths
  • Scales to large datasets through mini-batch stochastic optimisation, unlike MCMC.
  • Provides a concrete scalar diagnostic — the ELBO — whose increase confirms the approximation is improving.
  • Can be combined with automatic differentiation (automatic differentiation VI, ADVI) to handle a broad class of models without deriving update equations by hand.
  • Produces a full approximate posterior distribution, not just a point estimate, preserving uncertainty quantification.
Limitations
  • The mean-field assumption ignores posterior correlations, which can cause variances to be underestimated and the approximation to be overconfident.
  • KL(q || p) is asymmetric: it penalises q for placing mass where p is small, so VI tends to concentrate on one mode and miss others in multimodal posteriors.
  • The ELBO is a lower bound, not the true log marginal likelihood, so it cannot directly be used for model comparison without correction.
  • Convergence to a local maximum of the ELBO is not guaranteed; different initialisations may yield different solutions.

Frequently asked

How does variational inference differ from MCMC?

MCMC draws correlated samples that, given enough time, exactly represent the posterior. VI approximates the posterior with a simpler distribution found by optimisation. VI is faster and scales to larger data, but returns an approximation whose accuracy depends on how well the chosen variational family can represent the true posterior. MCMC is asymptotically exact but much slower for large models.

What is the ELBO and why does maximising it matter?

ELBO stands for Evidence Lower BOund. It equals log p(x) minus KL(q || p), so maximising the ELBO over q minimises the KL divergence between the approximate posterior q and the true posterior p. Because the log marginal likelihood log p(x) is constant in q, the ELBO is the only term that can be increased, making its maximisation the precise mathematical statement of finding the best approximation.

What is the mean-field assumption and when does it fail?

Mean-field assumes the approximate posterior factors into independent components, one per latent variable or group. This makes the ELBO tractable but ignores all correlations in the posterior. It fails when latent variables are genuinely correlated — for example, the slope and intercept in a regression posterior — leading to overconfident (too narrow) marginal approximations.

Can I use variational inference for model comparison?

The ELBO is a lower bound on the log marginal likelihood, so a higher ELBO for one model relative to another is evidence in its favour, but the gap between the bound and the true value can differ across models and variational families. Caution is required: if the bound is loose for one model, ELBO comparison can be misleading. Methods such as importance-weighted bounds (IWAE) can tighten the estimate.

Sources

  1. Jordan, M. I., Ghahramani, Z., Jaakkola, T. S., & Saul, L. K. (1999). An introduction to variational methods for graphical models. Machine Learning, 37(2), 183–233. DOI: 10.1023/A:1007665907178 ↗
  2. Blei, D. M., Kucukelbir, A., & McAuliffe, J. D. (2017). Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518), 859–877. DOI: 10.1080/01621459.2017.1285773 ↗
  3. Bishop, C. M. (2006). Pattern Recognition and Machine Learning. Springer. (Chapter 10: Approximate Inference.) ISBN: 978-0387310732

How to cite this page

ScholarGate. (2026, June 3). Variational Bayesian Inference. ScholarGate. https://scholargate.app/en/bayesian/variational-inference

Related methods

Bayesian RegressionExpectation PropagationLatent Dirichlet AllocationMCMC

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Bayesian RegressionBayesian↔ compare
  • Expectation PropagationBayesian↔ compare
  • Latent Dirichlet AllocationMachine learning↔ compare
  • MCMCBayesian↔ compare
Compare side by side →

Referenced by

Bayesian Online LearningDynamic Hamiltonian Monte CarloDynamic Variational InferenceExpectation PropagationGibbs SamplingHamiltonian Monte CarloHierarchical Bayesian InferenceHierarchical Markov Chain Monte CarloHierarchical Variational InferenceMCMCMultilevel Bayesian InferenceMultilevel MCMCMultilevel Variational InferenceNo-U-Turn SamplerOnline Gaussian ProcessRobust Bayesian InferenceRobust Bayesian Model AveragingRobust Hamiltonian Monte CarloRobust Variational InferenceSpatial Variational InferenceTime series variational inferenceVariational Inference with Measurement ErrorVariational Inference with Missing Data

Similar methods

Time series variational inferenceHierarchical Variational InferenceVariational Inference with Missing DataMultilevel Variational InferenceRobust Variational InferenceAutomatic Differentiation Variational InferenceSpatial Variational InferenceVariational Inference with Measurement Error

Related reference concepts

Variational InferenceBayesian Computation and MCMCProbabilistic InferenceGaussian Process ModelsLatent Variable and Mixture ModelsBayesian Inference Foundations

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Variational Inference (Variational Bayesian Inference). Retrieved 2026-07-20 from https://scholargate.app/en/bayesian/variational-inference · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Family
Bayesian
Type
Approximate Bayesian inference
Purpose
posterior approximation / scalable inference
Var Types
continuous latent variables
Inference
optimisation (ELBO maximisation)
Outputs
approximate posterior distributions / ELBO lower bound
Originator
Jordan, Ghahramani, Jaakkola & Saul
Year
1999
Related methods
Bayesian RegressionExpectation PropagationLatent Dirichlet AllocationMCMC
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account