# 即时概率增强采样

**OPES**（On-the-fly Probability Enhanced Sampling，即时概率增强采样）是一种用于分子动力学模拟的增强采样方法。它在模拟过程中通过即时估计概率分布来逐步构建偏置势，驱动系统去采样某个选定的目标分布，而非平衡态玻尔兹曼分布。该方法由时任苏黎世联邦理工学院及卢加诺瑞士意大利语大学计算物理学家米凯莱·因韦尔尼齐（Michele Invernizzi）与意大利技术研究院的米凯莱·帕里内洛（Michele Parrinello）共同提出，作为一种统一框架，将增强采样方法中最流行的两大家族——类元动力学的自适应偏置与扩展系综（类副本交换）采样——置于同一基础之上。<sup>[1](https://arxiv.org/abs/2101.06991)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC9202311/)</sup><sup> • </sup><sup>[16](https://arxiv.org/html/2101.06991v1)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由米凯莱·因韦尔尼齐与米凯莱·帕里内洛提出；方法论文于2021年1月18日提交至arXiv<sup>[1](https://arxiv.org/abs/2101.06991)</sup> |
| 核心思想 | 通过重加权即时估计集体变量的概率分布，再由该估计定义偏置势，而非像元动力学那样累加高斯山丘<sup>[3](https://www.nature.com/articles/s41467-026-74165-y)</sup> |
| 偏置公式 | \( V(\mathbf{x}) = -\frac{1}{\beta}\log\frac{p^{\text{tg}}(\mathbf{x})}{P(\mathbf{x})} \)，其中 \( p^{\text{tg}} \) 为目标分布，\( P(\mathbf{x}) \propto e^{-\beta U(\mathbf{x})} \) 为平衡分布<sup>[4](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s.html)</sup> |
| 输入参数 | 所需参数很少：待克服的自由能垒的估计高度（由此设定偏置因子γ与正则化ε）、偏置更新频率，以及初始高斯带宽<sup>[3](https://www.nature.com/articles/s41467-026-74165-y)</sup> |
| 主要变体 | OPES_METAD与OPES_METAD_EXPLORE（类元动力学目标）以及OPES_EXPANDED（扩展系综目标），均在PLUMED模块中实现<sup>[4](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s.html)</sup> |
| 实际表现 | 偏置迅速趋于准静态，因此自由能及其他可观测量可通过简单重加权恢复<sup>[4](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s.html)</sup> |

## 方法原理

在自适应偏置增强采样中，一个作为少数集体变量（CVs）函数的外部偏置势 \( V(\mathbf{s}) \) 被加到系统能量上，以驱动亚稳态之间的跃迁，而偏置则依据底层自由能面逐步修改。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC9202311/)</sup> OPES属于这样一类方法：先固定一个待采样的目标分布 \( p_{\text{tg}}(\mathbf{s}) \)，再构造一个驱动系统趋向该分布的偏置；偏置由模拟过程中通过对轨迹数据进行即时重加权所估计的平衡分布 \( p(\mathbf{s}) \) 来定义。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC12810258/)</sup>

**与元动力学的区别。** OPES并不像元动力学及其变体那样通过累加高斯山丘直接构造偏置势，而是通过重加权估计集体变量的概率分布，再由此定义偏置势。在类井温形式中，第n步的偏置为

\[ V_{n}(\xi) = \left(1 - 1/\gamma\right) \frac{1}{\beta} \ln\left(\frac{p_{n}(\xi)}{Z_{n}} + \epsilon\right), \]<sup>[17](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s__m_e_t_a_d.html)</sup>

其中γ为偏置因子，ε为概率的正则化常数；二者均由待克服自由能垒的估计高度确定。<sup>[3](https://www.nature.com/articles/s41467-026-74165-y)</sup> 由于偏置迅速趋于准静态，所需性质（如自由能）可通过简单重加权计算，自由能剖面既可由重加权获得，也可直接由准静态偏置获得。<sup>[4](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s.html)</sup>

该方法在设计上力求使用简便，并对次优的集体变量具有稳健性。与元动力学相比，它能更快收敛到准静态偏置，处理多维集体变量也更高效。<sup>[6](https://www.plumed.org/doc-v2.9/user-doc/html/masterclass-22-03.html)</sup> 它对偏置因子的选择也仅表现出很小的敏感性，因为偏置因子并不影响OPES势的增长速率。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC12243082)</sup>

## 变体

**OPES-explore。** 当集体变量次优时，存在探索—收敛的权衡：收敛快的偏置导致跃迁次数较少，而收敛较慢的偏置能更高效地探索相空间，但可能需要长得多的时间才能给出准确的自由能估计。原始OPES侧重于快速收敛，这使其对集体变量质量敏感；因韦尔尼齐与帕里内洛因此提出了OPES-explore，它以收敛速度为代价，侧重于快速逃离亚稳态，并在原型系统上表明其优于流行的元动力学方法。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC9202311/)</sup> 这种对集体变量质量的敏感性在开发机器学习集体变量时是一种有用的性质，OPES已在此类情境中多次得到应用。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC9202311/)</sup>

**OPES_EXPANDED。** 类副本交换的目标分布是一种扩展系综，定义为若干相互重叠的概率分布之和，\( p^{\text{tg}}_{\{\lambda\}}(\mathbf{x}) = \frac{1}{N_{\{\lambda\}}} \sum_{\lambda} P_{\lambda}(\mathbf{x}) \)；一个典型例子是温度扩展系综，其中每个 \( P_{\lambda} \) 都是同一系统处于不同温度下的分布。此类目标通过扩展集体变量（ECVs）定义，并用OPES_EXPANDED动作进行采样。<sup>[6](https://www.plumed.org/doc-v2.9/user-doc/html/masterclass-22-03.html)</sup> 在此框架中以势能作为集体变量，单个模拟副本即可借助收敛的偏置势高效采样多温度系综（OPES multiT）。<sup>[8](https://www.researchgate.net/publication/347002109_Unified_Approach_to_Enhanced_Sampling)</sup>

**OneOPES。** 一种由瓦莱里奥·里齐（Valerio Rizzi）、西莫内·奥雷利（Simone Aureli）、纳尔杰斯·安萨里（Narjes Ansari）与弗朗切斯科·路易吉·杰尔瓦西奥（Francesco Luigi Gervasio）提出的组合式副本交换策略（JCTC 2023），它在编号较高的副本中使用OPES Explore，使副本0获得采样多样性并给出收敛更好的自由能估计；该方法在丙氨酸二肽、胰蛋白酶—苯甲脒结合以及折叠蛋白Chignolin上进行了测试。<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC10500989/)</sup><sup> • </sup><sup>[10](https://github.com/valeriorizzi/OneOPES_tutorial)</sup>

**混合方法。** Lambda-ABF-OPES将Lambda-自适应偏置力方法与OPES相结合，用于计算炼金术绝对结合自由能；当与AMOEBA可极化力场配合使用时，其采样速度与效率可比单独的Lambda-ABF高出多达九倍。<sup>[11](https://arxiv.org/abs/2502.17233)</sup>

## 软件与应用

OPES作为PLUMED模块提供，须在构建时以 `--enable-modules=opes` 启用。<sup>[4](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s.html)</sup> 它已从PLUMED移植到Colvars（2024-10-16版），后者集成于NAMD 3.1alpha2中，<sup>[3](https://www.nature.com/articles/s41467-026-74165-y)</sup> 而OPES与OPES-explore的OpenMM实现则以openmm-opes包的形式分发。<sup>[12](https://pypi.org/project/openmm-opes/)</sup> 方法作者维护的参考实现仓库将该方法描述为“反思元动力学：从偏置势到概率分布”。<sup>[13](https://github.com/invemichele/opes)</sup>

应用涵盖药物发现情境中的自由能计算，在这些情境中，OPES被用作基于集体变量的自适应增强采样的基线，因为它提供了一个经过充分检验的即时偏置构建实现，且超参数很少，例如势垒参数，可直接控制偏置的强度与演化。<sup>[14](https://doi.org/10.1021/acs.jctc.6c00120)</sup> 在QM/MM结合自由能工作中，用OPES计算的一个分子的自由能差在约2,000个样本内收敛，另一个分子则约需 \( 10^{5} \) 个样本。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC10655219/pdf/pnas.202304308.pdf)</sup>

## 对比基准中的表现

《自然·通讯》上的一项比较研究在五个有实验依据的生物分子过程中评估了OPES与副本交换伞形采样、井温元动力学以及WTM-eABF：配体结合、构象变化、激酶激活、膜渗透与离子传导。研究发现，方法的表现并不能跨生物学情境迁移，每种方法都表现出特征性的失效模式，这些模式在低维模型系统中不可见，但在真实景观中却影响重大。该研究建议，OPES导出的自由能剖面应始终辅以跨方法一致性检验或与独立的、延长时间尺度的参考模拟进行比较，对于相关能垒事先未知的新系统尤其如此。<sup>[3](https://www.nature.com/articles/s41467-026-74165-y)</sup>

## References

1. [Michele Invernizzi (2021). OPES: On-the-fly Probability Enhanced Sampling Method. arXiv:2101.06991.](https://arxiv.org/abs/2101.06991)
2. [Michele Invernizzi, Michele Parrinello (2022). Exploration vs Convergence Speed in Adaptive-Bias Enhanced Sampling. J. Chem. Theory Comput. 18(6):3988–3996.](https://pmc.ncbi.nlm.nih.gov/articles/PMC9202311/)
3. [Convergence is not correctness: context-dependent performance of enhanced-sampling methods across biological complexity. Nature Communications (2026).](https://www.nature.com/articles/s41467-026-74165-y)
4. [PLUMED documentation: OPES (On-the-fly Probability Enhanced Sampling).](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s.html)
5. [Enhanced Sampling in the Age of Machine Learning: Algorithms and Applications. Chemical Reviews.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12810258/)
6. [PLUMED Masterclass 22.3: OPES method.](https://www.plumed.org/doc-v2.9/user-doc/html/masterclass-22-03.html)
7. [Combining Fast Exploration with Accurate Reweighting in the OPES-eABF Hybrid Sampling Method.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12243082)
8. [Invernizzi, Piaggi, Parrinello. Unified Approach to Enhanced Sampling.](https://www.researchgate.net/publication/347002109_Unified_Approach_to_Enhanced_Sampling)
9. [Rizzi et al. OneOPES, a Combined Enhanced Sampling Method to Rule Them All. J. Chem. Theory Comput. (2023).](https://pmc.ncbi.nlm.nih.gov/articles/PMC10500989/)
10. [OneOPES tutorial repository (Valerio Rizzi et al.), GitHub.](https://github.com/valeriorizzi/OneOPES_tutorial)
11. [Ansari et al. (2025). Lambda-ABF-OPES: Faster Convergence with High Accuracy in Alchemical Free Energy Calculations. arXiv:2502.17233.](https://arxiv.org/abs/2502.17233)
12. [openmm-opes, PyPI.](https://pypi.org/project/openmm-opes/)
13. [invemichele/opes, GitHub: Rethinking Metadynamics.](https://github.com/invemichele/opes)
14. [Bayesian Umbrella Quadrature Automates Free-Energy Calculations Across Diverse Molecular Systems and Processes. J. Chem. Theory Comput.](https://doi.org/10.1021/acs.jctc.6c00120)
15. [Accelerated QM/MM binding free energy calculations, PNAS (2023).](https://pmc.ncbi.nlm.nih.gov/articles/PMC10655219/pdf/pnas.202304308.pdf)
16. [OPES: On-the-fly Probability Enhanced Sampling Method, arxiv.org](https://arxiv.org/html/2101.06991v1)
17. [PLUMED: OPES_METAD](https://www.plumed.org/doc-v2.9/user-doc/html/_o_p_e_s__m_e_t_a_d.html)

---
*Initially written Oct 22, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Numerical methods in physics › Molecular and particle simulation methods › Enhanced sampling and free-energy methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/on-the-fly-probability-enhanced-sampling

English original: https://www.edgepedia.org/on-the-fly-probability-enhanced-sampling
