Lably
Skip to content

Evidence lower bound

Lower bound on the log-likelihood of some observed data

  • 6 min read
  • 3 chapters

Related on Lably

Through Loss function, Deep learning and Bayes' theorem

The ELBO is useful because it provides a guarantee on the worst-case for the log-likelihood of some distribution (e.g. p(X)) which models a set of data. The actual log-likelihood may be higher (indicating an even better fit to the distribution) because the ELBO includes a Kullback-Leibler divergence (KL divergence) term which decreases the ELBO due to an internal part of the model being inaccurate despite good fit of the model overall. Thus improving the ELBO score indicates either improving the likelihood of the model p(X) or the fit of a component internal to the model, or both, and the ELBO score makes a good loss function, e.g., for training a deep neural network to improve both the model overall and the internal component. (The internal component is qϕ(⋅|x), defined in detail later in this article.)

Definition

Let X and Z be random variables, jointly distributed with distribution pθ. For example, pθ(X) is the marginal distribution of X, and pθ(Z∣X) is the conditional distribution of Z given X. Then, for a sample x∼pdata, and any distribution qϕ, the ELBO is defined asL(ϕ,θ;x):=Ez∼qϕ(⋅|x)[ln⁡pθ(x,z)qϕ(z|x)].The ELBO can equivalently be written as

L(ϕ,θ;x)=Ez∼qϕ(⋅|x)[ln⁡pθ(x,z)]+H[qϕ(z|x)]=lnpθ(x)−DKL(qϕ(z|x)||pθ(z|x)).

In the first line, H[qϕ(z|x)] is the entropy of qϕ, which relates the ELBO to the Helmholtz free energy. In the second line, ln⁡pθ(x) is called the evidence for x, and DKL(qϕ(z|x)||pθ(z|x)) is the Kullback-Leibler divergence between qϕ and pθ. Since the Kullback-Leibler divergence is non-negative, L(ϕ,θ;x) forms a lower bound on the evidence (ELBO inequality)ln⁡pθ(x)≥Ez∼qϕ(⋅|x)[ln⁡pθ(x,z)qϕ(z|x)].

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Statistics