# 3N-MCTS

**3N-MCTS**是一种计算机辅助合成规划算法，它将[蒙特卡洛树搜索](https://www.edgepedia.org/zh/monte-carlo-tree-search)（MCTS）与三个深度神经网络相结合，用于寻找逆合成路线——在此过程中，目标分子被递归地拆解为更简单的前体，直至抵达已知的砌块。该算法由明斯特大学（University of Münster）和上海大学的Marwin H. S. Segler、Mike Preuss与Mark P. Waller于2018年3月29日发表在《自然》（*Nature*）上的论文《用深度神经网络与符号AI规划化学合成》中提出。<sup>[1](https://www.nature.com/articles/nature25978)</sup><sup> • </sup><sup>[2](https://openalex.org/W2747592475)</sup>

| 关键事实 | 详情 |
|---|---|
| 发表 | Segler, Preuss & Waller, *Nature* 555, 604–610 (2018)；2017年8月14日收稿，2018年1月31日接受<sup>[1](https://www.nature.com/articles/nature25978)</sup> |
| 组成 | MCTS加一个扩展策略网络、一个推演策略网络和一个范围过滤器网络<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup> |
| 训练数据 | 基本涵盖2015年之前发表的所有有机反应，提取自Reaxys；约1240万个单步反应<sup>[1](https://www.nature.com/articles/nature25978)</sup><sup> • </sup><sup>[4](https://doi.org/10.1021/acs.jcim.5c00417)</sup> |
| 主要结果 | 解出的分子数量几乎是传统基于规则和启发式搜索方法的两倍，速度快三十倍<sup>[1](https://www.nature.com/articles/nature25978)</sup> |
| 测试表现 | 在2015年及之后首次报道的497个分子上：每个分子5秒内解出超过80%，60秒内解出92%；启发式最佳优先搜索60秒内仅解出4%<sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup> |
| 盲测 | 45名化学家在双盲AB测试中判定计算机生成的路线与文献路线相当；68.2%的人更青睐3N-MCTS路线而非基线系统（P = 0.01）<sup>[1](https://www.nature.com/articles/nature25978)</sup><sup> • </sup><sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup> |
| 影响 | 基于MCTS的规划器（如ASKCOS和AiZynthFinder）的前身；后来在商业化的Reaxys平台中实现<sup>[6](https://pubs.rsc.org/en/content/articlepdf/2022/sc/d2sc05089g)</sup><sup> • </sup><sup>[7](https://publication-theses.unistra.fr/public/theses_doctorat/2023/AKHMETSHIN_Tagir_2023_ED222.pdf)</sup> |

## 背景

逆合成是化学家用来规划小分子有机化合物（如药物和精细化学品）合成的技术，它通过将目标分子剖析为更简单的前体来构建搜索树，直至获得可购买的砌块。搜索空间大到难以处理，而对逆合成搜索状态的评估也很困难。<sup>[8](https://arxiv.org/abs/1702.00020)</sup>早期的计算机辅助系统以手工编码合成规则，这种方法速度慢，且作者指出其结果质量不令人满意；更早期的自动化系统从未以统计学方式在大规模上得到验证。<sup>[1](https://www.nature.com/articles/nature25978)</sup><sup> • </sup><sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup>

该算法脱胎于同一课题组2017年的神经-符号单步模型——该模型在近一百万反应的验证集上取得了95%的逆合成前10项预测准确率——以及2017年的一篇预印本《学习规划化学合成》，后者在约1200万反应上报告了相同的树搜索架构。<sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/1708.04202)</sup>

## 架构

名称中的“3N”指引导搜索的三个神经网络。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup>

1. 扩展策略是一个相对较慢的神经-符号模型，为节点挑选最有希望的候选转化，从而降低树的分支因子。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup><sup> • </sup><sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup>
2. 推演策略是同一单步模型的更快轻量变体，在模拟过程中迭代探测新分子，以估计某节点在固定步数内通向以可购买起始原料为终点的完整路线的可能性。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup><sup> • </sup><sup>[10](https://ischemist.com/syntax-of-matter/full-text)</sup>
3. 范围过滤器是一个二值网络，检查每个提出的反应是否真的发生，不太可能发生的反应在扩展过程中被丢弃。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup><sup> • </sup><sup>[11](https://academic.oup.com/bib/article/23/1/bbab391/6375056)</sup>

所有包含反应中心信息的反应规则均自动提取自2015年之前发表在Reaxys上的反应；网络自己学习规则，而非依赖专家编码。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup><sup> • </sup><sup>[1](https://www.nature.com/articles/nature25978)</sup>由于反应数据库很少记录哪些反应**不**发生，过滤器使用算法生成的负样本进行训练：将模板应用于已知反应物，任何数据库中未报道的产物被标记为无效。<sup>[10](https://ischemist.com/syntax-of-matter/full-text)</sup>

搜索本身遵循四个迭代阶段：选择、扩展、推演和更新。在选择阶段，用平衡高评分节点利用与未访问节点探索的策略，选出最有希望的未扩展节点，所用的是AlphaGo中使用的应用于树的置信上限（UCT）的变体。扩展经过滤，推演根据是否抵达可购买砌块赋予奖励值，更新阶段则沿合成路径传播这些值。<sup>[11](https://academic.oup.com/bib/article/23/1/bbab391/6375056)</sup><sup> • </sup><sup>[6](https://pubs.rsc.org/en/content/articlepdf/2022/sc/d2sc05089g)</sup>

## 定量评估

作者在2015年及之后首次报道的497个多样化分子上评估了[搜索算法](https://www.edgepedia.org/zh/search-algorithm)，规划通往已知砌块的路线。MCTS在每分子5秒的限制下解出测试集的80%以上，而由神经策略引导的最佳优先搜索（神经BFS）为40%，启发式BFS为0%；在每分子60秒时，三者分别为92%、71%和4%。即使在每分子20分钟的运行时间下，两种BFS变体也无法与MCTS竞争。<sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup>

在不受限的运行时间下，各算法收敛到相同性能：测试集总体解出87.12%，使用神经代价函数的BFS达到84.24%，传统启发式BFS解出45.6%，平均需要433.4秒。作者将实际时间限制下的差距归因于各组成部分——树构建、策略引导的扩展和推演——的贡献，并报告了对MCTS参数选择的稳健性。<sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup>

## 双盲路线质量测试

由于早期逆合成系统因提出化学家认为不合理的步骤而受到批评，作者开展了两次双盲AB测试，参与者为来自中国和德国两家研究所的45名研究生水平的有机化学家，参与者与主持人均不知晓路线的来源，测试对象为2015年及之后首次发表的随机选取的类药化合物。<sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup>

在第一次测试中，化学家在专家化学家给出的文献路线与同一目标的3N-MCTS路线之间做选择，平均而言他们认为计算机生成的路线与文献路线相当。<sup>[1](https://www.nature.com/articles/nature25978)</sup>在第二次测试中，将3N-MCTS与使用相同转化规则但缺少策略网络和范围过滤器的启发式最佳优先搜索基线进行比较，参与者以68.2%对31.8%显著更青睐MCTS路线（P = 0.01）。作者将这一偏好归因于不合理步骤出现频率更低。<sup>[5](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)</sup>

## 局限性

训练集的覆盖范围限制了对天然产物的准确率，而对对映异构现象——手性结果的立体化学——的定量预测在该模型中仍是一个未解决的问题。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)</sup>后续工作提出了更多批评：由于每个树节点是一组分子而非单个分子，搜索树难以表示和扩展，且算法未充分利用历史上的优秀规划；Chen等人为此提出了Retro*，一种由在既往规划经验上训练的网络引导的与或树搜索。<sup>[11](https://academic.oup.com/bib/article/23/1/bbab391/6375056)</sup>

## 影响

3N-MCTS被视为确立了现代范式的工作——在搜索循环内用学习组件取代手工设计的启发式——并且是神经单步逆合成模型与MCTS在多步规划中的首次结合。<sup>[10](https://ischemist.com/syntax-of-matter/full-text)</sup><sup> • </sup><sup>[6](https://pubs.rsc.org/en/content/articlepdf/2022/sc/d2sc05089g)</sup>MCTS方法及其变体随后在ASKCOS中实现，后者将树搜索并行化并加入了条件推荐器；也在[AiZynthFinder](https://www.edgepedia.org/zh/aizynthfinder)中实现，后者是首个完全开源的基于MCTS的规划器，并引入了PaRoutes基准。<sup>[6](https://pubs.rsc.org/en/content/articlepdf/2022/sc/d2sc05089g)</sup><sup> • </sup><sup>[7](https://publication-theses.unistra.fr/public/theses_doctorat/2023/AKHMETSHIN_Tagir_2023_ED222.pdf)</sup>该工具后来在商业化的Reaxys平台中实现。<sup>[7](https://publication-theses.unistra.fr/public/theses_doctorat/2023/AKHMETSHIN_Tagir_2023_ED222.pdf)</sup>Kishimoto等人后来证明，Segler等人使用的MCTS变体在逆合成成功率上显著优于深度优先证明数搜索。<sup>[12](https://doi.org/10.1039%2FD0SC04184J)</sup>

## References

1. [Segler, M., Preuss, M. & Waller, M. Planning chemical syntheses with deep neural networks and symbolic AI. *Nature* 555, 604–610 (2018).](https://www.nature.com/articles/nature25978)
2. [OpenAlex record for the Segler et al. 2018 Nature article.](https://openalex.org/W2747592475)
3. [Feng, F., Lai, L. & Pei, J. Computational Chemical Synthesis Analysis and Pathway Design. *Frontiers in Chemistry* 6, 199 (2018).](https://pmc.ncbi.nlm.nih.gov/articles/PMC5994992/)
4. [Enhancing Monte Carlo Tree Search for Retrosynthesis. *Journal of Chemical Information and Modeling* (2025).](https://doi.org/10.1021/acs.jcim.5c00417)
5. [Segler, M., Preuss, M. & Waller, M. Planning chemical syntheses with deep neural networks and symbolic AI (full text), Gale Academic OneFile.](https://go.gale.com/ps/i.do?asid=bc12b73d&id=GALE%7CA532684501&it=r&p=AONE&u=googlescholar&v=2.1)
6. [Monte Carlo tree search for multi-step planning (review section). *Chemical Science* 14, 226–244 (2023).](https://pubs.rsc.org/en/content/articlepdf/2022/sc/d2sc05089g)
7. [Akhmetshin, T. Self-learning-based synthesis planning, doctoral thesis, University of Strasbourg (2023).](https://publication-theses.unistra.fr/public/theses_doctorat/2023/AKHMETSHIN_Tagir_2023_ED222.pdf)
8. [Segler, M., Preuss, M. & Waller, M. Towards "AlphaChem": Chemical Synthesis Planning with Tree Search and Deep Neural Network Policies. arXiv:1702.00020 (2017).](https://arxiv.org/abs/1702.00020)
9. [Segler, M., Preuss, M. & Waller, M. Learning to Plan Chemical Syntheses. arXiv:1708.04202 (2017).](https://arxiv.org/abs/1708.04202)
10. [The Syntax of Matter: Synthesis Planning as the Foundation of Generative Chemistry.](https://ischemist.com/syntax-of-matter/full-text)
11. [Dong, J. et al. Deep learning in retrosynthesis planning: datasets, models and tools. *Briefings in Bioinformatics* 23, bbab391 (2022).](https://academic.oup.com/bib/article/23/1/bbab391/6375056)
12. [Towards efficient discovery of green synthetic pathways with Monte Carlo tree search and reinforcement learning. *Chemical Science* (2020).](https://doi.org/10.1039%2FD0SC04184J)

---
*Initially written Oct 22, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Applied AI, people, and society › AI by application domain › AI in science and research

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/3n-mcts

English original: https://www.edgepedia.org/3n-mcts
