Reasoning-Driven Retrosynthesis Prediction with Large Language Models via Reinforcement Learning

Situo Zhang, Hanqi Li, Lu Chen, Zihan Zhao, Xuanze Lin +4 more
7/23/2025
cs.CEcs.AIphysics.chem-ph

No official code found. Best implementation: OpenDFM/RetroDFM-R (23 stars, Apache-2.0, last commit 2025-11-22).

Abstract

Retrosynthesis planning, essential in organic synthesis and drug discovery, has greatly benefited from recent AI-driven advancements. Nevertheless, existing methods frequently face limitations in both applicability and explainability. Traditional graph-based and sequence-to-sequence models often lack generalized chemical knowledge, leading to predictions that are neither consistently accurate nor easily explainable. To address these challenges, we introduce RetroDFM-R, a reasoning-based large language model (LLM) designed specifically for chemical retrosynthesis. Leveraging large-scale reinforcement learning guided by chemically verifiable rewards, RetroDFM-R significantly enhances prediction accuracy and explainability. Comprehensive evaluations demonstrate that RetroDFM-R significantly outperforms state-of-the-art methods, achieving a top-1 accuracy of 65.0% on the USPTO-50K benchmark. Double-blind human assessments further validate the chemical plausibility and practical utility of RetroDFM-R's predictions. RetroDFM-R also accurately predicts multistep retrosynthetic routes reported in the literature for both real-world drug molecules and perovskite materials. Crucially, the model's explicit reasoning process provides human-interpretable insights, thereby enhancing trust and practical value in real-world retrosynthesis applications.

View on arXivView PDF

Code Implementations(1)

OpenDFM/RetroDFM-RCommunity65%
Apache-2.0

RetroDFM-R: Reasoning-Driven Retrosynthesis Prediction with Large Language Models via Reinforcement Learning

233Shell, PythonJul 9, 202511 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2025reasoningdriven,
  title  = {Reasoning-Driven Retrosynthesis Prediction with Large Language Models via Reinforcement Learning},
  author = {Situo Zhang and Hanqi Li and Lu Chen and Zihan Zhao and Xuanze Lin and Zichen Zhu and Bo Chen and Xin Chen and Kai Yu},
  year   = {2025},
  eprint = {2507.17448},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.17448v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.17448.svg)](https://codeofpaper.com/paper/2507.17448)

Discussion