The Evidence Lower Bound (ELBO) is a core concept in Variational Inference, which is a popular method for approximating intractable posterior distributions in Bayesian modeling. The ELBO is derived using Jensen's inequality and is used as an optimization objective to find a suitable approximation to the true posterior distribution. Here, I will give the derivation of the ELBO:
First, let's define the problem setup. We have a probabilistic model with latent variables Z and observed variables X. We want to approximate the true posterior distribution p(Z|X) using a variational distribution q(Z).
-
We start by computing the log marginal likelihood of the observed data, log p(X):
log p(X) = log ∫ p(X, Z) dZ
= log ∫ p(X|Z) p(Z) dZ
-
Introduce the variational distribution q(Z) and divide and multiply by it inside the integral:
log p(X) = log ∫ p(X|Z) p(Z) q(Z) / q(Z) dZ
-
Now, we'll use Jensen's inequality, which states that for a convex function f and any random variable Y:
E[f(Y)] >= f(E[Y])
Since the logarithm is a concave function, we can use the inequality in the opposite direction:
log E[f(Y)] <= E[log f(Y)]
-
Applying Jensen's inequality to the expression for the log marginal likelihood:
log p(X) >= ∫ q(Z) log (p(X|Z) p(Z) / q(Z)) dZ
= ∫ q(Z) log p(X|Z) p(Z) dZ - ∫ q(Z) log q(Z) dZ
= E_q[log p(X, Z)] - E_q[log q(Z)]
-
The expression on the right-hand side is the ELBO (Evidence Lower Bound):
ELBO = E_q[log p(X, Z)] - E_q[log q(Z)]
The ELBO is a lower bound on the log marginal likelihood of the observed data, log p(X). The goal is to maximize the ELBO with respect to the variational distribution q(Z) to find the best approximation to the true posterior distribution p(Z|X). This can be done using various optimization techniques, such as gradient-based methods or coordinate ascent.