# 拉普拉斯近似（贝叶斯推断）

贝叶斯推断中的拉普拉斯近似，是一种用拟合于目标函数众值处的高斯分布来近似后验分布、或近似边际似然这类难以处理的积分的方法。其名称源自拉普拉斯用于近似积分的拉普拉斯方法，在贝叶斯统计中也被称为后验正态近似。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup><sup> • </sup><sup>[2](https://stat238.berkeley.edu/spring-2026/lectureseventeen238spring2026/)</sup>

| 关键事实 | 详细说明 |
|---|---|
| 作用 | 在目标函数的最大值处拟合一个未归一化的高斯分布；协方差由该最大值处对数函数的黑塞矩阵决定。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup> |
| 后验形式 | 以最大后验估计 \( \widehat{\theta} \) 为中心的多变量正态分布，其协方差由对数后验的负黑塞矩阵之逆给出。<sup>[3](https://sites.pitt.edu/~kpele/INFSCI2595_W6_StudyGuide.html)</sup> |
| 边际似然 | 在 K 维情形下，\( Z \approx p^{*}(\widehat{\theta}) \sqrt{(2\pi)^{K} / \det \mathbf{A}} \)，其中 \( \mathbf{A} \) 为 \( \log p^{*}(\theta) \) 在众值处的负黑塞矩阵。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup> |
| 精度 | 对于光滑、可识别且先验密度为正的模型，真实后验与拉普拉斯高斯分布之间的全变差距离为 \( O(n^{-1/2}) \)，KL 散度为 \( O(n^{-1}) \)。<sup>[4](https://alexandria.mihaildimitrov.com/statistics/3.-bayesian-statistics/3.9-laplace-approximation)</sup> |
| 成本 | 用牛顿法寻找众值再加一次黑塞矩阵求值，即可在大致相当于一次最大后验拟合的计算预算下得到该近似；在神经网络中可缩减到约等于常规训练成本。<sup>[4](https://alexandria.mihaildimitrov.com/statistics/3.-bayesian-statistics/3.9-laplace-approximation)</sup><sup> • </sup><sup>[5](https://link.springer.com/article/10.1007/s10462-023-10562-9)</sup> |
| 主要局限 | 仅适用于单峰后验，对 \( \theta \) 的参数化方式敏感，且当众值远离后验概率主体时不可靠。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup> |
| 里程碑论文 | 蒂尔尼与卡丹（1986），《美国统计协会杂志》81:82–86，关于后验矩与边际密度的精确近似。<sup>[6](https://www.tandfonline.com/doi/abs/10.1080/01621459.1986.10478240)</sup> |

## 近似是如何构造的

该方法始于拉普拉斯近似积分 \( \int f(\theta)\, d\theta \) 的技术：在 \( f \) 的最大值 \( \widehat{\theta} \) 处拟合一个未归一化的高斯分布，并计算该高斯分布下的体积。拟合高斯的协方差由 \( \log f(\theta) \) 在最大值处的黑塞矩阵决定，这使得该构造等价于对 \( \log f \) 在众值附近作二阶泰勒近似。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup>

在一元情形下，记 \( p^{*}(\theta) \) 为未归一化密度，则在众值处的二阶展开为

\[ \log p^{*}(\theta) \approx \log p^{*}(\widehat{\theta}) - \frac{c}{2}(\theta - \widehat{\theta})^{2}, \]

其中一阶项因众值处导数为零而消失，且 \( c = -\frac{d^{2}}{d\theta^{2}} \log p^{*}(\theta) \big|_{\theta = \widehat{\theta}} \)。归一化常数——在贝叶斯应用中即边际似然——则为

\[ Z \approx p^{*}(\widehat{\theta}) \sqrt{\frac{2\pi}{c}}. \]

在 K 维情形下，展开使用矩阵 \( \mathbf{A} \)，其元素为 \( A_{ij} = -\frac{\partial^{2}}{\partial \theta_{i} \partial \theta_{j}} \log p^{*}(\theta) \big|_{\theta = \widehat{\theta}} \)，即众值处的负黑塞矩阵，且

\[ Z \approx p^{*}(\widehat{\theta}) \sqrt{\frac{(2\pi)^{K}}{\det \mathbf{A}}}. \]<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup>

当 \( f(\theta) = p(\mathcal{D}, \theta) \) 为数据与参数的联合密度时，这计算的是后验的归一化常数，即边际似然。同一名称也指用中心位于最大后验（MAP）估计处的高斯分布来近似后验本身；其合理性在于，在某些正则条件下，随着样本量增长，后验趋近于高斯分布。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup> 在贝叶斯机器学习中，拟合分布是以其后验众值为中心的多变量正态分布，由对数后验二阶导数的黑塞矩阵 \( \mathbf{H} \) 在 \( \widehat{\theta} \) 处求值来提供曲率信息。<sup>[3](https://sites.pitt.edu/~kpele/INFSCI2595_W6_StudyGuide.html)</sup>

一个实际的吸引力在于成本：用牛顿法找到 \( \widehat{\theta} \) 并在 \( \widehat{\theta} \) 处求一次黑塞矩阵，即可在与计算最大后验估计本身相同的计算预算内得到贝叶斯后验近似。<sup>[4](https://alexandria.mihaildimitrov.com/statistics/3.-bayesian-statistics/3.9-laplace-approximation)</sup>

## 精度与理论

在光滑参数模型的正则条件下——可识别性、真实参数位于内部、且该值处先验密度为正——拉普拉斯高斯分布与真实后验之间的全变差为 \( O(n^{-1/2}) \) 量级，而它们的 KL 散度为 \( O(n^{-1}) \)，其中 n 表示观测数。<sup>[4](https://alexandria.mihaildimitrov.com/statistics/3.-bayesian-statistics/3.9-laplace-approximation)</sup> 对数边际似然的非渐近双侧界也已被导出；经典拉普拉斯近似作为首项出现，其推导允许模型误设和参数维数随样本量增长，但要求似然比满足正则条件且后验足够集中。<sup>[7](https://arxiv.org/abs/2005.07844)</sup>

一种变体用负对数似然的黑塞矩阵的期望值——费雪信息矩阵——来替代该黑塞矩阵。<sup>[8](https://link.springer.com/article/10.1007/s11222-018-9836-0)</sup> 蒂尔尼与卡丹 1986 年发表于 JASA 的论文描述了实值或向量值参数的正函数的后验均值与方差的近似，以及任意参数的边际后验密度的近似，至今仍是贝叶斯统计中该方法的标准参考文献。<sup>[6](https://www.tandfonline.com/doi/abs/10.1080/01621459.1986.10478240)</sup><sup> • </sup><sup>[8](https://link.springer.com/article/10.1007/s11222-018-9836-0)</sup>

## 局限性

该近似是局部的：它捕捉的是后验在众值附近的行为，而非分布的整体。<sup>[9](https://www.sciencedirect.com/topics/computer-science/laplace-approximation)</sup> 其已被记录的弱点正源于此。它仅适用于单峰分布；它像最大后验估计一样对 \( \theta \) 的参数化方式敏感；若后验偏斜致使众值远离后验概率主体，近似便受制于这一失配。如果该过程已经落入低概率质量区域，事后再估计方差也无济于事。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup>

边际似然的用法有其自身的失效模式。对于具有多个极大值的积分，拉普拉斯方法可以通过对各个极大值的贡献求和来近似积分（假定这些极大值的数目有限），而在实践中，很难判断对于给定的层次模型，边际似然的拉普拉斯近似是否有效。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC11941402/)</sup><sup> • </sup><sup>[22](https://encyclopediaofmath.org/wiki/Laplace_method)</sup> 边际似然本身对先验敏感：扩大先验的覆盖范围，例如将先验标准差乘以 10，可以使边际似然变化十倍，而后验预测几乎不变。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup>

## 模型比较与证据

由于拉普拉斯近似计算的是后验的归一化常数，它被用于模型选择，其中边际似然（模型证据）用于比较模型。<sup>[1](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)</sup><sup> • </sup><sup>[11](https://moodle2.units.it/pluginfile.php/756461/mod_resource/content/6/intro_mcmc.pdf)</sup> 近似拉普拉斯近似（ALA）将评估积分似然的成本——贝叶斯模型选择中的一个瓶颈——降低到每个模型求解一个最小二乘问题的程度，并在广义的、可能非线性的模型中，以与精确计算相同的函数速率实现模型选择一致性。<sup>[12](https://arxiv.org/abs/2012.07429)</sup>

## 在统计学与机器学习中的应用

**潜高斯模型。** 集成嵌套拉普拉斯近似（INLA）通过将拉普拉斯近似与数值积分相结合，为潜高斯模型产生确定性的近似后验边际分布，其基础是蒂尔尼与卡丹的方法；基于泰勒展开的简化拉普拉斯近似是 R-INLA 软件中的标准计算选项。<sup>[13](https://www.inla.r-inla-download.org/r-inla.org/case-studies/Blangiardo-et-al-2012/Report-version-Oct-2012.pdf)</sup><sup> • </sup><sup>[14](https://inla.r-inla-download.org/r-inla.org/case-studies/Breslow-Clayton/glmminla.pdf)</sup>

**贝叶斯深度学习。** 大卫·麦凯于 1992 年在其证据框架中首次将拉普拉斯方法应用于贝叶斯神经网络，导出了预测概率的闭式近似。<sup>[15](https://proceedings.neurips.cc/paper_files/paper/2023/file/631f99d8e860054410c239fc90d18270-Paper-Conference.pdf)</sup> 该方法在深度学习中被使用的一个主要原因是其计算特性：它可缩减到大致相当于常规神经网络训练的成本，而变分推断则因正则化和表示不确定性所需的额外参数而变慢。<sup>[5](https://link.springer.com/article/10.1007/s10462-023-10562-9)</sup> 现代变体解决了规模与几何问题。子网络线性化拉普拉斯先对所有参数求最大后验估计，然后在一个小的选定参数子集上推断全协方差高斯后验，其余参数保持点估计。<sup>[16](https://proceedings.mlr.press/v139/daxberger21a.html)</sup> 线性化拉普拉斯近似（LLA）对预训练网络的预测进行不确定性估计，而 2024 年一种 LLA 的变分稀疏高斯过程表述保留了原网络的输出作为预测均值，同时将训练成本降至与训练点数目无关。<sup>[17](https://proceedings.mlr.press/v235/ortega24a.html)</sup> 广义高斯-牛顿近似——用一阶导数的乘积替代二阶导数——常被用于使方法可扩展，由此得到的“GLM 预测”解决了拉普拉斯近似常见的欠拟合问题。<sup>[18](https://proceedings.mlr.press/v130/immer21a.html)</sup>

**实证表现。** 在一项针对 ChemCam 光谱数据的贝叶斯卷积网络比较研究中，拉普拉斯近似、深度集成和变分贝叶斯都在一定程度上校准不良，但拉普拉斯近似表现出极小的认知不确定性，并受困于病态的黑塞矩阵，产生了不稳定的协方差估计，这一问题此前已被关联到 ReLU 网络中某些权重梯度接近零的情形。该研究的作者得出结论：在该设定下，单一的单峰高斯替代无法充分捕捉真实的预测后验。<sup>[19](https://itea.org/journals/volume-46-3/evaluating-bayesian-neural-networks/)</sup> 变分拉普拉斯——在变分自由能界内使用拉普拉斯风格的正态密度——在贝叶斯神经网络中，尽管使用相同的变分近似后验，其测试性能和期望校准误差均优于最大后验推断和标准的基于采样的变分推断。<sup>[20](https://arxiv.org/abs/2103.00222)</sup>

## 与其他方法的关系

与变分近似方法不同，拉普拉斯近似是一种局部技术，聚焦于后验众值附近的趋势。<sup>[9](https://www.sciencedirect.com/topics/computer-science/laplace-approximation)</sup> 对于逻辑回归，基于后验正态近似的贝叶斯推断与通常的频率学派推断一致。<sup>[2](https://stat238.berkeley.edu/spring-2026/lectureseventeen238spring2026/)</sup> 拉普拉斯假设对特定应用的有效性可以用采样方法来评估。<sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC10951963/)</sup>

## References

1. [Chapter 11: Bayesian model comparison and Laplace approximation, Computational Statistics I, University of Helsinki](https://www.cs.helsinki.fi/u/ahonkela/teaching/compstats1/book/bayesian-model-comparison-and-laplace-approximation.html)
2. [STAT 238, Bayesian Statistics Lecture Seventeen, UC Berkeley](https://stat238.berkeley.edu/spring-2026/lectureseventeen238spring2026/)
3. [INFSCI 2595, Week 6 Study Guide: Laplace Approximation, University of Pittsburgh](https://sites.pitt.edu/~kpele/INFSCI2595_W6_StudyGuide.html)
4. [Laplace Approximation, Bayesian Statistics notes](https://alexandria.mihaildimitrov.com/statistics/3.-bayesian-statistics/3.9-laplace-approximation)
5. [A survey of uncertainty in deep neural networks, Artificial Intelligence Review (Springer)](https://link.springer.com/article/10.1007/s10462-023-10562-9)
6. [Luke Tierney and Joseph B. Kadane (1986). Accurate Approximations for Posterior Moments and Marginal Densities. Journal of the American Statistical Association 81(393):82–86.](https://www.tandfonline.com/doi/abs/10.1080/01621459.1986.10478240)
7. [Anirban Bhattacharya and Debdeep Pati (2020). Nonasymptotic Laplace approximation under model misspecification. arXiv.](https://arxiv.org/abs/2005.07844)
8. [Laplace approximation and natural gradient for Gaussian process regression with heteroscedastic student-t model, Statistics and Computing (Springer)](https://link.springer.com/article/10.1007/s11222-018-9836-0)
9. [Laplace Approximation: an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/laplace-approximation)
10. [Practical Consequences of the Bias in the Laplace Approximation to Marginal Likelihood for Hierarchical Models, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC11941402/)
11. [Bayesian statistics lecture notes, Università di Torino](https://moodle2.units.it/pluginfile.php/756461/mod_resource/content/6/intro_mcmc.pdf)
12. [David Rossell, Oriol Abril, Anirban Bhattacharya (2020). Approximate Laplace approximations for scalable model selection. arXiv.](https://arxiv.org/abs/2012.07429)
13. [Blangiardo et al. (2012). Spatial and spatio-temporal models with R-INLA, case study report](https://www.inla.r-inla-download.org/r-inla.org/case-studies/Blangiardo-et-al-2012/Report-version-Oct-2012.pdf)
14. [Y. Fong, H. Rue and J. Wakefield. Bayesian GLMMs and the INLA computational approach](https://inla.r-inla-download.org/r-inla.org/case-studies/Breslow-Clayton/glmminla.pdf)
15. [Related work on Bayesian neural networks, NeurIPS 2023 proceedings](https://proceedings.neurips.cc/paper_files/paper/2023/file/631f99d8e860054410c239fc90d18270-Paper-Conference.pdf)
16. [Erik Daxberger et al. (2021). Bayesian Deep Learning via Subnetwork Inference. PMLR 139:2510–2521.](https://proceedings.mlr.press/v139/daxberger21a.html)
17. [Luis A. Ortega, Simon Rodriguez Santana, Daniel Hernández-Lobato (2024). Variational Linearized Laplace Approximation for Bayesian Deep Learning. PMLR 235:38815–38836.](https://proceedings.mlr.press/v235/ortega24a.html)
18. [Alexander Immer, Maciej Korzepa, Matthias Bauer (2021). Improving predictions of Bayesian neural nets via local linearization. PMLR 130:703–711.](https://proceedings.mlr.press/v130/immer21a.html)
19. [Evaluating Bayesian Neural Networks: A Practical Study, ITEA Journal of Test and Evaluation 46(3)](https://itea.org/journals/volume-46-3/evaluating-bayesian-neural-networks/)
20. [Variational Laplace for Bayesian neural networks. arXiv](https://arxiv.org/abs/2103.00222)
21. [A primer on Variational Laplace (VL), PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10951963/)
22. [encyclopediaofmath.org](https://encyclopediaofmath.org/wiki/Laplace_method)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Foundations of statistical inference › Asymptotic theory of statistics › Bayesian large-sample theory

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/laplace-approximation-bayesian-inference

English original: https://www.edgepedia.org/laplace-approximation-bayesian-inference
