# AiZynthFinder

**AiZynthFinder** 是一款用于逆合成规划的开源软件工具，其任务是从目标分子出发，反向推导出一组可购买的起始原料。该工具由[阿斯利康](https://www.edgepedia.org/zh/astrazeneca)（AstraZeneca）的分子人工智能团队开发，于2020年首次发表，其默认算法使用蒙特卡洛树搜索（MCTS），在基于已知反应模板库训练的神经网络策略引导下，递归地将分子拆解为可购买的前体。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> 该工具用Python编写，以MIT许可证分发，是与麻省理工学院的ASKCOS、礼来公司的LillyMol以及[微软研究院](https://www.edgepedia.org/zh/microsoft-research)的Syntheseus并列的少数几个完全开源的计算机辅助合成规划（CASP）系统之一。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11112899/)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 逆合成规划：在神经网络模板策略引导下，通过MCTS将目标分子分解为可购买的前体<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> |
| 首次发布 | 2020年，发表于《Journal of Cheminformatics》，作者为Genheden、Thakkar、Chadimová、Reymond、Engkvist和Bjerrum（阿斯利康与伯尔尼大学）<sup>[3](https://chemrxiv.org/engage/chemrxiv/article-details/60c74c60bdbb891499a39777)</sup> |
| 速度 | 通常在10秒内找到一条路线，在1分钟内完成完整搜索<sup>[3](https://chemrxiv.org/engage/chemrxiv/article-details/60c74c60bdbb891499a39777)</sup> |
| 许可证与语言 | MIT许可证；Python 3，依赖TensorFlow、RDKit和NetworkX等软件包<sup>[4](https://chemrxiv.org/engage/api-gateway/chemrxiv/assets/orp/resource/item/60c74c60bdbb891499a39777/original/ai-zynth-finder-a-fast-robust-and-flexible-open-source-software-for-retrosynthetic-planning.pdf)</sup> |
| 接口 | `aizynthcli`命令行工具和`aizynthapp` Jupyter笔记本图形界面；可通过`download_public_data`下载基于USPTO训练的公开策略和ZINC库存<sup>[5](https://github.com/MolecularAI/aizynthfinder)</sup> |
| 工业应用 | 自2020年起集成到阿斯利康的设计工作流中，已为超过13万个分子生成逆合成路线<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11042116/)</sup> |
| 当前版本 | 4.4.1，4.0版重新设计增加了过滤策略、可插拔的单步模型、评分框架以及额外的搜索算法<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11112899/)</sup><sup> • </sup><sup>[7](https://github.com/MolecularAI/aizynthfinder/releases)</sup> |

## 算法工作原理

核心算法对目标分子的断键方式进行树搜索。从输入产物出发，搜索递归地应用逆合成反应，直到树的每个叶节点都是可购买前体库存中存在的分子，以此作为停止准则。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> 搜索遵循Segler及其同事所展示的方法，即训练神经网络对反应模板进行优先级排序，该策略引导[蒙特卡洛树搜索](https://www.edgepedia.org/zh/monte-carlo-tree-search)朝向合理的断键方向。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup>

三个输入配置一次搜索：可购买分子的库存文件、训练好的扩展策略网络（用于建议前体），以及可选的训练好的过滤策略网络（用于剔除不合理的反应）。<sup>[5](https://github.com/MolecularAI/aizynthfinder)</sup> 公开软件包附带一个在USPTO专利反应数据集上训练的策略，以及一个取自[ZINC数据库](https://www.edgepedia.org/zh/zinc-database)的库存集合。<sup>[5](https://github.com/MolecularAI/aizynthfinder)</sup> 库存直接影响结果：在开发者自己的测试中，将Enamine砌块目录添加到示例ZINC库存后，100个ChEMBL目标分子中有10个额外化合物找到了路线。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup>

搜索行为可调。已发表的配置包括最大搜索时间500秒、最大迭代次数100次、最大深度6步；<sup>[8](https://pubs.acs.org/doi/10.1021/acs.jcim.4c01821)</sup> 其他工作使用了7步的路线深度、50的束宽和每个分子200次迭代。<sup>[9](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00573f)</sup> 该工具可以在找到至少一条路线后停止，也可以继续探索直到时间或迭代限制；在后一种模式下，更快的单步模型能够更彻底地探索路线空间，而非缩短实际耗时。<sup>[9](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00573f)</sup> 路线按奖励函数排序，该函数考虑库存中起始原料的比例和路线的长度。<sup>[8](https://pubs.acs.org/doi/10.1021/acs.jcim.4c01821)</sup>

## 安装与使用

该工具可在Linux、Windows和macOS上运行，从PyPI安装到Conda环境中，完整包使用`python -m pip install aizynthfinder[all]`，较小安装使用`aizynthfinder`。<sup>[5](https://github.com/MolecularAI/aizynthfinder)</sup> 安装会创建两个接口：用于命令行批量搜索的`aizynthcli`，以及运行在Jupyter笔记本中的图形界面`aizynthapp`。<sup>[5](https://github.com/MolecularAI/aizynthfinder)</sup> `download_public_data`命令获取公开模型和库存文件，并写入一个可供任一接口使用的`config.yml`。<sup>[5](https://github.com/MolecularAI/aizynthfinder)</sup> 化学后端为RDKit。<sup>[10](https://ithub.global.ssl.fastly.net/kent-tokyo/renkin/blob/master/docs/comparison/open-source-retrosynthesis-tools.md)</sup>

## 起源与发展

该软件在2020年《Journal of Cheminformatics》的一篇论文中描述，作者为Samuel Genheden、Amol Thakkar、Veronika Chadimová、Jean-Louis Reymond、Ola Engkvist和Esben Bjerrum，来自阿斯利康哥德堡和伯尔尼大学。<sup>[3](https://chemrxiv.org/engage/chemrxiv/article-details/60c74c60bdbb891499a39777)</sup> 较早的内部版本曾用于研究反应数据库如何影响逆合成预测；发布的代码库经过重新工程化，以提升灵活性、稳健性和可维护性，并配备了自动化测试和持续集成。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> 作者声明的动机是算法透明性和可复现研究，因为大多数竞争性反应数据库和可购买前体目录都是商业性的。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup>

**4.0版**于2024年描述，基于三年的工业应用经验，增加了用于过滤反应的策略、支持用任意单步逆合成模型替代默认模板策略、评分框架以及若干额外搜索算法。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11112899/)</sup> 配套工具AiZynthTrain可在用户提供的反应数据集上训练该软件。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11042116/)</sup> 最新标记版本为v4.4.1。<sup>[7](https://github.com/MolecularAI/aizynthfinder/releases)</sup>

## 阿斯利康的工业应用

自2020年集成到阿斯利康的常规设计工作流以来，该工具已为阿斯利康化学家感兴趣的超过13万个分子生成了逆合成路线。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11042116/)</sup> 阿斯利康运行一个在公开和专有电子实验记录本数据上训练的内部版本，并报告称纳入专有数据可提升模型性能。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11042116/)</sup> 该工具将已报道的反应泛化为反应模板，每个模板携带用于学习它的反应列表，这使化学家能够为建议的步骤引用先例，尽管这些列表并非文献中某类反应的详尽目录。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC11042116/)</sup>

## 与其他工具的比较

在原始论文的比较中，100个随机ChEMBL化合物同时提交给AiZynthFinder（使用ZINC库存和USPTO策略）和ASKCOS Tree builder（后者利用更广泛的Reaxys数据库和约107,000种价格低于100美元/克的商业库存）。AiZynthFinder为55个化合物找到了路线，ASKCOS为62个；两者共同解决47个，仅ASKCOS解决15个，仅AiZynthFinder解决8个，两者均未解决30个。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> AiZynthFinder在总搜索时间和首次找到解的时间上更快，其核心代码库的Python语句数不到ASKCOS的一半（1,095对2,336条核心语句）。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> 作者提醒，这100个化合物的集合是能力的示例而非基准测试，路线质量是一个定义不清的指标，最好通过实验室合成来确定。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup>

后来的基准测试已将AiZynthFinder用作标准基线。RetroSynFormer，一种决策变换器规划器，发现两种方法在N1和N5测试集上的成功率相当，AiZynthFinder领先几个百分点，且更常重现专利路线，而两者的平均路线相似度（按树编辑距离）无法区分。<sup>[11](https://www.researchgate.net/publication/397726985_RETROSYNFORMER_PLANNING_MULTI-STEP_CHEMICAL_SYNTHESIS_ROUTES_VIA_A_DECISION_TRANSFORMER)</sup> 一项注册的690个目标分子的比较在特定配置下（RENKIN 1.0.7对AiZynthFinder 4.4.1，共享库存，31秒上限）报告原生路线分别为481/690（69.71%）对32/690（4.64%）；该比较自己的文档声明，它不能说明其他AiZynthFinder配置、其他库存或其他工具的情况。<sup>[12](https://kent-tokyo.github.io/renkin/guides/open-source-retrosynthesis-comparison/)</sup>

## 基于该工具的扩展

该工具的预测已被用作衍生模型的真实标签。RAscore，一种机器学习可合成性分类器，在AiZynthFinder结果上训练，以便在不运行搜索的情况下近似判断是否会找到路线；它还可以标记仅因所需砌块不在库存中而错过路线的情况，因为它从化合物级标签而非库存本身学习。<sup>[13](https://pubs.rsc.org/en/content/articlehtml/2021/sc/d0sc05401a)</sup> 2023年对合成可及性评分（SAscore、SYBA、SCScore和RAscore）与AiZynthFinder结果的评估确认，此类评分大多能区分可行与不可行分子，可作为逆合成前的启发式方法缩小搜索空间。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC9840255/)</sup>

研究人员还扩展了规划器本身。一个多目标扩展利用相关目标分子之间可合成的共同中间体，并引入中间体评分对其进行排序；应用于超过5,000个PaRoutes目标分子时，它从数据中恢复了专利分组，并生成了一份经过优化的中间体列表，其中的中间体比标准AiZynthFinder找到的中间体能供更多目标分子共享。<sup>[15](https://www.sciencedirect.com/science/article/pii/S2667318526000231)</sup> 一种提示策略增加了人工引导规划，允许化学家冻结必须保持连接的键或指定断键，通过一个过滤器丢弃违反这些约束的反应；在其标准配置中，该工具不了解多目标或共享中间体等概念。<sup>[16](https://pubs.rsc.org/en/content/articlepdf/2025/sc/d5sc00927h)</sup>

## 局限性

性能取决于库存和模板库：只有当所需砌块在配置的库存中且反应类型包含在策略学到的模板中时，才会找到路线。<sup>[1](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)</sup> 查询化合物的微小变化可能导致相当不同的建议路线，需要不同的砌块，这是RAscore作者指出的CASP工具的普遍局限性。<sup>[13](https://pubs.rsc.org/en/content/articlehtml/2021/sc/d0sc05401a)</sup> 该工具不推荐反应条件，也不对路线探索过程中生成的中间体进行分子性质评估。<sup>[17](https://www.biotech.today/compare/aizynthfinder-vs-askcos-vs-retrotrae-retrosynthesis)</sup><sup> • </sup><sup>[18](https://academic.oup.com/view-large/567618922)</sup> 按设计，它以批大小为1运行单步扩展，这限制了单步模型速度如何转化为多步搜索增益。<sup>[9](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00573f)</sup>

## References

1. [Genheden S, Thakkar A, Chadimová V, Reymond J-L, Engkvist O, Bjerrum E (2020). AiZynthFinder: a fast, robust and flexible open-source software for retrosynthetic planning. Journal of Cheminformatics.](https://pmc.ncbi.nlm.nih.gov/articles/PMC7672904/)
2. [Saigiridharan L, Hassen AK, Lai H, Torren-Peraire P, Engkvist O, Genheden S (2024). AiZynthFinder 4.0: developments based on learnings from 3 years of industrial application. Journal of Cheminformatics.](https://pmc.ncbi.nlm.nih.gov/articles/PMC11112899/)
3. [Genheden S et al. (2020). AiZynthFinder: A Fast Robust and Flexible Open-Source Software for Retrosynthetic Planning. ChemRxiv preprint.](https://chemrxiv.org/engage/chemrxiv/article-details/60c74c60bdbb891499a39777)
4. [AiZynthFinder preprint PDF (implementation section).](https://chemrxiv.org/engage/api-gateway/chemrxiv/assets/orp/resource/item/60c74c60bdbb891499a39777/original/ai-zynth-finder-a-fast-robust-and-flexible-open-source-software-for-retrosynthetic-planning.pdf)
5. [MolecularAI/aizynthfinder repository README, GitHub.](https://github.com/MolecularAI/aizynthfinder)
6. [AiZynth impact on medicinal chemistry practice at AstraZeneca, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC11042116/)
7. [Releases · MolecularAI/aizynthfinder, GitHub.](https://github.com/MolecularAI/aizynthfinder/releases)
8. [Investigations into the Efficiency of Computer-Aided Synthesis Planning, Journal of Chemical Information and Modeling.](https://pubs.acs.org/doi/10.1021/acs.jcim.4c01821)
9. [Fast and scalable retrosynthetic planning with a transformer neural network and speculative beam search, Digital Discovery.](https://pubs.rsc.org/en/content/articlehtml/2026/dd/d5dd00573f)
10. [RENKIN docs: Open-Source Retrosynthesis Tools comparison.](https://ithub.global.ssl.fastly.net/kent-tokyo/renkin/blob/master/docs/comparison/open-source-retrosynthesis-tools.md)
11. [Retrosynformer: planning multi-step chemical synthesis routes via a decision transformer (ResearchGate copy).](https://www.researchgate.net/publication/397726985_RETROSYNFORMER_PLANNING_MULTI-STEP_CHEMICAL_SYNTHESIS_ROUTES_VIA_A_DECISION_TRANSFORMER)
12. [RENKIN and AiZynthFinder: Registered Comparison.](https://kent-tokyo.github.io/renkin/guides/open-source-retrosynthesis-comparison/)
13. [Thakkar A et al. (2021). Retrosynthetic accessibility score (RAscore). Chemical Science.](https://pubs.rsc.org/en/content/articlehtml/2021/sc/d0sc05401a)
14. [Skoraczyński G et al. (2023). Critical assessment of synthetic accessibility scores in computer-assisted synthesis planning. Journal of Cheminformatics.](https://pmc.ncbi.nlm.nih.gov/articles/PMC9840255/)
15. [Joint synthesis planning by leveraging common intermediates. Artificial Intelligence in the Life Sciences.](https://www.sciencedirect.com/science/article/pii/S2667318526000231)
16. [Westerlund AM, Saigiridharan L, Genheden S (2025). Human-guided synthesis planning via prompting. Chemical Science.](https://pubs.rsc.org/en/content/articlepdf/2025/sc/d5sc00927h)
17. [AiZynthFinder vs ASKCOS vs RetroTRAE: Retrosynthesis Planning, biotech.today.](https://www.biotech.today/compare/aizynthfinder-vs-askcos-vs-retrotrae-retrosynthesis)
18. [SynCraft comparison table, Oxford Academic.](https://academic.oup.com/view-large/567618922)

---
*Initially written Oct 22, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Application software by domain › Chemical informatics and discovery software

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/aizynthfinder

English original: https://www.edgepedia.org/aizynthfinder
