ChemPRM: Improving Retrosynthesis by Structured Intermediate Process Reward

Lingfeng Zhang, Xianbin Ye, Lihang Liu, Zhangxiaonan, Xiaomin Fang, Luca RossiAI4Science @ ICML 2026

TL;DR

ChemPRM is a new framework that transforms retrosynthesis from a "black box" prediction into a transparent, three-stage reasoning process. By teaching a Large Language Model (LLM) to identify reaction sites and generate intermediate "synthons" before predicting final reactants, the researchers achieved competitive accuracy while significantly reducing "chemical hallucinations."

What Problem Does This Paper Address?

Retrosynthesis—the process of working backward from a target molecule to find the starting materials needed to make it—is a cornerstone of drug discovery. While deep learning has made this faster, most modern models act as "black boxes": you feed in a product, and they spit out reactants.

The problem? These models often suffer from chemical hallucination. They might generate a string of characters that looks like a valid molecule but represents a reaction that is chemically impossible. Because the models don't "explain" their work, human chemists have no way of knowing why a model chose a specific path, making it difficult to trust the results for real-world lab work.

Methods

The authors propose ChemPRM (Structured Intermediate Process Reward), which breaks down single-step retrosynthesis into three chemically grounded stages:

  1. Reaction Site Identification: The model identifies exactly which atoms and bonds in the target molecule will be involved in the reaction.
  2. Bond Disconnection: The model "breaks" those bonds to create synthons—unstable molecular fragments that represent the core of the future reactants.
  3. Reactant Completion: The model adds the necessary functional groups or "leaving groups" to those synthons to turn them into stable, purchasable chemicals.

Instead of a simple mapping, the model (based on the Qwen2.5-3B LLM) is fine-tuned to generate a structured sequence that includes all these intermediate steps. This "chain-of-thought" for chemistry ensures the model follows a logical path from product to precursor.

Datasets

The researchers used the USPTO-50k benchmark, a standard dataset of 50,000 highly filtered reactions from U.S. patents.

To train ChemPRM, they augmented this dataset with explicit intermediate annotations. They used data augmentation techniques (following the R-SMILES protocol) to expand the training set to approximately 900,000 examples, providing the model with ample variety in how chemical structures are represented as text (SMILES) strings.

Key Insights and Ideas

  • Process Over Result: The core "aha" moment is that supervising the reasoning trajectory is more effective than just supervising the final output. By rewarding the model for getting the intermediate synthons right, the authors force it to learn actual chemical logic rather than just pattern matching.
  • SMILES Equivalence: The authors found that the model sometimes predicted synthons that looked different from the ground truth in text form but were chemically identical in structure. This suggests the model is developing a genuine "understanding" of molecular geometry rather than just memorizing strings.
  • The Scaling Ceiling: Interestingly, the researchers found that scaling from a 1.5B to a 3B parameter model improved performance, but moving to 7B parameters led to mixed results (and even slight decreases in some metrics). This suggests that for specialized reasoning tasks like retrosynthesis, simply "making the model bigger" isn't enough; you need more diverse data or better optimization to utilize that extra capacity.

Key Results

ChemPRM-3B achieved highly competitive results on the USPTO-50k benchmark:

  • Top-1 Accuracy: 58.5%
  • Top-10 Accuracy: 86.9%

It outperformed several established graph-based models (like G2Gs and MEGAN) and sequence-based models (like Retroformer). While a few specialized models like EditRetro achieved slightly higher Top-1 accuracy, ChemPRM provides a level of interpretability that those models lack, allowing chemists to verify the "logic" of the reaction at every step.

Limitations and Future Work

Despite its success, ChemPRM has a few hurdles to clear:

  • Computational Cost: Because the model generates a much longer sequence (including all intermediate steps), inference takes longer and requires more compute than direct-mapping models.
  • Data Dependency: The framework currently relies on "ground-truth" intermediate labels, which are often difficult or expensive to generate for new, complex reaction types.
  • Future Directions: The authors plan to explore Reinforcement Learning (RL) to allow the model to discover its own intermediate reasoning paths without needing explicit labels. They also aim to extend the framework from single-step to multi-step retrosynthesis, which would allow for the design of entire synthetic routes from scratch.

Summary updated

BibTeX
@inproceedings{zhang2026chemprm,
  author = {Lingfeng Zhang and XIANBIN YE and Lihang Liu and Zhangxiaonan and Xiaomin Fang and Luca Rossi},
  title = {{ChemPRM: Improving Retrosynthesis by Structured Intermediate Process Reward}},
  booktitle = {AI4Science @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=5f4giKbVOo},
}
Figure