Equations · Kingma and Welling, “Auto-Encoding Variational Bayes” (2014)
The ELBO (evidence lower bound), explained
The log-probability of the data is intractable for a latent-variable model, so a variational autoencoder maximizes this lower bound on it instead. The right-hand side is the ELBO.
Term by term
The log-evidence: how probable the model with parameters makes the data point .
Logarithm · Probability p(x) · Theta · Subscript (index or label)
The right side is a lower bound, by Jensen's inequality. Raising it raises (or tightens toward) the left side.
Average over latent codes drawn from the encoder , given . are the encoder's parameters.
The reconstruction term: how well the decoder recovers from .
Logarithm · Given (conditional bar) · Bold lowercase (vector)
The regularizer: how far the encoder's distribution strays from the prior , usually .
A small worked example
In practice the expectation is estimated with a single sample, with (the reparameterization trick), and the KL term between two Gaussians has a closed form.
Every symbol in it
Other equations
- Scaled dot-product attention
- Softmax
- Cross-entropy loss
- Adam update
- Layer normalization
- RMSNorm
- KL divergence
- Backpropagation through one layer
- LoRA
- GELU
- Dropout
- Batch normalization
- Rotary position embedding (RoPE)
- Multi-head attention
- PPO clipped objective
- DPO loss
- Policy gradient (REINFORCE)
- Bellman equation
- Q-learning update
- InfoNCE contrastive loss
- Diffusion forward process
- DDPM simplified loss
- VAE reparameterization trick
- GAN minimax objective
- AdamW
- Cosine learning-rate schedule
- Perplexity
- Logistic regression
- Normal equation (linear regression)
- Singular value decomposition (SVD)
- Principal component analysis (PCA)