Laplace Approximation

The Laplace approximation approximates a posterior by the Gaussian obtained from a second-order Taylor expansion of the log-posterior around its mode. Let , let be the log of the unnormalized posterior, and let . A Taylor expansion at the mode, using , gives

where is the Hessian at the mode (negative definite, since is a maximum). Exponentiating and recognizing the resulting density as a Gaussian kernel gives

Finding the mode is typically done with Newton’s method, which uses the same Hessian and converges quadratically near .

Integrating the Gaussian kernel gives an approximation to the marginal likelihood

which is the standard shortcut for evidence computation and Bayes factors when no conjugate form is available.

Three main uses:

  1. Direct posterior approximation. Report as the posterior. Credible intervals come from Gaussian quantiles: for a marginal interval. Fastest available Bayesian analysis; accurate for smooth, unimodal, high- posteriors.
  2. MCMC proposal covariance. Use as the covariance of a random-walk Metropolis proposal, typically scaled by with (Roberts-Gelman-Gilks) to target the optimal acceptance rate.
  3. Marginal likelihood approximation. Plug into the Laplace evidence formula above for model comparison via Bayes factors.

Validity. The approximation is exact when the posterior is Gaussian (e.g., Normal-Normal conjugacy with known variance). Its error is for smooth parametric models by the Bernstein-von Mises theorem; in the large-data limit the true posterior converges to exactly this Gaussian. It fails for multi-modal posteriors (the approximation captures only one mode), bounded parameters near the boundary (the Gaussian extends past the support), and heavy-tailed posteriors (the Gaussian under-weights the tails).

Intuition

The log-posterior of a regular model looks roughly quadratic near its mode: zero gradient, negative-definite Hessian, higher-order terms small for most of the posterior’s mass. A Gaussian has exactly this log-form everywhere, so approximating the log-posterior by its second-order Taylor expansion amounts to replacing the posterior by the Gaussian that best matches its curvature at the peak. For large , the likelihood sharpens faster than the prior shifts the mode, so the approximation gets better — the Bernstein-von Mises theorem makes this precise.

The practical appeal is pragmatic: Newton’s method to find and a Hessian evaluation at together give you a Bayesian posterior approximation in the same compute budget as computing the MAP. When the posterior is smooth and unimodal, the Laplace approximation is essentially free and good enough for many purposes. When it isn’t enough, its MAP and covariance become the natural starting point for MCMC — the Hessian-scaled proposal is almost always the right thing to use for a Metropolis random walk.

Properties

(Newton’s Method Finds the MAP) The same Hessian that defines the approximation drives the optimization.

Newton’s step for maximizing is , using the Hessian of the log-posterior. Near the mode the method converges quadratically: the error squares every iteration, so a dozen iterations from a reasonable start give machine precision. Once is found, the same defines the covariance . In practice the cost of the Laplace approximation is dominated by the Hessian factorization, , which is fine for up to a few thousand.

(Fisher Information Connection) The Hessian of the log-likelihood equals the observed Fisher information.

Writing , the Hessian decomposes as . The likelihood part is the observed Fisher information . For a flat prior and large , where is the Fisher information per observation and is the true parameter. The Laplace covariance then matches the frequentist asymptotic covariance of the MLE, which is the concrete form of Bernstein-von Mises.

(Asymptotic Exactness — Bernstein-von Mises) Under regularity, the Laplace approximation converges to the true posterior as .

For smooth parametric models with identifiability, interior true parameter, and positive prior density at , the total variation distance between the true posterior and the Laplace Gaussian is , and the KL divergence is . Asymptotically, every regular Bayesian posterior is Gaussian centered at the MLE with covariance , independent of the prior. This justifies Laplace as a default fast approximation when is large, and it implies that reporting MAP Laplace standard errors is asymptotically equivalent to reporting MLE standard Wald errors.

(Marginal Likelihood Estimate) The Laplace evidence formula is -accurate for smooth unimodal posteriors.

Writing the evidence as and substituting the Taylor expansion gives

Taking logs, . The approximation is for smooth likelihoods; comparing models by plugging this into log-Bayes-factors gives a practical model-comparison tool. Two cautions: the Laplace evidence is sensitive to prior tails (since the normalizing constant depends on the prior’s shape away from ), and the approximation degrades when the dimension grows with .

(Failure Modes — Where the Approximation Breaks) Laplace misses multi-modality, boundary effects, and heavy tails.

Three canonical failures: (a) multi-modal posteriors, where the Gaussian at one mode ignores the others entirely; a mixture-of-Laplace approximations or MCMC is needed. (b) boundary effects, where a parameter lives on or and the mode lies near the boundary; the Gaussian extends past the support and assigns mass to impossible regions. Reparameterizing (e.g., for rate parameters, for probabilities) usually fixes this by moving the boundary to . (c) heavy tails, where the true posterior has tails fatter than any Gaussian; the Laplace approximation under-weights the tails and produces credible intervals that are too short. For these cases, a -distribution approximation or direct MCMC is preferred.

(Proposal Covariance for MH) Scaled Laplace covariance is the default random-walk Metropolis proposal.

The optimal scaling for a -dimensional random-walk Metropolis on a target with posterior covariance is with (Roberts-Gelman-Gilks, 1997), targeting an acceptance rate near . Using the Laplace covariance as the plug-in estimate of is practical and nearly optimal whenever the posterior is approximately Gaussian. When the posterior is strongly non-Gaussian, is still a far better proposal shape than the isotropic default — at minimum, it rescales the coordinates by their posterior widths and aligns the proposal with the posterior’s principal axes.

Examples

Derivation

Goal. Derive the Gaussian approximation from a Taylor expansion of the log-posterior.

Let be the log of the unnormalized posterior. Assume is twice differentiable and has a unique global maximum at with negative-definite Hessian. A second-order Taylor expansion of at gives

The gradient vanishes at the mode, so the linear term drops out. Exponentiating and dropping higher-order terms,

The right-hand side, as a function of , is the kernel of a Gaussian density with mean and precision matrix . Normalizing gives

The normalizing constant absorbs the factor , which — equated with the definition of the marginal likelihood — yields the Laplace evidence formula

The error of the approximation is controlled by the term. For smooth parametric likelihoods with observations, the posterior concentrates on a neighborhood of , so the cubic remainder is relative to the quadratic term of order . The relative error is therefore in total-variation distance and in KL divergence, giving the Bernstein-von Mises rate.

See Also