Skip to content

3. Variational Lower Bound (VLB)

The variational lower bound (VLB), also called the evidence lower bound (ELBO), is a tractable lower bound on a latent-variable model's log evidence. Use it when exact posterior inference or marginal-likelihood evaluation is intractable.

Reading time
2 min
Length
421 words
Updated
Sep 15, 2026
Total views
--

1. Variational Lower Bound (VLB) / Evidence Lower Bound (ELBO)

VLB and ELBO are two names for the same objective in variational inference. “Variational lower bound” emphasizes that the bound is constructed with a variational distribution; “evidence lower bound” emphasizes that it lower-bounds the log evidence (log marginal likelihood). They should not be treated as distinct losses.

Note : for the concept of the posterior probability, see[1]

(1) Setup

Let x be an observed datum, z a latent variable, pθ(z) a prior, and pθ(xz) a likelihood. The evidence (marginal likelihood) is :

(1.1.1)pθ(x)=pθ(x,z)dz=pθ(xz)pθ(z)dz.

Bayes’ rule gives the exact posterior pθ(zx) from (2.2)[1:1]. However, the evidence integral above is often intractable. Variational inference therefore chooses a tractable distribution qϕ(zx) to approximate that posterior :

(1.1.2)qϕ(zx)pθ(zx).

Here, θ parameterizes the generative model and ϕ parameterizes the variational distribution. The KL divergence used below is defined in (1.3)[2].

The problem is about the posterior pθ(z|x), and the variance lower bound is a lower bound estimation of posterior :

logpθ(z|x)

(2) Derivation of the common objective

Start from the KL divergence[2:1] between the approximate and exact posteriors :

(1.2.1)DKL(qϕ(zx)pθ(zx))=Eqϕ(zx)[logqϕ(zx)pθ(zx)]=Eqϕ(zx)[logqϕ(zx)logpθ(x,z)]+logpθ(x).

Rearranging gives :

(1.2.2)logpθ(x)=Eqϕ(zx)[logpθ(x,z)logqϕ(zx)]L(θ,ϕ;x)+DKL(qϕ(zx)pθ(zx)).

Since DKL0,

(1.2.3)L(θ,ϕ;x)logpθ(x).

The shared VLB/ELBO objective is therefore :

(1.2.4)VLB(θ,ϕ;x)=ELBO(θ,ϕ;x)=L(θ,ϕ;x)=Eqϕ(zx)[logpθ(x,z)qϕ(zx)].

This form (1.2.4) can still be referenced from wiki[3]. The bound is tight exactly when the variational posterior equals the exact posterior:

(1.2.5)qϕ(zx)=pθ(zx)DKL(qϕ(zx)pθ(zx))=0.

(3) Equivalent likelihood–regularization form

Using pθ(x,z)=pθ(xz)pθ(z) gives :

(1.3.1)L(θ,ϕ;x)=Eqϕ(zx)[logpθ(xz)]expected log-likelihoodDKL(qϕ(zx)pθ(z))regularization toward the prior.

Maximizing this single objective simultaneously (1) improves how well the model explains the observed data and (2) makes the variational posterior remain close to the chosen prior. Equivalently, optimization may minimize L(θ,ϕ;x).

2. When to use it

Use the VLB/ELBO when:

  • a model contains latent variables and requires an approximate posterior qϕ(zx);
  • direct evaluation or differentiation of logpθ(x) is intractable;
  • the variational family and its gradient estimator are tractable enough to optimize.

The term evidence means the marginal likelihood pθ(x), not a separate model component. Thus the difference between the names is terminological, not mathematical.


  1. 1. Summary for basics of probability theory-Prior and Posterior Probability. ↩︎ ↩︎

  2. 2. Kullback-Leibler divergence. ↩︎ ↩︎

  3. https://en.wikipedia.org/wiki/Evidence_lower_bound ↩︎