# 广泛适用信息准则

**广泛适用信息准则**（widely applicable information criterion，WAIC），又称渡边-赤池信息准则（Watanabe–Akaike information criterion），是一种完全贝叶斯的预测精度度量，用于比较统计模型。它估计拟合贝叶斯模型的期望对数逐点预测密度（ELPD），并通过数据驱动的有效模型复杂度惩罚项来校正过拟合，其计算基于在后验参数模拟值处求值的逐点对数似然。<sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup><sup> • </sup><sup>[2](https://arxiv.org/abs/1507.04544)</sup><sup> • </sup><sup>[6](https://en.bayesianstatistics.com/Watanabe-Akaike_Information_Criterion)</sup> 东京工业大学（Tokyo Institute of Technology）计算智能与系统科学教授渡边澄夫（Sumio Watanabe）将该准则作为其奇异学习理论的一部分提出，并于2010年证明了它与贝叶斯留一交叉验证渐近等价。<sup>[3](https://www.jmlr.org/beta/papers/v11/watanabe10a.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 估计对象 | 期望对数逐点预测密度（elpd_waic），附带有效参数数量的惩罚项 p_waic；准则本身为 waic = −2 × elpd_waic，采用偏差尺度<sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup> |
| 起源 | 由渡边澄夫提出；2010年《机器学习研究杂志》的论文在奇异学习理论框架下证明了贝叶斯交叉验证损失与WAIC的渐近等价性<sup>[3](https://www.jmlr.org/beta/papers/v11/watanabe10a.html)</sup> |
| 惩罚项 | p_waic 是对所有观测求对数预测密度后验方差之和，用作有效参数数量的估计<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC12676262/)</sup> |
| 失效诊断 | 当对数预测密度的某个后验方差超过0.4时，WAIC开始失效<sup>[5](https://sites.stat.columbia.edu/gelman/research/published/loo_stan.pdf)</sup> |
| 与LOO的关系 | WAIC对应于留一交叉验证的截断泰勒级数近似；PSIS-LOO在估计ELPD时通常误差更小<sup>[4](https://mc-stan.org/loo/articles/online-only/faq.html)</sup> |
| 适用范围 | 适用于混合模型、贝叶斯网络和神经网络等奇异模型，这些场景中AIC和BIC不适用<sup>[7](https://academic.oup.com/sysbio/article/72/3/616/7050004)</sup> |
| 标准软件 | 在R包loo中以`waic()`实现，用于Stan和rstanarm拟合的模型<sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup><sup> • </sup><sup>[10](https://mc-stan.org/rstanarm/reference/loo.stanreg.html)</sup> |

## 定义与计算

WAIC由两个量构成，二者均从 S × n 的逐点对数似然值矩阵计算得出，其中 S 为后验样本量，n 为数据点数量。第一个量是对数逐点预测密度（lppd），它通过对每个观测在后验分布上对似然取平均来衡量模型对数据的拟合程度。第二个量是 p_waic，即对所有观测求对数预测密度后验方差之和，它估计有效参数数量，充当模型复杂度的惩罚项。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC12676262/)</sup> elpd_waic 估计值为 lppd 减去该惩罚项，所报告的信息准则为 waic = −2 × elpd_waic，将对数得分尺度转换为传统的偏差尺度。<sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup>

逐点结构很重要。由于该准则按观测逐一计算，loo 包在返回总计值的同时也返回逐点贡献和标准误，模型比较函数则报告两个模型之间ELPD的差值及其标准误。<sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup><sup> • </sup><sup>[5](https://sites.stat.columbia.edu/gelman/research/published/loo_stan.pdf)</sup> 部分文献将WAIC定义为渡边原始表达式的 −2n 倍，另有一些论文使用 −2 倍对数得分，这一惯例继承自DIC的偏差传统。<sup>[4](https://mc-stan.org/loo/articles/online-only/faq.html)</sup>

## 为何“广泛适用”

经典信息准则假设统计模型是正则的，即从参数到概率分布的映射是一一对应的，且Fisher信息矩阵正定。许多学习机器违反这一假设：人工神经网络、正态混合模型、贝叶斯网络、隐马尔可夫模型以及其他具有层级结构或隐变量的模型都是奇异的，这意味着不同的参数值可以给出相同的分布，且似然无法用正态形状近似。在这类模型中，AIC、BIC和MDL均不能用于模型评估。<sup>[8](https://www.jmlr.org/papers/volume14/watanabe13a/watanabe13a.pdf)</sup>

WAIC正是为在这一设定下工作而设计的。与基于单点估计评估拟合的AIC或DIC不同，WAIC使用整个后验分布，在后验分布并非正态分布时更为准确。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC4820461/)</sup> 它被描述为DIC的完全贝叶斯版本，而“广泛适用”这一名称则反映了它在正则模型和奇异模型中的有效性。<sup>[6](https://en.bayesianstatistics.com/Watanabe-Akaike_Information_Criterion)</sup><sup> • </sup><sup>[7](https://academic.oup.com/sysbio/article/72/3/616/7050004)</sup> 渡边2010年的定理表明，贝叶斯交叉验证损失作为随机变量与WAIC渐近相等，因此基于这两个值的模型选择与超参数优化是渐近等价的；同时，贝叶斯泛化误差与交叉验证误差之和渐近为 2λ/n，其中 λ 是实对数典范阈值，即学习机器的一个代数几何不变量。<sup>[3](https://www.jmlr.org/beta/papers/v11/watanabe10a.html)</sup>

## 与交叉验证及其他准则的关系

WAIC和留一交叉验证（LOO）都从拟合的贝叶斯模型估计逐点样本外预测精度，二者相对于AIC和DIC等更简单的预测误差估计都具有优势。<sup>[2](https://arxiv.org/abs/1507.04544)</sup> 从计算角度看，WAIC是留一交叉验证的截断泰勒级数近似。<sup>[4](https://mc-stan.org/loo/articles/online-only/faq.html)</sup> 渡边证明了WAIC给出样本外预测误差的渐近无偏估计，尽管这一性质在先验信息较弱的层级模型中不成立；精确LOO本身也略有偏差，因为留一后验仅使用 n − 1 个观测。<sup>[5](https://sites.stat.columbia.edu/gelman/research/published/loo_stan.pdf)</sup>

**实际比较更倾向于带诊断的LOO。** 维赫塔里（Vehtari）、盖尔曼（Gelman）和加布里（Gabry）表明，使用帕累托平滑重要性采样的PSIS-LOO在估计ELPD时通常比WAIC误差更小。例外情况是当 p_loo 远小于 N 时，WAIC的误差往往略小，但在这种情况下两种近似的误差都非常小。对于灵活模型，WAIC更容易失效，偏差显著，且更难以诊断失效。<sup>[4](https://mc-stan.org/loo/articles/online-only/faq.html)</sup> 有文献记载的失效阈值为对数预测密度的后验方差超过0.4，当 p_waic 估计值超过该值时，loo 包会发出警告并建议使用`loo()`。<sup>[5](https://sites.stat.columbia.edu/gelman/research/published/loo_stan.pdf)</sup><sup> • </sup><sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup> 出于这些原因，loo 包的开发者收录WAIC主要用于比较目的，并推荐使用PSIS-LOO，后者还提供有用的诊断信息、有效样本量估计和蒙特卡洛估计。<sup>[4](https://mc-stan.org/loo/articles/online-only/faq.html)</sup><sup> • </sup><sup>[1](https://mc-stan.org/loo/reference/waic.html)</sup>

WAIC在目的上也不同于BIC及其贝叶斯推广WBIC。BIC族准则近似模型下数据的边际概率密度，用于估计模型的相对后验概率；而WAIC与AIC一样，以预测拟合为目标；一个复杂模型可以预测良好并具有较低的AIC、DIC和WAIC，同时因BIC更大的惩罚项而获得较差的BIC值。<sup>[12](https://sites.stat.columbia.edu/gelman/research/unpublished/waic_understand_final.pdf)</sup> WBIC由渡边于2013年定义，为逆温度 1/log n 下后验上的平均对数似然，将BIC本身推广到奇异模型。<sup>[8](https://www.jmlr.org/papers/volume14/watanabe13a/watanabe13a.pdf)</sup>

## 实践中的应用

WAIC在生态学、渔业科学、系统发育学、心理测量学和认知建模等应用领域广泛用于贝叶斯模型比较，主要原因是它易于从后验模拟抽样中计算。<sup>[13](https://academic.oup.com/icesjms/article/78/8/2875/6368095)</sup><sup> • </sup><sup>[7](https://academic.oup.com/sysbio/article/72/3/616/7050004)</sup> 在基于Stan的工作流程中，用户在生成量块中存储逐点对数似然，将其提取为矩阵，然后调用`waic()`；额外计算开销很小，因为对数似然项在每次保存的迭代中只计算一次，而非每个蛙跳步计算一次。<sup>[5](https://sites.stat.columbia.edu/gelman/research/published/loo_stan.pdf)</sup> rstanarm包提供`loo_compare`并附带`criterion = "waic"`选项，不过其默认比较准则为LOO-CV。<sup>[10](https://mc-stan.org/rstanarm/reference/loo.stanreg.html)</sup>

模拟研究普遍发现，在项目反应理论模型（包括多分类模型）的选择中，WAIC和LOO与AIC、BIC、DIC相比具有竞争力或更优。<sup>[14](https://arxiv.org/abs/1806.09996)</sup> 然而，比较方法的选择在实际数据中可能偏向不同的模型，生态学案例研究即显示了WAIC、DIC和边际似然方法产生不同排名的情况。<sup>[15](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/2041-210X.14237)</sup> 交叉验证的所有局限性同样适用于WAIC，包括关于层级数据和时间序列数据划分的问题，评论者已告诫不要将任何单一数值准则视为模型选择的完整决策规则。<sup>[4](https://mc-stan.org/loo/articles/online-only/faq.html)</sup><sup> • </sup><sup>[16](https://researchmgt.monash.edu/ws/portalfiles/portal/349679857/349679712_oa.pdf)</sup>

## References

1. [Widely applicable information criterion (WAIC) — waic • loo, mc-stan.org](https://mc-stan.org/loo/reference/waic.html)
2. [Vehtari, A., Gelman, A., and Gabry, J. Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC. arXiv:1507.04544; Statistics and Computing 27(5), 1413–1432 (2017)](https://arxiv.org/abs/1507.04544)
3. [Watanabe, S. (2010). Asymptotic Equivalence of Bayes Cross Validation and Widely Applicable Information Criterion in Singular Learning Theory. Journal of Machine Learning Research 11, 3571–3594](https://www.jmlr.org/beta/papers/v11/watanabe10a.html)
4. [Cross-validation FAQ • loo, mc-stan.org](https://mc-stan.org/loo/articles/online-only/faq.html)
5. [Vehtari, A., Gelman, A., and Gabry, J. Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC (published PDF)](https://sites.stat.columbia.edu/gelman/research/published/loo_stan.pdf)
6. [Watanabe–Akaike Information Criterion, BayesianStatistics.com](https://en.bayesianstatistics.com/Watanabe-Akaike_Information_Criterion)
7. [Identifying the Best Approximating Model in Bayesian Phylogenetics: Bayes Factors, Cross-Validation or wAIC? Systematic Biology 72(3), 616 (2023)](https://academic.oup.com/sysbio/article/72/3/616/7050004)
8. [Watanabe, S. (2013). A Widely Applicable Bayesian Information Criterion. Journal of Machine Learning Research 14, 867–897](https://www.jmlr.org/papers/volume14/watanabe13a/watanabe13a.pdf)
9. [Dynamic Bayesian Learning for Spatiotemporal Mechanistic Models, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC12676262/)
10. [Information criteria and cross-validation — loo.stanreg • rstanarm, mc-stan.org](https://mc-stan.org/rstanarm/reference/loo.stanreg.html)
11. [Bayesian Model Selection with Network Based Diffusion Analysis, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC4820461/)
12. [Gelman et al. Understanding predictive information criteria for Bayesian models (unpublished manuscript)](https://sites.stat.columbia.edu/gelman/research/unpublished/waic_understand_final.pdf)
13. [Applying Bayesian model selection to determine ecological covariates for recruitment and natural mortality in stock assessment. ICES Journal of Marine Science 78(8), 2875 (2021)](https://academic.oup.com/icesjms/article/78/8/2875/6368095)
14. [LOO and WAIC as Model Selection Methods for Polytomous Items. arXiv:1806.09996](https://arxiv.org/abs/1806.09996)
15. [Hudson et al. (2023). Importance sampling and Bayesian model comparison in ecology and evolution. Methods in Ecology and Evolution](https://besjournals.onlinelibrary.wiley.com/doi/10.1111/2041-210X.14237)
16. [Vehtari, A., Simpson, D., Yao, Y., and Gelman, A. (2019). Limitations of "Limitations of Bayesian Leave-one-out Cross-Validation for Model Selection". Computational Brain & Behavior 2, 22–27](https://researchmgt.monash.edu/ws/portalfiles/portal/349679857/349679712_oa.pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Bayesian statistics › Bayesian model selection, design, and applications › Bayesian model selection and information criteria

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/widely-applicable-information-criterion

English original: https://www.edgepedia.org/widely-applicable-information-criterion
