Variational inference
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Bayesian statistics.
In Bayesian statistics, Variational inference is an approximation of an intractable posterior by optimisation, choosing the tractable distribution closest to the posterior in Kullback–Leibler divergence. Variational inference is a method for approximating a probability density that cannot be computed exactly, most often a Bayesian posterior density, by solving an optimisation problem instead of a sampling problem. The analyst first specifies a family of densities, called the variational family, whose members are simple enough that expectations under them can be computed. Variational inference then selects the member of that family closest to the target density, where closeness is measured by the Kullback–Leibler divergence from the approximation to the target. The selected density is used in place of the posterior: its mean stands in for the posterior mean, its quantiles for posterior quantiles, and so on. Blei, Kucukelbir and McAuliffe define the method in exactly these terms: “first posit a family of densities and then find the member of that family which is close to the target”, with closeness measured by Kullback–Leibler divergence .[1]
Two features of that definition should be fixed at the outset. First, the output is an approximation, not the posterior itself, and it carries no guarantee of exactness as computation increases: if no member of the family equals the posterior, the remaining error does not vanish however long the optimisation runs. Second, everything depends on the family: a richer family can come closer to the posterior but is harder to optimise over; a poorer family optimises easily and may approximate badly.
Variational inference
| Fact | Value |
|---|---|
| Topic | Bayesian statistics |
| Listed on | Bayesian statistics |
| Worked example | 1 |
A posterior that cannot be computed
Let denote observed data and let denote latent variables: parameters, random effects, missing values, or any other quantities that the model treats as unobserved. A Bayesian model specifies a joint density , the product of a prior density and a likelihood . Inference about after seeing is summarised by the posterior density, given by Bayes’ rule,
The denominator is the marginal likelihood, or evidence: the joint density integrated over every configuration of the latent variables. It is this integral that usually cannot be computed. With continuous or numerous latent variables, or a likelihood that does not combine with the prior in closed form, it has no analytic solution and numerical integration is defeated by the dimension of . Blei, Kucukelbir and McAuliffe set up the problem in this form, noting that in complex Bayesian models the computation of the posterior “often requires approximate inference” .[1] Jordan, Ghahramani, Jaakkola and Saul make the same point for graphical models: exact inference algorithms exist, but “there are other cases … in which the time or space complexity of the exact calculation is unacceptable and it is necessary to have recourse to approximation procedures” .[2]
The classical response is Markov chain Monte Carlo: construct a Markov chain whose stationary distribution is , run it, and summarise the posterior from the draws. That approach is asymptotically exact, but for large or large its cost can be prohibitive. Variational inference replaces simulation with optimisation, and in return accepts an approximation whose error does not disappear with more computation. Blei, Kucukelbir and McAuliffe state the trade-off plainly: compared with Markov chain Monte Carlo, variational inference “tends to be faster and easier to scale to large data”, but “does not enjoy such guarantees — it can only find a density close to the target” .[1]
The approximating family, the evidence lower bound, and the mean-field family
The approximating family and the direction of the divergence
Let be a family of densities over . Each is a candidate approximation to , and is typically described by its own parameters, called variational parameters. Variational inference chooses
where the Kullback–Leibler divergence from to is
with denoting expectation under .[1] The divergence is nonnegative, and it is zero only when equals the posterior almost everywhere; it is not symmetric, so the direction written here is a substantive choice, not a convention.
The direction has two consequences. The first is computational, and it is the reason the direction is chosen: expectations are taken under , the density the analyst controls, rather than under the intractable posterior. The second is behavioural: the integrand is weighted by itself, so the divergence penalises heavily for placing mass where has little mass, and penalises it much less for failing to place mass where has mass. Blei, Kucukelbir and McAuliffe describe the resulting behaviour in their Gaussian example: the divergence “penalizes placing mass in on areas where has little mass, but penalizes less the reverse”, so the fitted avoids spreading into low-posterior regions even when that means its marginal variances under-represent those of the target .[1] An approximation fitted this way tends to be contained within the posterior rather than covering it: it locks onto a region of high posterior density and reports less spread than the posterior has. The reverse divergence, , would have the opposite tendency, but it requires expectations under the posterior and so cannot be optimised directly; methods built around it, such as expectation propagation, need a different construction .[1]
The family is the other substantive choice. It must be flexible enough to contain a density close to the posterior, yet simple enough that the expectations in the objective derived next can be computed and optimised. As Blei, Kucukelbir and McAuliffe put it, “the reach of the family manages the complexity of this optimization” .[1] Together, divergence direction and family determine what the approximation can represent, before any algorithm is run.
The evidence lower bound
The optimisation just stated cannot be carried out as written, because the divergence contains the posterior, and expanding the posterior exposes the intractable evidence:
The term does not depend on , but it is unknown — computing it was the original problem. The resolution is to optimise a different function that differs from the divergence only by that constant. The evidence lower bound, abbreviated ELBO, is
which involves only the joint density — a quantity the analyst can evaluate pointwise, since it is the product of the prior and the likelihood — and the candidate itself .[1] Adding the two displays gives the identity on which the whole method rests:
Since the left-hand side is fixed by the data and the model, maximising the ELBO over is exactly the same problem as minimising the divergence: every increase in the ELBO is an equal decrease in .[1] And since the divergence is nonnegative, the identity also shows that for every : the ELBO is a lower bound on the log evidence, which is the source of its name. Jordan, Ghahramani, Jaakkola and Saul derive the same bound through Jensen’s inequality, and note that the difference between the two sides “is easily seen to be the KL divergence”, so that minimising the divergence yields “the tightest lower bound” available within the family .[2]
The ELBO admits a second decomposition that explains what the optimum balances. Splitting the joint density into prior and likelihood gives
The first term rewards for concentrating on latent configurations that explain the observed data well; the second penalises for departing from the prior. Blei, Kucukelbir and McAuliffe note that “the variational objective mirrors the usual balance between likelihood and prior” .[1] This decomposition also marks the boundary between variational inference and the EM algorithm. The first term of the ELBO is the expected complete-data log likelihood that EM optimises with respect to model parameters; EM, however, computes its expectations under the exact posterior , which is precisely what is unavailable here. Jordan, Ghahramani, Jaakkola and Saul describe variational inference for parameter estimation as a restricted form of the EM iteration, in which the E step is replaced by optimisation over the approximating family .[2]
One caution about the bound itself: because equals the divergence of the fitted approximation, a loose family leaves a gap of unknown size. The ELBO is sometimes used as a stand-in for the marginal likelihood in model comparison, but, as Blei, Kucukelbir and McAuliffe warn, “selecting based on a bound is not justified in theory” .[1] A larger ELBO certifies a better approximation to a fixed model’s posterior; across models it certifies nothing without further argument.
The mean-field family
The family used most often, and the one for which the classical algorithms were developed, is the mean-field family: the latent variables are partitioned into groups — in the simplest version, one group per variable — and is required to factorise across the groups,
where each factor is a density over its own group, with its own variational parameters .[1] The name is borrowed from statistical physics, where the same factorisation approximates interacting systems by independent components. Under , distinct groups are independent by construction. That is the family’s strength and its defining defect at once: expectations under a factorised separate into expectations under the individual factors, which is what makes optimisation tractable, but no member of the family can represent posterior dependence between groups. If the posterior correlates and strongly, every mean-field approximation reports them as independent, whatever the data say.
Within the family, each factor is otherwise unrestricted: may be any density over . In conditionally conjugate models — those in which each complete conditional lies in the same family as the prior for — the optimal factors have the same functional form as those complete conditionals, and variational inference reduces to updating their parameters .[1] Outside that setting the factors are usually fixed parametric densities, such as normals with free means and variances.
Richer families exist: structured families factorise only across a coarser partition, and full-rank Gaussian families keep a complete covariance matrix at the cost of many more parameters. Blei, Kucukelbir and McAuliffe identify the tension as an open problem: the mean-field family “makes strong independence assumptions” that “limit the expressibility of the variational family”, and developing “better approximations while maintaining efficient optimization” remains an active direction .[1]
Coordinate ascent and stochastic optimisation
Coordinate ascent (CAVI)
Optimising the ELBO over all mean-field factors at once is generally not possible in closed form, but optimising one factor while the others are held fixed is. This is coordinate ascent variational inference, or CAVI: cycle through the factors, replace each by its conditional optimum given the current values of the rest, and repeat until the ELBO stops increasing. Blei, Kucukelbir and McAuliffe describe it as the most commonly used algorithm for the problem: it “iteratively optimizes each factor of the mean-field variational density, while holding the others fixed”, and “climbs the ELBO to a local optimum” .[1] The quoted phrase should not be read as a guarantee: each update is an exact conditional optimum and the ELBO never decreases, but monotone ascent alone does not certify that the point CAVI stops at is a local optimum — as the properties below show, it can stall at a saddle point.
The conditional optimum has an explicit form. Write for all latent variables except . Holding fixed for , the factor that maximises the ELBO is
where is expectation under the product of the fixed factors .[1] In words: the optimal factor is the exponentiated expected log complete conditional — the model’s own conditional for , averaged over the current approximations to everything else. The mean-field assumption is what makes the update legitimate: the expectation does not involve itself. In conditionally conjugate models the right-hand side is a known density whose parameters are functions of expectations under the other factors, and CAVI becomes a cycle of parameter updates resembling those of a Gibbs sampler, with expectations in place of draws .[1]
Three properties of CAVI matter for practice. First, every update increases the ELBO or leaves it unchanged, so the ELBO sequence is monotone and its progress can be monitored directly from the objective. Running until the change falls below a small threshold is a common stopping rule ,[1] but it is a heuristic, not a certificate: a small change, like a plateau in the objective, does not by itself certify that a stationary point, let alone a local optimum, has been reached. Exact CAVI can even stop at a saddle point: take a target on two signs with and product (mean-field) factors with means . Started at , each coordinate update leaves the other mean at zero — the conditional optimum given a zero mean is the uniform factor — so CAVI never moves; yet the ELBO’s Hessian there is , with eigenvalues and , so the point is a saddle, not a local optimum. Second, even where CAVI does reach a local optimum, that optimum is in general only local. The ELBO is typically non-convex in the variational parameters, global optimality is not guaranteed, and different initialisations can lead CAVI to different local optima; Blei, Kucukelbir and McAuliffe illustrate this with ten random initialisations of a mixture model reaching visibly different solutions .[1] The standard response is to run from several starting points, keeping the run with the highest ELBO — for a fixed model, the run with the smallest divergence from the posterior. Third, each CAVI sweep touches every observation, since expectations involving the likelihood sum over all data points; for large that full pass per iteration is the bottleneck stochastic variational inference removes.
Stochastic variational inference and gradient methods
CAVI’s full pass through the data at every iteration limits it to datasets of moderate size. Stochastic variational inference, developed by Hoffman, Blei, Wang and Paisley, removes that limit by applying stochastic optimisation to the same ELBO: instead of computing the exact gradient of the ELBO, the algorithm computes a noisy but unbiased estimate of it from a subsample of the data, and follows that estimate with a decreasing step size .[3] Their summary of the iteration is to “subsample one or more data points”, analyse the subsample at the current variational parameters, and take a closed-form step for the global parameters .[3]
The construction separates local from global latent variables. Local variables are attached to individual observations, while global variables are shared across the dataset. For a sampled observation, its local variational parameters are optimised exactly, by the usual coordinate update; those parameters define an intermediate setting of the global parameters — the coordinate update that would result if the sampled observation stood in for the whole dataset — and the global parameters are then moved a step of size towards it:
where collects the global variational parameters and is the intermediate setting at iteration .[3] The gradient being followed is not the ordinary gradient but the natural gradient, which rescales the gradient by the inverse Fisher information of the variational family; for the conditionally conjugate models Hoffman and colleagues treat, the natural gradient has a simple form that makes the update above exact rather than approximate .[3] Step sizes follow a Robbins–Monro schedule, with delay and forgetting rate , satisfying and .[3] Those two sum conditions are not by themselves sufficient for convergence to a local optimum: the standard results, under additional regularity assumptions on the objective and the gradient noise, give convergence to a stationary point of the ELBO, and a stationary point need not be a local optimum.
The scale achieved is the point of the method. Hoffman, Blei, Wang and Paisley applied it to topic models on collections of 300,000 articles from Nature, 1.8 million articles from The New York Times, and 3.8 million articles from Wikipedia — data sizes at which batch coordinate ascent “can only handle a smaller subset” .[3] The costs are those of any stochastic optimisation: the objective is no longer monotone along the iterates, and the point the iterates approach is at best a stationary point of the ELBO. Nothing in the method guarantees that such a point is a local optimum; which stationary point is reached, and how good the resulting approximation is, depends on the step-size schedule and initialisation.
Two further developments extend variational inference beyond models with tractable complete conditionals. Black-box variational inference writes the gradient of the ELBO as an expectation under involving the score function , estimates it by Monte Carlo draws from , and follows the estimates with stochastic optimisation; no model-specific derivation is required, at the price of gradient estimates whose variance can be large. Blei, Kucukelbir and McAuliffe survey this work under the heading of “black box” inference methods, noting that the newest approaches “avoid any model-specific derivations” .[1] The reparameterisation approach instead writes a draw from as a deterministic function of parameter-free noise, when permits it, and differentiates through that function to obtain gradient estimates with typically much lower variance. Both approaches keep the same objective and change only how its gradient is estimated; they widen the class of models the method reaches without changing what its optimum represents.
Where it is used, and its strengths
Variational inference is used where Bayesian inference is wanted at a scale, or at a speed, that sampling cannot deliver: large hierarchical models, topic models for text, genome-wide association studies, image analysis, and repeated fitting inside larger pipelines such as cross-validation. A fitted can also serve as a proposal distribution for a Metropolis–Hastings sampler. Its natural competitor is Markov chain Monte Carlo, including Hamiltonian Monte Carlo, and the choice between them is a choice about which error to accept: Monte Carlo error, which decreases with computation, or approximation error, which is fixed by the family and is not directly observable.
The strengths are consequences of the method being an optimisation. Speed: Blei, Kucukelbir and McAuliffe report that variational inference “tends to be faster than classical methods, such as Markov chain Monte Carlo sampling” .[1] Scalability: because the objective is a sum over observations, stochastic optimisation applies, and the method extends to datasets that do not fit in memory .[3] Diagnostics: the objective is a number, computed at every iteration, whose increase tracks progress — a check with no equally direct analogue for a Markov chain, whose convergence must be inferred from the behaviour of its draws. A plateau in the objective is the usual practical signal to stop, but it certifies neither a stationary point nor a local optimum: an optimiser can stall on a flat region, or crawl along a shallow valley, while the objective barely moves. The batch algorithm is also deterministic: the same initialisation and data return the same answer.
Worked example
When the family contains the posterior
Variational inference is exact in one circumstance: when the chosen family contains the posterior itself. Then the minimum of the divergence is zero, the optimal is the posterior, and the ELBO equals the log marginal likelihood. A one-dimensional normal–normal model shows all three statements with checkable numbers; see normal–normal conjugacy for the exact posterior used here.
Let the prior be with , and let five observations be drawn independently from with known. The sample sum is , the sample mean is , and the sum of squared deviations is . The exact posterior is normal with precision , hence
Choose as variational family all normal densities , with free mean and variance . This family contains the posterior, , so the theory predicts and . The log marginal likelihood is available in closed form here: marginally, , with determinant and quadratic form , giving
Evaluating the ELBO at from its decomposition confirms the identity term by term: , , and the entropy term , summing to — equal to , as it must be when the divergence term in the identity is zero. A suboptimal member shows the gap opening: for , which has the correct mean but the single-observation noise variance in place of the posterior variance , the same computation gives , and correspondingly nats.
The example separates two sources of error that are entangled in real applications. Optimisation error is the failure to find the best member of the family; approximation error is the divergence of the best member from the posterior. Here approximation error is zero by construction, so any shortfall of a computed ELBO below is optimisation error alone. In the bivariate example, by contrast, the entire -nat shortfall is approximation error. Reporting a fitted approximation without asking which of the two errors dominates leaves the quality of the inference unassessed.
Common misconceptions
“The ELBO is the log marginal likelihood.” It is a lower bound on it. The two are equal only when the fitted equals the posterior, in which case the divergence term in the identity is zero. In worked example 1 the gap at the optimum is nats; treating the bound as the evidence understates the model’s log marginal likelihood by exactly that gap. On the evidence scale itself the understatement is multiplicative, not additive: the bound is the evidence times . And comparing two models by their bounds compares log evidence minus two different, unknown gaps.
“A converged variational fit has found the posterior.” Even where an algorithm genuinely reaches a local optimum of the ELBO within the chosen family — and a plateau in the objective does not by itself certify that it has — the optimum says nothing about whether a better local optimum exists, and nothing about how far the family’s best member is from the posterior. Both worked examples converge perfectly; one of them still reports a variance of where the truth is .
“Mean-field assumes the posterior is independent, so it is only a rough device.” The assumption is about the approximating family, not a claim about the posterior, and its consequences are precise: posterior means are often recovered well — exactly, in worked example 1 — while variances and correlations are distorted, the marginal variances typically, though not invariably, understated (see Assumptions and limits).
“Variational inference is a faster kind of MCMC.” The two solve different problems. Markov chain Monte Carlo simulates from the posterior and is asymptotically exact; variational inference optimises over a family and is exact only when the family contains the posterior. Importance sampling belongs to the first tradition, variational inference to the second, and their error behaviour — decreasing with computation in one case, fixed by the family in the other — is the operational difference.
“Stochastic variational inference fixes the accuracy problems of variational inference.” It fixes a computational problem — the cost of full data passes — by following noisy gradients of the same ELBO. The optimum it approaches is the optimum of the same objective over the same family, with the same variance-understating tendency; Hoffman, Blei, Wang and Paisley present it as a method that lets “complex Bayesian models” be applied “to massive data sets”, not as a change to what is being approximated .[3]
Variance, optima, and the chosen family
None of these limits is removed by running the optimisation for longer.
Variance understatement — a tendency, not a guarantee. An approximation fitted by minimising is typically contained within the posterior rather than spread across it, and a factorised family compounds the effect by replacing marginal spreads with conditional ones. Blei, Kucukelbir and McAuliffe state the usual behaviour directly: “variational inference generally underestimates the variance of the posterior density; this is a consequence of its objective function” .[1] Worked example 1 is the mechanism in miniature, an exact calculation: a marginal variance of reported as , so intervals built from such an approximation are too narrow and tail probabilities understated. But the direction is not a theorem. Take a posterior placing probabilities , and on the three points , and : a product approximation whose reverse divergence is finite must sit on a single slice of constant , and the optimum chooses , giving against and against — a marginal variance and a tail probability overstated. Understated spread is the common failure, and the one to expect; it is not guaranteed.
Local optima. The ELBO is generally non-convex in the variational parameters, so CAVI and stochastic variants alike can converge to local optima that depend on initialisation. Comparing two runs’ ELBOs identifies the better of them but does not certify that either is near the family’s global optimum.
Family dependence. Every conclusion is conditional on . Dependence outside the family is reported as absent; multimodality outside the family is reported as a single mode; heavy tails outside the family are reported as light. No internal diagnostic measures the divergence actually achieved, because the gap is the divergence, and is unknown. Comparisons with sampling on the same model and richer families fitted as a sensitivity analysis are external checks, not properties of the fit itself.
No automatic exactness. Increasing the computational budget improves the optimisation, not the family: a variational fit run to convergence has extracted everything its family contains, and the bivariate example’s nats remain. Enlarging the family is the only remedy. Relatedly, summaries that require joint draws from — the probability that two parameters are simultaneously in a region, for instance — inherit the family’s independence assumptions exactly, however many draws are taken.
Where the posterior’s spread is itself the quantity of interest — interval estimation, decision problems sensitive to tail probabilities — the variance-understating tendency is directly material, and a variational answer should be corroborated. Where a point summary is wanted at scale, the trade is often favourable, and empirical work cited by Blei, Kucukelbir and McAuliffe finds that posterior predictive performance need not suffer even when posterior variances are understated .[1]
Connections
- Bayesian inference — the framework whose posterior density variational inference approximates when the evidence integral cannot be computed.
- Kullback–Leibler divergence — the measure of closeness being minimised, in the direction ; its asymmetry is responsible for the approximation’s variance-understating tendency.
- EM algorithm — the parameter-estimation algorithm whose expected complete-data log likelihood is the first term of the ELBO; variational inference is its restricted analogue when the exact posterior is unavailable.
- Gibbs sampling — the sampling algorithm whose complete conditionals reappear, as expectations rather than draws, in the CAVI update for conditionally conjugate models.
- Markov chain — the basis of Markov chain Monte Carlo, the asymptotically exact alternative against which variational inference trades accuracy for speed and scale.
- Hamiltonian Monte Carlo — a sampling method often preferred to variational inference when posterior spread must be represented faithfully and the model permits it.
- Importance sampling — a simulation-based approximation strategy with the opposite error profile: no family restriction, but Monte Carlo error in place of approximation error.
- Normal–normal conjugacy — the exact posterior used in worked example 2, where the variational family contains the posterior and the ELBO attains the log marginal likelihood.
- Hierarchical Bayesian model — a model class in which many groups of latent variables make exact inference infeasible and mean-field factorisation across groups is the standard variational choice.
- Prior and posterior predictive distributions — predictions formed from a fitted in place of the posterior; these can remain accurate even when the approximation understates posterior variance.
- Dirichlet process — the prior in the nonparametric topic model that Hoffman, Blei, Wang and Paisley fitted with stochastic variational inference.
Check yourself
- In worked example 1, the optimal mean-field factors have variance while the true marginal variances are . Where does the number come from, and why does minimising produce it rather than the marginal variance?
with . It is the reciprocal of the diagonal entry of the posterior precision matrix, and it equals the conditional variance of either variable given the other under the posterior. The divergence is weighted by , so it penalises for placing mass where has little mass far more than it penalises for omitting mass where has it. A factorised with marginal variance would place substantial mass in regions where the correlated posterior is thin; shrinking each factor to the conditional spread avoids that penalty, at the cost of understating the marginal spread.
- A colleague fits a model by variational inference, obtains , and reports as the model’s log marginal likelihood. What is wrong, and what can be said about ?
The identity holds for every , and the divergence is nonnegative, so , with equality only if the fitted equals the posterior. What can be said is that is a lower bound on the log marginal likelihood, and that the size of the gap is exactly the divergence of the approximation — which is unknown, because computing it would require the evidence itself. Reporting the bound as the evidence understates the log marginal likelihood by that unknown amount — and understates the marginal likelihood itself by the multiplicative factor , not by an additive amount.
- In worked example 2, the ELBO at the optimum equals the log marginal likelihood exactly, yet in worked example 1 a gap of about nats remains at the optimum. Both optimisations were carried out exactly. What differs between the two examples?
The approximating family. In example 2 the family of all normal densities contains the true posterior, so the minimum of the divergence over the family is zero and the ELBO attains . In example 1 the mean-field family contains only factorised densities, and the correlated posterior is not among them, so the smallest achievable divergence is nats. The residual gap is approximation error, fixed by the family; no improvement in the optimisation could remove it. Only enlarging the family — for instance to full-rank Gaussians, which contain this posterior — would close it.
History
Variational methods entered statistics from statistical physics, where mean-field approximations had long been used to replace interacting systems by independent components. Peterson and Anderson’s 1987 variational procedure for a neural network is identified by Blei, Kucukelbir and McAuliffe as arguably the first such procedure for a particular model; work through the 1990s turned these procedures into a general method for graphical models, while a parallel line, from Hinton and van Camp’s 1993 algorithm and Neal and Hinton’s connection to the EM algorithm, arrived at the same objective from parameter estimation .[1] Jordan, Ghahramani, Jaakkola and Saul’s 1999 tutorial, “An Introduction to Variational Methods for Graphical Models”, gave the unified presentation: variational transformations, bounds on probabilities of interest, and the derivation, through Jensen’s inequality and convex duality, of the lower bound on the log likelihood whose gap is the Kullback–Leibler divergence .[2]
Hoffman, Blei, Wang and Paisley’s stochastic variational inference of 2013 then changed the scale at which the method operates, replacing batch coordinate ascent with stochastic optimisation on natural gradients and demonstrating fits on document collections in the millions .[3] Work in the same period on black-box and reparameterisation gradients removed the need for model-specific coordinate updates, and Blei, Kucukelbir and McAuliffe’s 2017 review in the Journal of the American Statistical Association presented the method to a statistical audience and catalogued its open problems, among them the absence of a statistical theory comparable to that available for Markov chain Monte Carlo .[1] Nonparametric extensions, in which some latent variables are governed by a Dirichlet process, were among the early large-scale applications of the stochastic algorithm .[3]
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j k l m n o p q r s t u v w x y z a. (§1, pp. 859–860) b. (§1, p. 859) c. (§1, pp. 859–860) d. (§2.2, eqs. 10–11) e. (§2.4) f. (§5.4) g. (§1, p. 860) h. (§2.2, eq. 13) i. (§2.2, eq. 14) j. (§2.2) k. (§2.2) l. (§2.3, eq. 15) m. (§§4.1–4.2) n. (§5.4) o. (§2.4) p. (§2.4, eqs. 17–18) q. (§2.4) r. (§2.4) s. (§2.4, Figure 2) t. (§5.3) u. (abstract, p. 859) v. (§2.4) w. (§1, p. 860) x. (§1) y. (§1) z. (§§5.2–5.4) 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. https://doi.org/10.1080/01621459.2017.1285773
- ^ a b c d a. (p. 184) b. (§6, eq. 43, pp. 213–214) c. (§6.2, pp. 214–215) d. (§§5–6, pp. 183–185, 213–215) 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. https://doi.org/10.1023/A:1007665907178
- ^ a b c d e f g h i j a. (§2, pp. 1303–1305) b. (§1) c. (§2) d. (§2.3) e. (§§2–4) f. (abstract, p. 1303) g. (§2) h. (abstract, p. 1303) i. (§§1–2, pp. 1303–1305) j. (abstract, p. 1303) Hoffman, M. D., Blei, D. M., Wang, C. & Paisley, J. (2013). Stochastic Variational Inference. Journal of Machine Learning Research, 14, 1303–1347. https://jmlr.org/papers/v14/hoffman13a.html
Cite this page
StatWiki (2026). "Variational inference." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/variational-inference.html
@misc{statwiki_variational_inference,
author = {{StatWiki}},
title = {{Variational inference}},
year = {2026},
url = {https://www.statwiki.io/articles/variational-inference.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}