{
  "id": "evidence-lower-bound",
  "title": "Evidence Lower Bound",
  "lang": "en",
  "source_lang": "en",
  "summary": "The evidence lower bound is a variational objective that bounds log marginal likelihood from below and supports approximate inference and probabilistic model learning.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "ELBO",
    "variational lower bound",
    "variational evidence lower bound"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/evidence-lower-bound/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/evidence-lower-bound/",
      "json": "https://aiwiki.page/zh/evidence-lower-bound.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The evidence lower bound (ELBO) is an objective function used in variational inference to approximate otherwise intractable probability distributions. It is a lower bound on the logarithm of a model’s marginal likelihood, also called its evidence. Maximizing the ELBO makes an approximate distribution closer to the exact posterior in a specific divergence, while avoiding direct evaluation of the evidence. It is central to approximate Bayesian inference and to learning latent-variable models in machine learning. (cs.columbia.edu)"
    },
    {
      "heading": "Mathematical definition",
      "text": "Let \\(x\\) denote observed data, \\(z\\) unobserved variables, and \\(\\theta\\) model parameters. A joint probability distribution is written\n\n\\[p_\\theta(x,z)=p_\\theta(x\\mid z)p_\\theta(z),\\]\n\nwhere \\(p_\\theta(z)\\) is the prior distribution and \\(p_\\theta(x\\mid z)\\) supplies the likelihood. Computing the evidence requires marginalizing \\(z\\):\n\n\\[p_\\theta(x)=\\int p_\\theta(x,z)\\,dz.\\]\n\nFor discrete variables, the integral is replaced by a sum. The exact posterior distribution is \\(p_\\theta(z\\mid x)=p_\\theta(x,z)/p_\\theta(x)\\). These quantities may be computationally difficult even when the joint density is evaluable. (cs.columbia.edu)\n\nFor an approximate distribution \\(q(z)\\), define\n\n\\[\\mathcal L(q,\\theta;x) =\\mathbb E_q\\!\\left[ \\log p_\\theta(x,z)-\\log q(z) \\right].\\]\n\nHere \\(\\mathbb E_q\\) denotes an expectation under \\(q\\). The defining relation is\n\n\\[\\log p_\\theta(x) =\\mathcal L(q,\\theta;x) +D_{\\mathrm{KL}}\\!\\left(q(z)\\,\\|\\,p_\\theta(z\\mid x)\\right).\\]\n\nBecause Kullback–Leibler divergence is nonnegative, \\(\\mathcal L\\leq\\log p_\\theta(x)\\). Equality holds precisely when the approximate and exact posterior distributions agree almost everywhere. The identity assumes a positive, finite evidence and appropriately defined expectations; incompatible supports can instead yield an ELBO of negative infinity. (cs.columbia.edu)"
    },
    {
      "heading": "Derivation and equivalent forms",
      "text": "The decomposition follows by substituting the posterior into the divergence:\n\n\\[\\begin{aligned} D_{\\mathrm{KL}}(q\\|p_\\theta(z\\mid x)) &=\\mathbb E_q[ \\log q(z)-\\log p_\\theta(z\\mid x)]\\\\ &=\\mathbb E_q[ \\log q(z)-\\log p_\\theta(x,z)] +\\log p_\\theta(x). \\end{aligned}\\]\n\nRearranging produces the ELBO identity. Alternatively, when \\(q\\) covers the joint distribution’s support in \\(z\\), Jensen’s inequality applied to the concave logarithm gives\n\n\\[\\log\\mathbb E_q\\!\\left[ \\frac{p_\\theta(x,z)}{q(z)} \\right] \\geq \\mathbb E_q\\!\\left[ \\log\\frac{p_\\theta(x,z)}{q(z)} \\right].\\]\n\nThe left side is then \\(\\log p_\\theta(x)\\). (cs.columbia.edu)\n\nTwo equivalent expressions highlight different interpretations:\n\n\\[\\mathcal L =\\mathbb E_q[\\log p_\\theta(x,z)]+H(q)\\]\n\nand\n\n\\[\\mathcal L =\\mathbb E_q[\\log p_\\theta(x\\mid z)] -D_{\\mathrm{KL}}(q(z)\\|p_\\theta(z)).\\]\n\nThe first combines expected log joint density with entropy; for continuous variables, \\(H(q)\\) is differential entropy. The second balances data fit against departure from the prior. Its negative is commonly called variational free energy, although sign conventions differ across fields. (arxiv.org)"
    },
    {
      "heading": "Optimization and expectation–maximization",
      "text": "With \\(\\theta\\) fixed, maximizing the ELBO over a family \\(\\mathcal Q\\) is equivalent to minimizing \\(D_{\\mathrm{KL}}(q\\|p_\\theta(z\\mid x))\\). Thus inference becomes mathematical optimization. A restricted family can leave a nonzero gap even at its global optimum. (jmlr.org)\n\nA common choice is a factorized, or mean-field, family \\(q(z)=\\prod_jq_j(z_j)\\). Coordinate-ascent updates optimize one factor while holding the others fixed:\n\n\\[\\log q_j^*(z_j) =\\mathbb E_{q_{-j}}[\\log p_\\theta(x,z)] +\\text{constant}.\\]\n\nThe constant normalizes the factor. Such updates improve the objective when performed exactly, but generally need not find its global maximum. (jmlr.org)\n\nThe expectation–maximization algorithm admits the same variational interpretation. Its E-step sets \\(q\\) to the current exact posterior, making the bound tight. Its M-step increases the bound with respect to \\(\\theta\\), thereby increasing or preserving the observed-data log likelihood. Variational EM instead restricts \\(q\\), allowing approximate E-steps when exact inference is unavailable. Increasing a loose bound alone does not guarantee an increase in the true evidence. (cs.toronto.edu)"
    },
    {
      "heading": "Neural models and stochastic computation",
      "text": "In a variational autoencoder, an inference network supplies \\(q_\\phi(z\\mid x)\\), while a generative network defines \\(p_\\theta(x\\mid z)\\). Both parameter sets are optimized through the ELBO. The expected log likelihood is often called the reconstruction term, while the prior divergence acts as regularization. Minimizing the negative ELBO expresses the same optimization as a loss function. (arxiv.org)\n\nThe reparameterization trick allows differentiable sampling constructions, such as\n\n\\[z=\\mu_\\phi(x)+\\sigma_\\phi(x)\\odot\\epsilon, \\qquad \\epsilon\\sim\\mathcal N(0,I),\\]\n\nwhere \\(\\odot\\) denotes elementwise multiplication. This permits gradient estimates through sampled latent variables. Automatic differentiation and stochastic gradient methods support scalable optimization; stochastic variational inference also uses data subsampling to fit models with large datasets. (arxiv.org)"
    },
    {
      "heading": "Interpretation and limitations",
      "text": "The exact ELBO is a bound, but a finite-sample stochastic estimate can exceed the log evidence because of sampling variability. Numerical optimization therefore distinguishes the mathematical objective from its noisy estimates. (arxiv.org)\n\nThe approximation also depends on the divergence’s direction. Minimizing \\(D_{\\mathrm{KL}}(q\\|p)\\) can favor concentration in a posterior mode; factorization can suppress dependencies and underestimate uncertainty. A high ELBO is consequently not, by itself, proof of accurate posterior uncertainty. (cs.columbia.edu)\n\nImportance-weighted objectives extend the construction by averaging several importance weights inside a logarithm. Their expected bounds are no looser than the single-sample ELBO and can better accommodate complex posteriors. They remain distinct objectives: tighter evidence bounds and improved optimization behavior are separate questions. (arxiv.org)"
    }
  ],
  "links": [
    "objective-function",
    "variational-inference",
    "marginal-likelihood",
    "bayesian-inference",
    "machine-learning",
    "joint-probability-distribution",
    "prior-distribution",
    "likelihood-function",
    "posterior-distribution",
    "expected-value",
    "kullback-leibler-divergence",
    "jensens-inequality",
    "information-entropy",
    "differential-entropy",
    "mathematical-optimization",
    "expectation-maximization-algorithm",
    "variational-autoencoder",
    "regularization",
    "loss-function",
    "gradient",
    "automatic-differentiation",
    "stochastic-gradient-descent"
  ],
  "sources": [
    {
      "title": "cs.columbia.edu/~blei/papers/BleiKucukelbirMcAuliffe2017.pdf",
      "url": "https://www.cs.columbia.edu/~blei/papers/BleiKucukelbirMcAuliffe2017.pdf"
    },
    {
      "title": "arxiv.org/abs/1312.6114",
      "url": "https://arxiv.org/abs/1312.6114"
    },
    {
      "title": "jmlr.org/papers/v18/16-107.html",
      "url": "https://www.jmlr.org/papers/v18/16-107.html"
    },
    {
      "title": "jmlr.org/papers/volume14/hoffman13a/hoffman13a.pdf",
      "url": "https://www.jmlr.org/papers/volume14/hoffman13a/hoffman13a.pdf"
    },
    {
      "title": "cs.toronto.edu/~hinton/absps/emk.pdf",
      "url": "https://www.cs.toronto.edu/~hinton/absps/emk.pdf"
    },
    {
      "title": "arxiv.org/abs/1509.00519",
      "url": "https://arxiv.org/abs/1509.00519"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}