# 计算机辅助合成规划

**计算机辅助合成规划**（Computer-assisted synthesis planning，CASP），亦称计算机辅助合成设计，是利用软件——以及近年来的机器学习模型——来自动化逆合成分析：将目标分子递归地拆解为更简单的前体，直至找到通往市售起始原料的路线。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC13262262/)</sup> 该领域始于 E. J. Corey 在 20 世纪 60 年代的构想，以及 1965 年启动的第一个有文献记载的研究项目 Dendral，此后便从手工编码的反应规则，转向了在数百万条已发表反应上训练的数据驱动模型。<sup>[2](https://onlinelibrary.wiley.com/doi/full/10.1002%2Fanie.201506101)</sup><sup> • </sup><sup>[3](https://link.springer.com/article/10.1186/s13321-023-00678-z)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 自动化逆合成分析，通常是在多步搜索算法中递归应用单步逆合成模型，将目标分子简化为市售起始原料<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC13262262/)</sup> |
| 起源 | 首个有文献记载的项目于 1965 年启动（Dendral）；CASP 最初由 E. J. Corey 于 20 世纪 60 年代提出构想，并在 LHASA 中实现<sup>[2](https://onlinelibrary.wiley.com/doi/full/10.1002%2Fanie.201506101)</sup><sup> • </sup><sup>[3](https://link.springer.com/article/10.1186/s13321-023-00678-z)</sup> |
| 标准架构 | 三个模块：反应模板与应用规则数据库、搜索可能合成路线的算法，以及现货分子数据库<sup>[3](https://link.springer.com/article/10.1186/s13321-023-00678-z)</sup> |
| 两大家族模型 | 基于模板的模型应用预定义的反应规则；无模板模型端到端地生成反应物分子，如 IBM RXN 的序列到序列 Transformer<sup>[4](https://www.nature.com/articles/s41467-022-35422-y)</sup> |
| 训练规模 | 基于模板的规划工具已在多达 1750 万条反应的数据集上完成训练<sup>[5](https://pubmed.ncbi.nlm.nih.gov/32110367/)</sup> |
| 已知缺陷 | CASP 工具常常无法复现文献报道的路线，原因要么是前体根本未被提出，要么是其排名过低，在搜索过程中无法被发现<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC13262262/)</sup> |
| 评估争议 | 可解性指标常常超过 99%，却只衡量拓扑连通性，这促使人们提出新的有效性层级和标准化基准<sup>[6](https://batistalab.com/publications/syntax-of-matter)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/2512.07079)</sup> |

## 起源

逆合成是一种反向规划合成路线的技术，它将目标有机分子还原为一系列越来越简单的前体，最终指向市售起始原料。传统上，这项任务依赖合成化学家的知识、经验和直觉，而系统化方法的缺失使复杂结构难以攻克；例如，维生素 B12 的合成需要 100 多位化学家近 12 年的协作努力。<sup>[8](https://www.sciencedirect.com/science/article/pii/S2211339821000538)</sup>

**早期程序。** 最早的 CASP 尝试之一来自 E. J. Corey 及其合作者，他们试图用一种名为 PATRAN（PAttern TRANslator，模式翻译器）的语言来编码有机化学的规则；尽管该语言最终未能超越合成分析逻辑与启发式方法（LHASA）的路径，但它推动了至今仍在使用的编码化工作。<sup>[9](https://pubs.rsc.org/en/content/articlehtml/2021/re/d0re00340a)</sup> Corey 等人还建立了大部分至今仍构成基于模板的方法之骨干的框架。<sup>[8](https://www.sciencedirect.com/science/article/pii/S2211339821000538)</sup> 20 世纪 70 年代和 80 年代又诞生了更多程序，但到 1996 年的一项评估时，经过二十多年的持续努力，依赖大型合成子和转换库的计算机辅助合成规划仍未能牢固确立自身地位，经典方法显然未能满足制备化学家的需求。<sup>[10](https://onlinelibrary.wiley.com/doi/abs/10.1002/anie.199526131)</sup> 2016 年的一篇综述指出，即便计算机已经掌握了其他一度被视为人类专属的技能，这一挑战仍为自己赢得了“不可能的任务”的名声。<sup>[2](https://onlinelibrary.wiley.com/doi/full/10.1002%2Fanie.201506101)</sup>

## 现代系统如何工作

一个通用的逆合成规划框架由反应规则库、市售起始原料的化学数据库，以及选择键断裂规则并将搜索导向该数据库的策略组成。<sup>[8](https://www.sciencedirect.com/science/article/pii/S2211339821000538)</sup> 在实践中，单步逆合成模型提出潜在前体，这些前体随后被整合到一个基于状态的搜索树中，该搜索树迭代地将目标分解为更小的前体，直至到达易于获得的构建模块。<sup>[11](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00280j)</sup>

**基于模板的方法。** 这些策略将目标分子与模板库匹配，通常通过求解子图同构问题来获得候选反应物。<sup>[8](https://www.sciencedirect.com/science/article/pii/S2211339821000538)</sup> 模板是广义化的反应规则，或由机器提取，或由人工整理；当模板由算法提取时，每个建议的反应都可以关联到先例实例，供化学家审阅。<sup>[4](https://www.nature.com/articles/s41467-022-35422-y)</sup> 最著名的整理版规则列表由专家化学家手工编码超过 10 年，才被纳入 Synthia（原 Chematica）。<sup>[9](https://pubs.rsc.org/en/content/articlehtml/2021/re/d0re00340a)</sup> 神经网络对哪些模板对给定目标最具战略性和化学合理性进行排序；例如，ASKCOS 采用这种神经-符号方法，其模板提取自 Pistachio、CAS Content 或 Reaxys 等来源。<sup>[12](https://pubs.acs.org/doi/10.1021/acs.accounts.5c00155)</sup>

**无模板方法。** 这些模型学习从输入产物端到端地生成反应物分子，无需预定义的反应规则。该方法理论上允许预测新反应，但使预测与现有反应数据的关联变得复杂。例子包括 IBM RXN 和 BioNavi-NP，二者均采用序列到序列 Transformer 模型，直接从产物 SMILES 字符串生成前体 SMILES 字符串，这一思路借鉴自自然语言处理的机器翻译模型。<sup>[4](https://www.nature.com/articles/s41467-022-35422-y)</sup><sup> • </sup><sup>[8](https://www.sciencedirect.com/science/article/pii/S2211339821000538)</sup>

**搜索算法。** 计算逆合成传统上被视为树搜索问题，蒙特卡洛树搜索被用于 AiZynthFinder 等工具中，该工具用应用反应模板的神经网络扩展节点，并通过上置信界准则选择叶节点。<sup>[3](https://link.springer.com/article/10.1186/s13321-023-00678-z)</sup> 用模拟经验训练的自对弈搜索算法已达到最先进的性能。<sup>[11](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00280j)</sup> 大多数算法假设任何可购买构建模块的组合都是可接受的终点，这在需要特定起始原料的现实案例中会失败，例如从天然产物出发的半合成；双端合成规划（Double-Ended Synthesis Planning，DESP）通过双向图搜索来解决这一问题，该搜索交替从目标和从目标起始原料进行扩展。<sup>[13](https://proceedings.neurips.cc/paper_files/paper/2024/file/cd091a4d8e97157d32940428f902c7b0-Paper-Conference.pdf)</sup>

## 软件工具

在过去十年中，若干基于机器学习的 CASP 工具被独立开发出来：闭源商业软件如 Synthia，提供接口的闭源工具如 IBM RXN，以及开源工具包括 LillyMol、AiZynthFinder、ASKCOS Tree-builder 和 AutoSynRoute。<sup>[3](https://link.springer.com/article/10.1186/s13321-023-00678-z)</sup> ASKCOS 是一个自 2016 年起持续开发的开源套件，基于四个单步逆合成模型构建交互式和自动规划，并辅以反应条件推荐、反应结果预测和可行性评估模块；它已协助数百名药物化学、合成化学和工艺化学家完成日常工作。<sup>[12](https://pubs.acs.org/doi/10.1021/acs.accounts.5c00155)</sup><sup> • </sup><sup>[14](https://arxiv.org/abs/2501.01835)</sup>

规划的范围也已扩展到纯粹合成有机化学之外。由于针对全合成规划和全酶法规划分别设计了不同的工具集，数据驱动的 CASP 工具在寻找混合路线方面受到限制；一种已报道的算法平衡了两个神经网络模型，一个涵盖 7,984 个酶促转化，另一个涵盖 163,723 个合成转化，并找到了通往某些分子的路线，而纯合成或纯酶法搜索均未能为这些分子找到路线。<sup>[4](https://www.nature.com/articles/s41467-022-35422-y)</sup> 数据不平衡程度很大：Reaxys 包含约 5 × 10<sup>4</sup> 条酶促反应，而总反应数超过 10<sup>7</sup> 条。<sup>[4](https://www.nature.com/articles/s41467-022-35422-y)</sup>

## 评估与已知局限

**无法复现已知路线。** 在实践中，CASP 工具常常无法复现文献报道的路径。失败源于两个原因：要么文献报道的前体根本未被提出，要么被提出了但排名过低，在多步搜索中无法被发现。在缺乏实际实验执行的情况下，复现文献报道的路线是实验可行性唯一可得的客观证据。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC13262262/)</sup>

**复杂性偏差。** 使用标准 top-k 精确匹配准确率对单步逆合成模型进行评估，并按产物和反应复杂性分层，结果显示性能随复杂性增加而下降。伴随这一下降，模型预测的参与反应的原子数量和发生变化的环数量始终偏少，揭示出一种倾向于较简单反应的倾向，即便训练数据中存在复杂的例子。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC13262262/)</sup>

**误导性指标。** 在一项研究中，一个基于模板的工具在多达 1750 万条反应的数据集上训练，并在来自 41 个虚拟库的 1,731 个化合物上评估，测试集上的 top-1 准确率并不能反映模型的整体性能；作者提出转而考察成功应用的模板数量以及生成完整合成路线的能力。他们还发现，模板特异性以泛化性和整体模型性能为代价。<sup>[5](https://pubmed.ncbi.nlm.nih.gov/32110367/)</sup>

**基准异质性。** 由于缺乏标准化的评估基础设施，以及依赖优先考虑拓扑完成度而非化学有效性的指标，进展被掩盖了。在对领先 CASP 工具的调查中，作者观察到评估库存集相差超过三个数量级，从实际备有现货的化合物到庞大的按需合成虚拟库；他们还指出，高可解性分数可能掩盖化学上无效的预测，或无法反映与实验真实结果的一致性。<sup>[7](https://arxiv.org/abs/2512.07079)</sup> 一篇相关综述认为，该领域已从可导航性时代（2018–2023），即专注于在计算上找到任何路线，转向有效性时代（2024–至今），即专注于化学正确性，并提出化学有效性层级（Solv-N），因为可解性指标常常超过 99%，却只衡量拓扑连通性；句法和拓扑层面的问题已基本解决，而选择性和可执行性仍是未决挑战。<sup>[6](https://batistalab.com/publications/syntax-of-matter)</sup> 诸如 SynRXN 和 PaRoutes 基准——首个从专利文献中提取的实验路线大规模数据集——等标准化框架旨在使比较具有可重复性。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC13096289/)</sup><sup> • </sup><sup>[16](https://files.batistalab.com/publications/retrocast-preprint.pdf)</sup>

**速度。** 计算复杂性仍是关键瓶颈：部分合成路线的潜在指数级搜索空间必须在运行时遍历，这使得 CASP 工具不适用于需要立即检查大量分子的场合，例如数十亿候选物的虚拟筛选。合成可及性评分如 SAscore、SYBA、SCScore 和 RAscore 已被测试作为逆合成前的启发式方法；SAscore 和 RAscore 在预测 AiZynthFinder 结果方面均达到 AUC 和准确率超过 0.81，这些评分总体上能区分可行与不可行的分子，但必须针对目标规划算法精心设计。<sup>[3](https://link.springer.com/article/10.1186/s13321-023-00678-z)</sup>

## 当前状态

机器学习辅助的逆合成规划现在通常组织为包含四个模块的模块化框架：数据准备、数据预处理、路径生成与评估，以及路径验证，大语言模型是工具箱中新兴的补充。<sup>[17](https://www.sciencedirect.com/science/article/pii/S1004954124003720)</sup> 算法直到最近才强大到足以在逆合成和正向两个方向上自主设计完整路径，这一发展在可持续化学生产中具有应用前景。<sup>[18](https://www.nature.com/articles/s44222-025-00312-7)</sup> 经过 60 年的历史，一个研究小组报告称，化学家已无法区分计算机系统生成的路线和取自科学文献的真实路线。<sup>[19](https://arxiv.org/abs/1708.04202)</sup> CASP 尚未成为每位化学家工作流程中不可或缺的一部分，但这些工具正日益嵌入化学工作流程，并增强使用它们的化学家的能力。<sup>[9](https://pubs.rsc.org/en/content/articlehtml/2021/re/d0re00340a)</sup>

## References

1. [Quantifying the failure modes of current one-step retrosynthesis models, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC13262262/)
2. [Szymkuć et al. (2016). Computer-Assisted Synthetic Planning: The End of the Beginning. Angewandte Chemie International Edition](https://onlinelibrary.wiley.com/doi/full/10.1002%2Fanie.201506101)
3. [Skoraczyński et al. (2023). Critical assessment of synthetic accessibility scores in computer-assisted synthesis planning. Journal of Cheminformatics](https://link.springer.com/article/10.1186/s13321-023-00678-z)
4. [Levin et al. (2022). Merging enzymatic and synthetic chemistry with computational synthesis planning. Nature Communications](https://www.nature.com/articles/s41467-022-35422-y)
5. [Thakkar et al. (2019). Datasets and their influence on the development of computer assisted synthesis planning tools in the pharmaceutical domain. Chemical Science](https://pubmed.ncbi.nlm.nih.gov/32110367/)
6. [Morgunov et al. (2026). The Syntax of Matter: Synthesis Planning as the Foundation of Generative Chemistry. ChemRxiv](https://batistalab.com/publications/syntax-of-matter)
7. [Morgunov & Batista (2025). Procrustean Bed for AI-Driven Retrosynthesis: A Unified Framework for Reproducible Evaluation. arXiv](https://arxiv.org/abs/2512.07079)
8. [Sun & Sahinidis (2022). Computer-aided retrosynthetic design: fundamentals, tools, and outlook. Current Opinion in Chemical Engineering](https://www.sciencedirect.com/science/article/pii/S2211339821000538)
9. [Thakkar et al. (2021). Artificial intelligence and automation in computer aided synthesis planning. Reaction Chemistry & Engineering](https://pubs.rsc.org/en/content/articlehtml/2021/re/d0re00340a)
10. [Ihlenfeldt & Gasteiger (1996). Computer-Assisted Planning of Organic Syntheses: The Second Generation of Programs. Angewandte Chemie](https://onlinelibrary.wiley.com/doi/abs/10.1002/anie.199526131)
11. [Hassen et al. (2026). Synthesis planning in reaction space: a study on success, robustness and diversity. Digital Discovery](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00280j)
12. [ASKCOS: Open-Source, Data-Driven Synthesis Planning. Accounts of Chemical Research (2025)](https://pubs.acs.org/doi/10.1021/acs.accounts.5c00155)
13. [Yu et al. (2024). Double-Ended Synthesis Planning with Goal-Constrained Bidirectional Search. NeurIPS](https://proceedings.neurips.cc/paper_files/paper/2024/file/cd091a4d8e97157d32940428f902c7b0-Paper-Conference.pdf)
14. [Tu et al. (2025). ASKCOS: an open source software suite for synthesis planning. arXiv](https://arxiv.org/abs/2501.01835)
15. [SynRXN: An Open Benchmark and Curated Dataset for Computational Reaction Modeling, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC13096289/)
16. [procrustean bed for ai-driven retrosynthesis:a unified framework for reproducible evaluation](https://files.batistalab.com/publications/retrocast-preprint.pdf)
17. [Wei et al. (2025). Machine learning-assisted retrosynthesis planning: Current status and future prospects. Chinese Journal of Chemical Engineering](https://www.sciencedirect.com/science/article/pii/S1004954124003720)
18. [Grzybowski et al. (2025). Sustainable production of chemicals by algorithm-assisted (bio)synthesis. Nature Reviews Bioengineering](https://www.nature.com/articles/s44222-025-00312-7)
19. [Segler, Preuss & Waller. Learning to Plan Chemical Syntheses. arXiv](https://arxiv.org/abs/1708.04202)

---
*Initially written Oct 22, 2026*

Topic: 物质世界与数学 › 化学 › 化学原理与方法 › Chemical synthesis › Chemical synthesis (overview and strategy)

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/computer-aided-synthesis-planning

English original: https://www.edgepedia.org/computer-aided-synthesis-planning
