# 加权集合模拟

加权集合（WE）模拟是一种路径采样方法，它并行运行许多短小的无偏轨迹片段，并通过分裂与合并来调整它们的统计权重，从而以暴力模拟成本的一小部分来估计稀有事件和长时间尺度动力学。它能给出随机动力学——尤其是分子动力学（MD）——的速率常数、稳态通量、平衡布居数和过渡路径。普通的并行MD在大多数轨迹滞留的地方浪费算力；WE则将轨迹集中到采样不足的区域，同时保持权重以恢复正确的集合统计。综述报告称，WE对速率常数和平衡布居数的估计无偏，且精度高于普通并行模拟，并具有超线性扩展能力——例如，100个核心可以比单核快100倍以上地获得所需信息。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4168800/)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心循环 | 将所有行走者传播一个短时间间隔τ，然后重采样（分裂与合并）以维持轨迹分布<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)</sup> |
| 典型τ | 每次重采样步骤对应1–100 ps的MD<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC7213600/)</sup> |
| 每箱行走者数 | 单次运行中，每箱4–50个对速率常数最为高效<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC7213600/)</sup> |
| 速率常数 | 平均首次通过时间的倒数，以进入目标态的稳态概率通量形式获得<sup>[4](https://westpa.github.io/westpa/overview.html)</sup> |
| 无偏性 | WE对广泛的马尔可夫和非马尔可夫动力学以及任意时变分箱在统计上是精确的<sup>[5](https://doi.org/10.1063/1.3306345)</sup> |
| 旗舰软件 | WESTPA，一个免费的Python实现，可扩展至数千个CPU核心和GPU<sup>[6](https://westpa.github.io/westpa/)</sup> |

## 工作原理

每个行走者是一条携带统计权重的轨迹，所有行走者的权重之和为一。该过程交替进行两个步骤：（a）用任意无偏随机动力学将每个行走者传播一个时间间隔τ；（b）对轨迹进行重采样，以维持该时间点上的加权分布。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)</sup>在进度坐标中占据不足的区域，行走者被分裂：复制为若干子代，其权重之和等于父代的权重。在占据过多的区域，行走者被合并：一对行走者中的一个以正比于相对权重的概率被剪除，幸存者继承被剪除行走者的权重，从而守恒总权重。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)</sup>

由于重采样在重采样时刻保持了正确的轨迹分布，因此不会在后续演化中引入偏差；分箱甚至可以随时间变化或被随机选择。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2830257/)</sup>张、贾斯诺和祖克曼于2010年证明，该方法对一大类马尔可夫和非马尔可夫动力学及分箱程序在统计上是精确的，从而将WE重新表述为路径空间中的重采样。<sup>[5](https://doi.org/10.1063/1.3306345)</sup>对于稳态速率常数，平均首次通过时间（MFPT）通过Hill关系被重新表述为进入目标的稳态通量的倒数，而该稳态可以在远短于MFPT本身的时间尺度上达到。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC8378190/)</sup>为了在不假设马尔可夫性的情况下估计MFPT，箱与箱之间的转移概率用“颜色”标记——即最近占据的是哪个端点态（A或B）；这种历史追踪对于无偏的MFPT估计是必要的。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)</sup>标记后的表述保证了通量平衡，\( \mathrm{Flux}(A \to B \mid \alpha) = \mathrm{Flux}(B \to A \mid \beta) \)，其中速率常数 \( k_{AB} = \mathrm{Flux}(A \to B \mid \alpha) / p(\alpha) \)，且 \( p(\alpha) + p(\beta) = 1 \)。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4168800/)</sup>

## 实施方法

实践者选择一个进度坐标并沿其分箱，初始化M条轨迹，每条权重为\( 1/M \)，然后在每个时间间隔τ之后，在占据不足的箱中复制行走者（子代分摊父代的权重），在占据过多的箱中剪除行走者，保持总权重归一化为一。τ应当较短，只要检查轨迹的开销相对于运行动力学的成本保持较小即可。<sup>[4](https://westpa.github.io/westpa/overview.html)</sup>在实践中，WE运行普通的无偏MD片段，在τ之后停止，例如1–100 ps，并在每次复制或剪除步骤后自动调整权重。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC7213600/)</sup>

只需要对独立的慢坐标进行分箱，因为WE传播的是无偏轨迹片段；相关的慢坐标只需要一个分箱坐标，例如水中结合过程中的溶质间距离。<sup>[4](https://westpa.github.io/westpa/overview.html)</sup>自适应分箱可以在不知道目标态的情况下构建，例如作为参考构型周围的Voronoi元胞，反复重采样产生一种“统计棘轮”效应，提高了观察到过渡的机会。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2830257/)</sup>对于非平衡稳态，到达目标的轨迹被回收至初始态，保持相同的统计权重，速率常数即为进入目标的稳态通量。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jctc.1c01154)</sup>如果未达到稳态，由精细“微箱”构建的历史增强马尔可夫状态模型（haMSM）可在任意滞后时间提供无偏的速率估计；对于全原子蛋白质折叠使用了10 ps的滞后时间，而标准MSM大约需要10–100 ns。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8045600/)</sup>

三个参数主导成本和精度。第一，行走者数量：单次运行中每箱4–50条轨迹已被证明比每箱少于4条的多次运行对速率常数更为高效。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC7213600/)</sup>第二，WE相对于暴力方法的效率随稀有事件的有效自由能垒指数增长，这就是为什么最大的收益出现在最难的问题上。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC7213600/)</sup>WE无论参数如何都是无偏的，但糟糕的参数可能产生甚至比直接[蒙特卡洛](https://www.edgepedia.org/zh/monte-carlo)更差的方差。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC8378190/)</sup>对于误差估计，单次运行分析可能过于乐观；更安全的做法是运行超过两个的独立WE模拟，并以可观测量的离散程度作为误差的度量。<sup>[4](https://westpa.github.io/westpa/overview.html)</sup>

## 起源

该方法的现代形式化建立在祖克曼课题组及合作者的一系列论文之上。张、贾斯诺和祖克曼于2010年在《化学物理杂志》上确立了WE对一大类随机过程和分箱程序的统计精确性。<sup>[5](https://doi.org/10.1063/1.3306345)</sup>巴特、张和祖克曼同年引入了产生速率常数的稳态WE（WESS）模拟。<sup>[11](https://doi.org/10.1063/1.3456985)</sup>巴特和巴哈尔于2012年添加了用于自由能和首次通过率的自适应WE程序，<sup>[12](https://doi.org/10.1063/1.4748278)</sup>阿德尔曼和格拉贝于2013年开发了基于WE的弦方法。<sup>[13](https://doi.org/10.1063/1.4773892)</sup>苏亚雷斯及其同事于2014年报告了首个同时计算平衡和非平衡量的WE研究。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4168800/)</sup>软件通过WESTPA得以整合，兹维尔及其同事于2015年将其描述为一个可互操作、高度可扩展的软件包，<sup>[14](https://doi.org/10.1021/ct5010615)</sup>并由鲁索及其同事于2022年在WESTPA 2.0中进行了扩展。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jctc.1c01154)</sup>

## 变体

WESTPA（带并行化与分析的加权集合模拟工具包）是一个高性能Python实现，在MIT许可证下免费，可与任何随机动力学引擎接口，并可扩展至数千个CPU核心或GPU。<sup>[6](https://westpa.github.io/westpa/)</sup>WESTPA 2.0添加了最小自适应分箱（MAB）方案，通过标记领先、落后和瓶颈轨迹在每个重采样间隔后重新定位分箱。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jctc.1c01154)</sup>它还引入了一个广义重采样器，通过用户定义的组和奖励函数支持分箱和“无箱”策略，以及用于速率常数估计的RED方案，据报道对于蛋白质–蛋白质结合速率常数比原始WE方案效率高出25%以上。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jctc.1c01154)</sup>

在WESTPA之外，迪克森和布鲁克斯引入了WExplore，一种用于高维探索的层次化WE策略，<sup>[15](https://doi.org/10.1021/jp411479c)</sup>多尼亚普尔、鲁塞和迪克森引入了REVO，即通过变异优化对集合进行重采样。<sup>[16](https://doi.org/10.1063/1.5100521)</sup>雷和安德里乔阿埃将WE与里程碑法结合（WEM），<sup>[17](https://doi.org/10.1063/5.0008028)</sup>洛茨和迪克森发布了wepy软件框架。<sup>[18](https://doi.org/10.1021/acsomega.0c03892)</sup>机器学习方面的联系包括DeepWEST——由奥贾、塔库尔、安和阿马罗提出的深度学习动力学建模，<sup>[19](https://doi.org/10.1021/acs.jctc.2c00282)</sup>以及以WESTPA插件形式使用SPIB学习进度坐标的WE。<sup>[6](https://westpa.github.io/westpa/)</sup>由卡尼亚、韦伯、辛普森、阿里斯托夫和祖克曼开发的RiteWeight，通过每次迭代用新的随机聚类对轨迹片段进行迭代重加权，从尚未收敛的模拟数据中估计平稳分布，避免了现有重加权技术在构型空间中的离散化误差。<sup>[20](https://doi.org/10.1073/pnas.2529246123)</sup>CoWERA是一种无箱重采样算法，它按时间相干性——即朝目标前进的持续性——而非瞬时位置来优先排列轨迹；在chignolin和Trp-cage上，与传统分箱WE相比，它更快地稳定了速率估计并减少了运行间的变异性。<sup>[21](https://doi.org/10.1063/5.0320586)</sup>梁、弗雷齐及其同事在NTL9折叠的WE模拟中应用了进度坐标的无监督学习，<sup>[22](https://doi.org/10.1021/acs.jctc.4c01136)</sup>博斯、基林奇和迪克森展示了在将WE与马尔可夫状态模型结合时如何消除轨迹合并偏差，<sup>[23](https://doi.org/10.1021/acs.jctc.4c01141)</sup>普洛特尼科夫和安于2024年通过并行化优化了WESTPA重采样方法。<sup>[24](https://doi.org/10.1063/5.0197141)</sup>

## 应用

WE的应用涵盖蛋白质折叠、耦合折叠与结合、蛋白质–蛋白质结合、蛋白质–配体解离以及[SARS-CoV-2](https://www.edgepedia.org/zh/sars-cov-2)刺突蛋白开放，最后一个涉及五十万个原子和秒级时间尺度。<sup>[9](https://pubs.acs.org/doi/full/10.1021/acs.jctc.1c01154)</sup>

## 局限与替代方法

较大的WE箱可能包含内部自由能垒，其缓慢的内部弛豫会使转移概率和速率估计产生偏差；更精细的微箱可缓解这一问题。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC8045600/)</sup>如果使用一维分箱或界面而存在慢的[正交坐标](https://www.edgepedia.org/zh/orthogonal-coordinates)，完全采样正交空间会很慢，并可能使结果不可靠。<sup>[25](https://chonglab-pitt.github.io/assets/pdf/weighted-ensemble/Chong%20et%20al.%20-%202017%20-%20Path-sampling%20strategies%20for%20simulating%20rare%20event.pdf)</sup>分裂与合并步骤还会使轨迹相关，降低信息含量——可能降至100次中只有一次真正独立的过渡——误差分析必须考虑到这一点。<sup>[1](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)</sup><sup> • </sup><sup>[25](https://chonglab-pitt.github.io/assets/pdf/weighted-ensemble/Chong%20et%20al.%20-%202017%20-%20Path-sampling%20strategies%20for%20simulating%20rare%20event.pdf)</sup>

考虑轨迹历史的相关路径采样方法包括前向通量采样、动态重要性采样、过渡路径采样（TPS）和过渡界面采样。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2830257/)</sup>WE以固定时间间隔检查轨迹，这使其能够直接与许多MD引擎互操作，而基于界面的方法必须捕捉穿越边界的轨迹。<sup>[25](https://chonglab-pitt.github.io/assets/pdf/weighted-ensemble/Chong%20et%20al.%20-%202017%20-%20Path-sampling%20strategies%20for%20simulating%20rare%20event.pdf)</sup>

## References

1. [Weighted Ensemble Simulation: Review of Methodology, Applications, and Software (Zuckerman & Chong, Annual Review of Biophysics 2017)](https://www.annualreviews.org/content/journals/10.1146/annurev-biophys-070816-033834)
2. [Simultaneous Computation of Dynamical and Equilibrium Information Using a Weighted Ensemble of Trajectories (Suárez et al., 2014)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4168800/)
3. [A Suite of Tutorials for the WESTPA Rare-Events Sampling Software (LiveCoMS)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7213600/)
4. [Overview of Weighted Ensemble Simulation: Path-sampling, Steady States, Equilibrium (Zuckerman, WESTPA documentation)](https://westpa.github.io/westpa/overview.html)
5. [Bin W. Zhang, David Jasnow, Daniel M. Zuckerman (2010). The “weighted ensemble” path sampling method is statistically exact for a broad class of stochastic processes and binning procedures. The Journal of Chemical Physics.](https://doi.org/10.1063/1.3306345)
6. [WESTPA homepage](https://westpa.github.io/westpa/)
7. [The 'weighted ensemble' path sampling method is statistically exact for a broad class of stochastic processes and binning procedures (Zhang, Jasnow & Zuckerman, J. Chem. Phys. 2010)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2830257/)
8. [Optimizing weighted ensemble sampling of steady states (Aristoff, Zuckerman et al.)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8378190/)
9. [WESTPA 2.0: High-Performance Upgrades for Weighted Ensemble Simulations and Analysis of Longer-Timescale Applications (J. Chem. Theory Comput.)](https://pubs.acs.org/doi/full/10.1021/acs.jctc.1c01154)
10. [Accelerated estimation of long-timescale kinetics from weighted ensemble simulation via non-Markovian 'microbin' analysis (haMSM) (Suárez et al.)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8045600/)
11. [Divesh Bhatt, Bin W. Zhang, Daniel M. Zuckerman (2010). Steady-state simulations using weighted ensemble path sampling. The Journal of Chemical Physics.](https://doi.org/10.1063/1.3456985)
12. [Divesh Bhatt, Ivet Bahar (2012). An adaptive weighted ensemble procedure for efficient computation of free energies and first passage rates. The Journal of Chemical Physics.](https://doi.org/10.1063/1.4748278)
13. [Joshua L. Adelman, Michael Grabe (2013). Simulating rare events using a weighted ensemble-based string method. The Journal of Chemical Physics.](https://doi.org/10.1063/1.4773892)
14. [Matthew C. Zwier and colleagues (2015). WESTPA: An Interoperable, Highly Scalable Software Package for Weighted Ensemble Simulation and Analysis. Journal of Chemical Theory and Computation.](https://doi.org/10.1021/ct5010615)
15. [Alex Dickson, Charles L. Brooks (2014). WExplore: Hierarchical Exploration of High-Dimensional Spaces Using the Weighted Ensemble Algorithm. The Journal of Physical Chemistry B.](https://doi.org/10.1021/jp411479c)
16. [Nazanin Donyapour, Nicole M. Roussey, Alex Dickson (2019). REVO: Resampling of ensembles by variation optimization. The Journal of Chemical Physics.](https://doi.org/10.1063/1.5100521)
17. [Dhiman Ray, Ioan Andricioaei (2020). Weighted ensemble milestoning (WEM): A combined approach for rare event simulations. The Journal of Chemical Physics.](https://doi.org/10.1063/5.0008028)
18. [Samuel D. Lotz, Alex Dickson (2020). Wepy: A Flexible Software Framework for Simulating Rare Events with Weighted Ensemble Resampling. ACS Omega.](https://doi.org/10.1021/acsomega.0c03892)
19. [Anupam Anand Ojha and colleagues (2023). DeepWEST: Deep Learning of Kinetic Models with the Weighted Ensemble Simulation Toolkit for Enhanced Sampling. Journal of Chemical Theory and Computation.](https://doi.org/10.1021/acs.jctc.2c00282)
20. [Sagar Kania and colleagues (2026). Randomized iterative trajectory reweighting for steady-state distributions without discretization error. Proceedings of the National Academy of Sciences.](https://doi.org/10.1073/pnas.2529246123)
21. [CoWERA: A temporal coherence guided binless resampling algorithm for weighted-ensemble based estimation of rare-event kinetics (mirror page; publisher copy not retrieved)](https://doi.org/10.1063/5.0320586)
22. [Jeremy M. G. Leung and colleagues (2025). Unsupervised Learning of Progress Coordinates during Weighted Ensemble Simulations: Application to NTL9 Protein Folding. Journal of Chemical Theory and Computation.](https://doi.org/10.1021/acs.jctc.4c01136)
23. [Samik Bose, Ceren Kilinc, Alex Dickson (2025). Markov State Models with Weighted Ensemble Simulation: How to Eliminate the Trajectory Merging Bias. Journal of Chemical Theory and Computation.](https://doi.org/10.1021/acs.jctc.4c01141)
24. [Dennis Plotnikov, Surl-Hee Ahn (2024). Optimization of the resampling method in the weighted ensemble simulation toolkit with parallelization and analysis (WESTPA). The Journal of Chemical Physics.](https://doi.org/10.1063/5.0197141)
25. [Path-sampling strategies for simulating rare events in biomolecular systems (Chong et al., 2017)](https://chonglab-pitt.github.io/assets/pdf/weighted-ensemble/Chong%20et%20al.%20-%202017%20-%20Path-sampling%20strategies%20for%20simulating%20rare%20event.pdf)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Numerical methods and approximation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/weighted-ensemble-simulation

English original: https://www.edgepedia.org/weighted-ensemble-simulation
