# 自适应重要性采样

自适应重要性采样（adaptive importance sampling, AIS）是一种蒙特卡洛技术，通过利用先前样本的信息反复调整抽取样本所依据的提议分布，来估计期望、积分与归一化常数（使密度积分为一的因子）。在普通重要性采样中，样本来自固定的提议分布 \( q(x) \)，每个样本获得权重 \( w(x) = \pi(x)/q(x) \)，其中 \( \pi \) 为目标密度；所得估计量的方差关键取决于提议分布与目标分布之间的差异。<sup>[1](https://oa.upm.es/46532/1/INVE_MEM_2016_255235.pdf)</sup> AIS 迭代地缩小这一差异，从已生成的样本和权重中学习一个或多个提议分布。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> 该方法广泛应用于稀有事件模拟、贝叶斯计算和信号处理。<sup>[3](https://arxiv.org/pdf/2502.07396v2)</sup>

| 关键事实 | 细节 |
|---|---|
| 估计对象 | 归一化目标 \( \pi \) 下的期望与积分；对于未归一化密度 \( \tilde{\pi} \)，权重 \( \tilde{\pi}(x)/q(x) \) 在 \( q \) 下的期望等于归一化常数，例如边际似然 \( Z = p(y) \)<sup>[3](https://arxiv.org/pdf/2502.07396v2)</sup> |
| 核心循环 | 从当前提议分布采样、加权、更新提议分布，重复直至满足停止准则<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> |
| 估计量偏差 | 未归一化 IS 估计量是无偏的；自归一化估计量仅是渐近无偏的，偏差随样本量增大而消失<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> |
| 渐近最优性 | 某些 AIS 算法在给定条件下可达到与从一开始就知道最佳采样策略的“预言机”采样器相同的渐近方差<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2018/file/1bc0249a6412ef49b07fe6f62e6dc8de-Paper.pdf)</sup><sup> • </sup><sup>[31](https://arxiv.org/abs/1903.08507)</sup> |
| 主要失效模式 | 权重退化：当携带不可忽略权重的样本数少于维度 \( d_{x} \) 时，经验协方差矩阵变为奇异<sup>[5](https://ar5iv.labs.arxiv.org/html/1806.00093)</sup> |
| 报告增益 | 在一项使用优化旁路提议分布的二维研究中，方差分别降至原来的 1/14.41 和 1/25.41<sup>[6](https://www.sciencedirect.com/science/article/pii/S037704271730050X)</sup> |

## 工作原理

重要性采样通过抽取 \( x_{n} \sim q \) 并对 \( f(x_{n}) \cdot w(x_{n}) \) 求平均来近似积分。只要提议分布覆盖加权被积函数的支撑集且重要性加权被积函数可积，未归一化（UIS）估计量就是无偏的；若支撑集有缺失，仅靠更重的尾部并不能保证无偏性，而尾部不够重则可能导致方差无穷。自归一化（SNIS）估计量除以平均权重，是一致的，但在有限样本下是有偏的；偏差随 \( N \) 增大趋于零。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> UIS 估计量的方差涉及 \( f^{2} \pi^{2}/q \)，而 SNIS 估计量的渐近方差涉及 \( \pi^{2}(f - \mu)^{2}/q \)，其中 \( \mu = E_{\pi}[f] \)；因此 \( \pi |f| \) 描述的是非负积分情形下的零方差提议分布，而非一般情况下两个估计量的方差。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup>

零方差基准使自适应目标变得具体：在通常条件下，最优提议分布为 \( q^{*}(x) \propto |f(x)| \pi(x) \)，其归一化常数仅在非负被积函数情形下等于难以处理的积分 \( I(f) \)。由于无法精确从 \( q^{*} \) 采样，实践者转而将提议分布推向目标分布，而过度铺展提议分布仍是标准的稳妥做法。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> 自适应方案最小化显式差异目标：目标与提议分布之间的 \( \chi^{2} \)-散度度量密度比的二阶矩，可对适当限制的被积函数给出均方误差的界，而非普遍地决定偏差和 MSE，<sup>[7](https://www.aimsciences.org/article/doi/10.3934/fods.2024003)</sup> 从目标到提议分布的 Kullback-Leibler 散度度量给定样本量下推断的低效程度，<sup>[8](https://arxiv.org/pdf/1810.13296v1.pdf)</sup> 而最小化每样本方差对应于最小化阶为 \( \alpha = 2 \) 的 Rényi 散度，\( \alpha = 1 \) 则恢复为类似交叉熵方法所采用的交叉熵准则。<sup>[9](https://web.stanford.edu/~boyd/papers/pdf/adaMC.pdf)</sup> 将权重取幂 \( \eta \in (0,1) \)（正则化重要性采样）以增加偏差为代价降低方差，这种权衡通过权重分布与均匀分布之间的 Rényi \( \alpha \)-散度来调节；一致性要求 \( \eta_{k} \to 1 \)。<sup>[10](https://proceedings.mlr.press/v151/korba22a/korba22a.pdf)</sup>

在理论方面，德利翁和波尔蒂耶的加权 AIS 估计量在该文假设下是渐近最优的：其渐近方差与从一开始就知道目标采样策略的预言机策略相同，因此学习策略在渐近意义下没有代价，且归一化估计量满足中心极限定理；其他 AIS 算法未必能达到这一预言机方差。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2018/file/1bc0249a6412ef49b07fe6f62e6dc8de-Paper.pdf)</sup>

## 实现方法

一次典型的 AIS 运行在每个阶段 \( t \) 交替执行两步：用从当前策略 \( q_{t} \) 抽取的 \( n_{t} \) 个点探索空间，并利用积累的信息更新策略。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2018/file/1bc0249a6412ef49b07fe6f62e6dc8de-Paper.pdf)</sup> 具体而言，每次迭代执行采样、计算重要性权重以及更新提议分布参数，重复直至满足停止准则，例如最大迭代次数 \( T \)。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> 在基于种群的版本中，一组 \( N \) 个提议分布各自生成 \( M \) 个样本，样本以某种为保持无偏性而选择的函数加权，提议分布的均值要么通过以正比于权重的概率重采样均值来适应，要么通过与目标分布进行矩匹配来适应。<sup>[1](https://oa.upm.es/46532/1/INVE_MEM_2016_255235.pdf)</sup>

诊断与停止规则在实践中很重要。一种广泛使用的规则迭代至达到期望的有效样本量（ESS）。<sup>[11](https://arxiv.org/pdf/0907.1254)</sup> 基于混合的采样器监控归一化困惑度 \( \exp(H)/N \)，其中 \( H \) 是归一化权重的香农熵，在 \( N \) 较大时随迭代非减；带固定权重 \( \alpha_{0} = 0.1 \) 分量的防御性混合使重要性函数保持有界并保证方差有限。<sup>[12](https://ar5iv.labs.arxiv.org/html/0710.4242)</sup> 最后，估计量可以使用第 \( 1 \) 到第 \( T \) 次迭代的全部加权样本，或仅使用最后一次迭代的样本。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> 加权 AIS（wAIS）按各阶段估计方差的倒数对每个阶段的贡献重新加权，使实践者可以遗忘早期较差的样本，经验结果倾向于小分配策略（更频繁的更新）。<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2018/file/1bc0249a6412ef49b07fe6f62e6dc8de-Paper.pdf)</sup> 协方差自适应应以局部 ESS 高于 \( d_{x} \) 为条件，因为不可忽略权重过少会导致矩阵奇异。<sup>[5](https://ar5iv.labs.arxiv.org/html/1806.00093)</sup>

## 起源

重要性采样的经典表述出现在赫尔曼·卡恩（Herman Kahn）1949 年 6 月关于随机（蒙特卡洛）衰减分析的论文中；“重要性采样”一词本身在印刷文献中出现不早于 1950 年。<sup>[13](https://ar5iv.labs.arxiv.org/html/2206.12286)</sup> 种群蒙特卡洛（PMC）框架由 O. 卡佩（O. Cappé）及其同事于 2004 年在《计算与图形统计杂志》上报道。<sup>[14](https://doi.org/10.1198/106186004x12803)</sup> 一般混合类中的自适应重要性采样（M-PMC）由奥利维耶·卡佩（Olivier Cappé）及其同事于 2008 年在《统计与计算》上报道。<sup>[15](https://doi.org/10.1007/s11222-008-9059-x)</sup> 后来命名的变体包括卢卡·马蒂诺（Luca Martino）及其同事提出的自适应种群重要性采样器（APIS）（2015 年，《IEEE 信号处理汇刊》）<sup>[16](https://doi.org/10.1109/tsp.2015.2440215)</sup> 和同样四位作者提出的分层自适应重要性采样（LAIS）（2016 年，《统计与计算》）。<sup>[17](https://doi.org/10.1007/s11222-016-9642-5)</sup> 在理论方面，加权 AIS（wAIS）由贝尔纳·德利翁（Bernard Delyon）和弗朗索瓦·波尔蒂耶（François Portier）于 2018 年报道，<sup>[4](https://proceedings.neurips.cc/paper_files/paper/2018/file/1bc0249a6412ef49b07fe6f62e6dc8de-Paper.pdf)</sup> 安全自适应重要性采样（SAIS）由同样两位作者于 2021 年在《统计年鉴》上报道，<sup>[18](https://doi.org/10.1214/20-aos1983)</sup> 优化自适应重要性采样器（OAIS）由厄梅尔·德尼兹·阿克耶尔德兹（Ömer Deniz Akyildiz）和华金·米格斯（Joaquín Míguez）于 2021 年在《统计与计算》上报道。<sup>[19](https://doi.org/10.1007/s11222-020-09983-1)</sup> 布加略（Bugallo）及其同事于 2017 年在《IEEE 信号处理杂志》上对 AIS 方法作了综述。<sup>[20](https://doi.org/10.1109/msp.2017.2699226)</sup>

## 变体

**种群蒙特卡洛**方法是一大类基于种群的 AIS 算法；在其关键特征为提议分布位置参数自适应过程中包含重采样步骤的常见变体中，每次迭代为每个提议分布抽取一个样本，对其加权，并以正比于重要性权重的概率通过重采样选择下一批位置，而其他 PMC 变体通过矩匹配等机制更新提议分布。<sup>[21](https://arxiv.org/pdf/2204.06891)</sup> **AMIS** 与 PMC 的不同之处在于，所有已模拟值（过去和现在）的重要性权重在每次迭代时使用确定性多重混合估计量重新计算；其估计量在有限 \( T \) 下是有偏的，迭代至达到目标 ESS。<sup>[11](https://arxiv.org/pdf/0907.1254)</sup> 后来的分析证明了相合性，但仅在对学习过程作轻微修改之后，因此两篇论文使未修改估计量的地位悬而未决。<sup>[22](https://ar5iv.labs.arxiv.org/html/1211.2548)</sup> **M-PMC** 针对熵准则优化混合提议分布的混合权重和分量参数（包括多元斯图登 \( t \) 分量）。<sup>[12](https://ar5iv.labs.arxiv.org/html/0710.4242)</sup> **APIS** 使用一组具有确定性混合权重的高斯提议分布，无需重采样来防止混合退化，且计算成本不随迭代次数增长。<sup>[16](https://doi.org/10.1109/tsp.2015.2440215)</sup> **LAIS** 将 IS 叠加在 MCMC 输出之上，结合两个族以发挥其互补优势。<sup>[23](https://arxiv.org/pdf/2105.02579v4.pdf)</sup> **Convex AdaMC** 在指数族中参数化提议分布，并通过随机梯度下降求解所得的凸规划。<sup>[9](https://web.stanford.edu/~boyd/papers/pdf/adaMC.pdf)</sup> **CR-AIS** 对目标进行几何退火，在受限可行变化下最小化到目标的 KL 散度，采用恒定速率离散化调度和高效的 \( \alpha \)-散度实现。<sup>[24](https://proceedings.mlr.press/v202/goshtasbpour23a.html)</sup> 对于重尾目标，一种使用斯图登 \( t \) 提议分布的 AIS 算法通过匹配护送矩来适应位置和尺度，最小化目标与提议分布之间的 \( \alpha \)-散度。<sup>[25](https://proceedings.mlr.press/v238/guilmeau24a.html)</sup> 近期基于流的变体学习神经提议分布：Liouville 流重要性采样器（LFIS）训练一个时间依赖的速度场，沿退火路径输运样本，<sup>[26](https://arxiv.org/html/2405.06672)</sup> FAMIS 学习归一化流提议分布的非均匀混合用于稀有事件估计。<sup>[27](https://arxiv.org/abs/2609.21160)</sup>

## 应用

重要性采样起源于统计物理中的稀有事件估计，近似核粒子穿透屏蔽层的概率。<sup>[2](https://ar5iv.labs.arxiv.org/html/2102.05407)</sup> 在贝叶斯计算中，IS 为边际似然 \( Z = p(y) \) 等归一化常数提供了直接的估计，几乎所有边际似然估计量都显式或隐式地依赖于 IS 步骤。<sup>[3](https://arxiv.org/pdf/2502.07396v2)</sup> 带重采样的序贯 IS 是粒子滤波的基础，使 IS 方案成为信号处理跟踪问题的标准方法。<sup>[3](https://arxiv.org/pdf/2502.07396v2)</sup> AIS 也应用于贝叶斯信号处理、机器学习和最优控制中的难解期望。<sup>[19](https://doi.org/10.1007/s11222-020-09983-1)</sup> 在面向可靠性的稀有事件估计中，FAMIS 针对失效概率，无需预采样的失效数据或失效模式的先验知识。<sup>[27](https://arxiv.org/abs/2609.21160)</sup> 量化的增益取决于具体设定：优化旁路提议分布在二维测试问题中将估计量方差分别降至原来的 1/14.41 和 1/25.41。<sup>[6](https://www.sciencedirect.com/science/article/pii/S037704271730050X)</sup>

## 局限与替代方法

**权重退化**是其特征性失效模式：当提议分布适应为尖峰分布时，携带不可忽略权重的样本很少，而此类样本少于 \( d_{x} \) 时经验协方差矩阵变为奇异，使后续迭代退化；以局部 ESS 阈值为条件更新协方差可缓解此问题。<sup>[5](https://ar5iv.labs.arxiv.org/html/1806.00093)</sup> 在高维情形下 ESS 崩溃，迫使退火方案施加极端阻尼，且当提议分布远离目标时标准 ESS 估计可能低估蒙特卡洛误差。<sup>[28](https://arxiv.org/pdf/2404.18556)</sup> 缺乏尺度（协方差）自适应在高维且存在强未知相关时尤其有害。<sup>[29](https://doi.org/10.1016/j.jfranklin.2023.06.041)</sup> AMIS 带有有限 \( T \) 偏差，其依赖于迭代的方式错综复杂，<sup>[11](https://arxiv.org/pdf/0907.1254)</sup> 而基本自适应混合在渐近意义下丧失自适应性，因为归一化权重对所有核依概率收敛到 \( 1/D \)，这种“渐近缺乏自适应性”使采样器退化为均匀混合。<sup>[30](https://arxiv.org/abs/0708.0711)</sup> 正则化权重仅以增加偏差为代价降低方差，除非 \( \eta_{k} \to 1 \)。<sup>[10](https://proceedings.mlr.press/v151/korba22a/korba22a.pdf)</sup> 自适应控制变量方法作为另一条方差缩减途径，在相关性较弱时无济于事，而这正是稀有事件模拟中被积函数以高概率恰为零的典型情形。<sup>[6](https://www.sciencedirect.com/science/article/pii/S037704271730050X)</sup>

与 MCMC 相比，IS 为每个样本赋予确定性权重，消除了一种变异性来源，因此在相同静态提议分布下 IS 预期产生更低方差的估计量，当提议分布足够接近最优时甚至可优于理想蒙特卡洛。<sup>[3](https://arxiv.org/pdf/2502.07396v2)</sup> 相对于非自适应多重重要性采样，无论初始提议分布方差如何，自适应在已报告的基准中几乎总能改善结果。<sup>[16](https://doi.org/10.1109/tsp.2015.2440215)</sup> 相对于变分方法，边界是模糊的：DAIS 在其小阻尼极限下恢复为反向 KL 上的自然梯度下降，<sup>[28](https://arxiv.org/pdf/2404.18556)</sup> 而 \( \alpha \)-散度斯图登 \( t \) 采样器明确地将 AIS 与变分推断联系起来。<sup>[25](https://proceedings.mlr.press/v238/guilmeau24a.html)</sup>

## References

1. [Adaptive Population Importance Samplers: Learning From an Increasing Number of Samples (Martino et al., unified review)](https://oa.upm.es/46532/1/INVE_MEM_2016_255235.pdf)
2. [Advances in Importance Sampling](https://ar5iv.labs.arxiv.org/html/2102.05407)
3. [Optimality in importance sampling: a gentle survey (2025)](https://arxiv.org/pdf/2502.07396v2)
4. [Asymptotic optimality of adaptive importance sampling (Delyon & Portier, NeurIPS 2018)](https://proceedings.neurips.cc/paper_files/paper/2018/file/1bc0249a6412ef49b07fe6f62e6dc8de-Paper.pdf)
5. [Robust Covariance Adaptation in Adaptive Importance Sampling (CAIS)](https://ar5iv.labs.arxiv.org/html/1806.00093)
6. [Adaptive importance sampling Monte Carlo simulation for general multivariate probability laws (Kawai)](https://www.sciencedirect.com/science/article/pii/S037704271730050X)
7. [Global convergence of optimized adaptive importance samplers (Foundations of Data Science, 2024)](https://www.aimsciences.org/article/doi/10.3934/fods.2024003)
8. [On Exploration, Exploitation and Learning in Adaptive Importance Sampling (Daisee/HiDaisee)](https://arxiv.org/pdf/1810.13296v1.pdf)
9. [Adaptive Importance Sampling via Stochastic Convex Programming (Ryu & Boyd, Convex AdaMC)](https://web.stanford.edu/~boyd/papers/pdf/adaMC.pdf)
10. [Adaptive Importance Sampling meets Mirror Descent: a Bias-Variance Tradeoff (Korba et al., AISTATS 2022)](https://proceedings.mlr.press/v151/korba22a/korba22a.pdf)
11. [Adaptive Multiple Importance Sampling (AMIS), original paper (Cornuet, Marin, Mira, Robert)](https://arxiv.org/pdf/0907.1254)
12. [Adaptive Importance Sampling in General Mixture Classes (M-PMC)](https://ar5iv.labs.arxiv.org/html/0710.4242)
13. [An attempt to trace the birth of importance sampling (Andral, 2022)](https://ar5iv.labs.arxiv.org/html/2206.12286)
14. [O Cappé and colleagues (2004). Population Monte Carlo. Journal of Computational and Graphical Statistics.](https://doi.org/10.1198/106186004x12803)
15. [Olivier Cappé and colleagues (2008). Adaptive importance sampling in general mixture classes. Statistics and Computing.](https://doi.org/10.1007/s11222-008-9059-x)
16. [Luca Martino and colleagues (2015). An Adaptive Population Importance Sampler: Learning From Uncertainty. IEEE Transactions on Signal Processing.](https://doi.org/10.1109/tsp.2015.2440215)
17. [L. Martino and colleagues (2016). Layered adaptive importance sampling. Statistics and Computing.](https://doi.org/10.1007/s11222-016-9642-5)
18. [Bernard Delyon, François Portier (2021). Safe adaptive importance sampling: A mixture approach. The Annals of Statistics.](https://doi.org/10.1214/20-aos1983)
19. [Ömer Deniz Akyildiz, Joaquín Míguez (2021). Convergence rates for optimised adaptive importance samplers. Statistics and Computing.](https://doi.org/10.1007/s11222-020-09983-1)
20. [Monica F. Bugallo and colleagues (2017). Adaptive Importance Sampling: The past, the present, and the future. IEEE Signal Processing Magazine.](https://doi.org/10.1109/msp.2017.2699226)
21. [Optimized Population Monte Carlo (O-PMC)](https://arxiv.org/pdf/2204.06891)
22. [Consistency of the Adaptive Multiple Importance Sampling](https://ar5iv.labs.arxiv.org/html/1211.2548)
23. [MCMC-driven importance samplers (LAIS)](https://arxiv.org/pdf/2105.02579v4.pdf)
24. [Adaptive Annealed Importance Sampling with Constant Rate Progress (CR-AIS, ICML 2023)](https://proceedings.mlr.press/v202/goshtasbpour23a.html)
25. [Adaptive importance sampling for heavy-tailed distributions via α-divergence minimization (Guilmeau et al., AISTATS 2024)](https://proceedings.mlr.press/v238/guilmeau24a.html)
26. [Liouville Flow Importance Sampler (LFIS, 2024)](https://arxiv.org/html/2405.06672)
27. [Repulsive normalizing flow mixtures for adaptive importance sampling (FAMIS, Sep 2026 preprint)](https://arxiv.org/abs/2609.21160)
28. [Doubly adaptive importance sampling (DAIS, 2024)](https://arxiv.org/pdf/2404.18556)
29. [Víctor Elvira and colleagues (2023). Gradient-based adaptive importance samplers. Journal of the Franklin Institute.](https://doi.org/10.1016/j.jfranklin.2023.06.041)
30. [Convergence of adaptive mixtures of importance sampling schemes](https://arxiv.org/abs/0708.0711)
31. [Safe and adaptive importance sampling: a mixture approach](https://arxiv.org/abs/1903.08507)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/adaptive-importance-sampling

English original: https://www.edgepedia.org/adaptive-importance-sampling
