ArticleslgStudy

mathematics

Evidence lower bound

Evidence lower bound is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Evidence lower bound rather than just read about it. In short: In variational Bayesian methods, the evidence lower bound (often abbreviated ELBO, also sometimes called the variational lower bound or negative variational free energy) is a useful lower bound on the log-likelihood of some observed data. 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.

Evidence lower bound — main illustration
Evidence lower bound — illustration

Key takeaways

  • Evidence lower bound belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Evidence lower bound to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Evidence lower bound from memory before moving on to harder problems.

Reference excerpt

In variational Bayesian methods, the evidence lower bound (often abbreviated ELBO, also sometimes called the variational lower bound or negative variational free energy) is a useful lower bound on the log-likelihood of some observed data. 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):=𝔼z∼qϕ(⋅|x)[ln⁡pθ(x,z)qϕ(z|x)].The ELBO can equivalently be written as L(ϕ,θ;x)=𝔼z∼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)≥𝔼z∼qϕ(⋅|x)[ln⁡pθ(x,z)qϕ(z|x)].

Motivation

Variational Bayesian inference

Suppose we have an observable random variable X, and we want to find its true distribution p∗. This would allow us to generate data by sampling, and estimate probabilities of future events. In general, it is impossible to find p∗ exactly, forcing us to search for a good approximation. That is, we define a sufficiently large parametric family {pθ}θ∈Θ of distributions, then solve for minθL(pθ,p∗) for some loss function L. One possible way to solve this is by considering small variation from pθ to pθ+δθ, and solve for L(pθ,p∗)−L(pθ+δθ,p∗)=0. This is a problem in the calculus of variations, thus it is called the variational method. Since there are not many explicitly parametrized distribution families (all the classical distribution families, such as the normal distribution, the Gumbel distribution, etc, are far too simplistic to model the true distribution), we consider implicitly parametrized probability distributions:

First, define a simple distribution p(z) over a latent random variable Z. Usually a normal distribution or a uniform distribution suffices. Next, define a family of complicated functions fθ (such as a deep neural network) parametrized by θ. Finally, define a way to convert any fθ(z) into a distribution (in general simple too, but unrelated to p(z)) over the observable random variable X. For example, let fθ(z)=(f1(z),f2(z)) have two outputs, then we can define the corresponding distribution over X to be the normal distribution 𝒩(f1(z),ef2(z)). This defines a family of joint distributions pθ over (X,Z). It is very easy to sample (x,z)∼pθ: simply sample z∼p, then compute fθ(z), and finally sample x∼pθ(⋅|z) using fθ(z). In other words, we have a generative model for both the observable and the latent. Now, we consider a distribution pθ good, if it is a close approximation of p∗:pθ(X)≈p∗(X)since the distribution on the right side is over X only, the distribution on the left side must marginalize the latent variable Z away. In general, it's impossible to perform the integral pθ(x)=∫pθ(x|z)p(z)dz, forcing us to perform another approximation. Since pθ(x)=pθ(x|z)p(z)pθ(z|x) (Bayes' rule), it suffices to find a good approximation of pθ(z|x). So define another distribution family qϕ(z|x) and use it to approximate pθ(z|x). This is a discriminative model for the latent. The entire situation is summarized in the following table:

In Bayesian language, X is the observed evidence, and Z is the latent/unobserved. The distribution p over Z is the prior distribution over Z, pθ(x|z) is the likelihood function, and pθ(z|x) is the posterior distribution over Z. Given an observation x, we can infer what z likely gave rise to x by computing pθ(z|x). The usual Bayesian method is to estimate the integral pθ(x)=∫pθ(x|z)p(z)dz, then compute by Bayes' rule pθ(z|x)=pθ(x|z)p(z)pθ(x). This is expensive to perform in general, but if we can simply find a good approximation qϕ(z|x)≈pθ(z|x) for most x,z, then we can infer z from x cheaply. Thus, the search for a good qϕ is also called amortized inference. All in all, we have found a problem of variational Bayesian inference.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Evidence lower bound

Start with the simplest possible case. Write down what Evidence lower bound claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Evidence lower bound before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Evidence lower bound ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Evidence lower bound

In research
Evidence lower bound appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Evidence lower bound in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Evidence lower bound is common in secondary-school and first-year university syllabi. It links to neighbouring topics Theory of probability distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Evidence lower bound outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Evidence lower bound” →

How to study Evidence lower bound in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Evidence lower bound means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Evidence lower bound out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Evidence lower bound in simple terms?

In variational Bayesian methods, the evidence lower bound (often abbreviated ELBO, also sometimes called the variational lower bound or negative variational free energy) is a useful lower bound on the log-likelihood of some observed data. The ELBO is useful because it provides a guarantee on the wo…

Why does Evidence lower bound matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Evidence lower bound?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Evidence lower bound.

Tags

  • Theory of probability distributions

Keep exploring