Reinforced Reasoning for End-to-End Retrosynthetic Planning

Chenyang Zuo, Siqi Fan, Yizhen Luo, Zaiqing NiearXiv 2026

TL;DR

ReTriP is an end-to-end generative framework that reformulates multi-step retrosynthetic planning as a unified Chain-of-Thought (CoT) reasoning task, completely eliminating the need for external search heuristics. By combining a path-coherent molecular representation with a progressive reinforcement learning curriculum, it achieves state-of-the-art accuracy and demonstrates exceptional robustness on long-horizon chemical synthesis routes.

What Problem Does This Paper Address?

Retrosynthetic planning—the process of recursively breaking down a target molecule into simpler, commercially available starting materials—is a massive combinatorial puzzle. Traditional AI approaches rely on a decoupled, hybrid paradigm: a "predictive engine" suggests single-step reactions locally, while an external "search module" (like Monte Carlo Tree Search or A* algorithms) stitches them together into a global path.

This separation fragments chemical knowledge and lacks global strategic foresight. Furthermore, standard molecular notations like SMILES represent molecules as isolated entities, causing atom indexing to shift inconsistently from one reaction step to the next. This "notational drift" makes it incredibly difficult for language models to trace how specific molecular fragments evolve across a multi-step pathway.

Figure 1: Comparison of retrosynthetic paradigms. (a) Decoupled search-based method; (b) Our unified ReTriP framework.

Methods

ReTriP unifies expansion and exploration into a standalone Large Language Model (LLM) generation process using three core innovations:

  1. Root-Aligned Multi-Step Representation: To fix the atom-indexing issue, the authors introduce a global topological synchronization strategy. Intermediate molecules retain their prior root-atom designations across steps, creating a path-coherent and fragment-traceable structural map.
  2. Progressive Internalization Curriculum: The model (initialized from BioMedGPT-Mol) undergoes a three-stage Supervised Fine-Tuning (SFT) process:
  3. Stage 1 (Reaction Trajectory Modeling): Internalizes path-level structural priors.
  4. Stage 2 (Reasoning Pattern Internalization): Distills step-by-step chemical logic from a powerful teacher LLM (DeepSeek-V3.1).
  5. Stage 3 (Thought-to-Answer Calibration): Uses a weighted loss function to prevent the model from over-prioritizing natural language style at the expense of precise SMILES syntax.
  6. Reinforcement Learning with Verifiable Rewards (RLVR): Using Group Relative Policy Optimization (GRPO), the model is optimized against a hierarchical reward system. It rewards format adherence and exact precursor grounding (using Jaccard similarity) while penalizing excessive route depth to incentivize synthetic efficiency.

During inference, a lightweight MolFormer-XL ranker selects the most informative starting notation, and consensus-based Test-Time Augmentation (TTA) filters the best paths via majority voting.

Figure 2: The ReTriP framework. (a) Path-coherent data construction: (a1) The target molecule undergoes notational augmentation. (a2) Iterative alignment ensures fragment traceability. (b) Progressive training curriculum: (b1) A three-stage SFT process transitions from trajectory modeling to reasoning distillation and loss-rebalancing calibration. (b2) RLVR aligns stepwise logic with precursor availability and synthetic efficiency. (c) Inference and scaling: A ranking-guided TTA selects optimal input notations, followed by a consensus- based voting mechanism.

Datasets

The framework was trained and evaluated on RetroBench, a rigorous benchmark for multi-step retrosynthesis derived from the USPTO-full reaction network.

  • Data Split: 46,458 training, 5,803 validation, and 5,838 testing target molecules.
  • Complexity: Synthetic routes span a depth of 2 to 13 steps.
  • Augmentation: The training set was expanded to approximately 929k trajectories using 20-fold root-aligned randomized augmentation to decouple chemical logic from representational biases.

Key Insights and Ideas

  • Out-of-the-Box LLMs Fail at Chemistry: Massive frontier models (including GLM-5 744B and DeepSeek-V3.2 671B) exhibit a massive performance deficit, peaking at just 1.9% single-pass accuracy out of the box. General-purpose capabilities are fundamentally insufficient for complex synthetic coordination without domain-specific alignment.
  • Syntax Stability Unlocks Logic: Eliminating artificial notational noise via path-coherent alignment allows the LLM to stop "deciphering complex syntactic permutations" and focus entirely on strategic structural decomposition.
  • Flattening the Depth Penalty: Traditional search heuristics degrade rapidly as route depth increases. ReTriP maintains a remarkably robust performance curve, holding roughly 40% accuracy even for complex pathways with a depth of 5 or more, proving that internalized strategic reasoning scales better than discrete external searches.

Key Results

  • New State-of-the-Art: ReTriP achieved a Top-1 exact match accuracy of 45.5% on RetroBench, outperforming the previous multimodal SOTA (RetroInText + Retro*) by 3.4 percentage points.
  • Inference Scaling: Performance scales monotonically with TTA size; at a TTA size of 16, Top-5 accuracy reaches 57.6%.
  • Ablation Validation: Component-wise tests revealed that path-coherent alignment alone provided a +3.2% absolute gain, while the addition of RLVR and pre-ranking added +2.7% and +3.1% respectively.

Limitations and Future Work

The authors acknowledge that future work is required to explore the framework's extensibility to broader, more diverse chemical domains. Additionally, because ReTriP relies on exact-match metrics against a ground-truth reference set, it may penalize alternative, highly innovative, and chemically valid synthetic routes that simply aren't documented in the benchmark dataset.

Summary updated

BibTeX
@misc{zuo2026reinforced,
  author = {Chenyang Zuo and Siqi Fan and Yizhen Luo and Zaiqing Nie},
  title = {{Reinforced Reasoning for End-to-End Retrosynthetic Planning}},
  year = {2026},
  eprint = {2603.29723},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.29723},
}
Figure