arXiv:2610.40249cs.AIOct 2026

Manuscript Offprint

arXiv:2610.40249

Reaction precedents extend retrosynthetic prediction beyond training coverage

Jiaxing Sun, Xuli Shen, Jiang Wu, Ruiyi Ding, Ruikang Zhang, Xiao An, Xibao Li, Yubin Wang, Xingjian Wei, Yinfan Wang, Yu Liu, Lingli Ge, Xi Xue, Xiaojian Wang, Lijun Wu, Chang-Yu Hsieh, Yuqiang Li, Bowen Zhou, Dahua Lin, Conghui He

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jiaxing Sun1†^{1\dagger}, Xuli Shen1†^{1\dagger}, Jiang Wu1‡†^{1\ddagger\dagger}, Ruiyi Ding2†^{2\dagger}, Ruikang Zhang1,3†^{1,3\dagger}, Xiao An1,4†^{1,4\dagger}, Xibao Li1†^{1\dagger}, Yubin Wang1†^{1\dagger}, Xingjian Wei1†^{1\dagger}, Yinfan Wang1^{1}, Yu Liu5^{5}, Lingli Ge6^{6}, Xi Xue7,1^{7,1}, Xiaojian Wang7^{7}, Lijun Wu1^{1}, Chang-Yu Hsieh8^{8}, Yuqiang Li1^{1}, Bowen Zhou1^{1}, Dahua Lin1^{1}, Conghui He1^{1}✉

1^{1}Shanghai Artificial Intelligence Laboratory, 2^{2}Fudan University, 3^{3}Peking University, 4^{4}Wuhan University, 5^{5}University of Science and Technology of China, 6^{6}Shanghai Jiao Tong University, 7^{7}Institute of Materia Medica, Chinese Academy of Medical Sciences & Peking Union Medical College, 8^{8}Zhejiang University

Reaction precedents guide retrosynthesis, but how far they can compensate for gaps in task-specific training coverage remains unclear. Using 2.71 million reactions, we restricted training and retrieval coverage by transformation or time, then expanded only the retrieval corpus with model parameters fixed. For transformations excluded from training, mean Top-1 accuracy increased from 13.0% to 58.0% on a historical test set and from 4.9% to 23.1% on a temporally held-out test set. For temporal coverage gaps, retrieval expansion enabled a model trained on records before 2017 to match or exceed a non-retrieval model trained on records before 2025 on both test sets. Without task-specific fine-tuning, precedents improved all 14 representative general-purpose models on both test sets and USPTO-50K; the strongest with precedents surpassed all eight representative specialized models. These findings show that inference-time reaction precedents can extend retrosynthetic prediction beyond task-specific training coverage without parameter updates.

Date: October 30, 2026

Equal Contribution (†): Jiaxing Sun, Xuli Shen, Jiang Wu, Ruiyi Ding, Ruikang Zhang, Xiao An, Xibao Li, Yubin Wang, Xingjian Wei

Project Lead (‡): Jiang Wu, wujiang@pjlab.org.cn

Correspondence: Conghui He, heconghui@pjlab.org.cn

DianShi, the romanized form of 点石, evokes the Chinese idiom 点石成金 —literally, “turning stone into gold” —and represents our mission to transform organic-chemistry knowledge scattered across patents, papers, and other literature into structured, AI-ready data and intelligence.

1 Introduction

Scientific prediction draws on both established knowledge and newly available evidence. As AI models are increasingly used for scientific prediction, they should be able to draw on this growing evidence without being retrained for every update 1^{1}. When planning syntheses, chemists complement their acquired expertise by consulting reaction precedents in the literature and databases. This motivates a broader question for scientific AI: to what extent can a trained model expand its predictive scope by drawing on external evidence?

Retrosynthesis—the task of identifying possible precursors to a target molecule—is central to synthesis planning for medicines and materials. Models trained on reaction data can support the search for multistep synthetic routes 4^{4} by proposing precursor candidates for each target molecule 5,6^{5,6}. Their a

Figure

b

Figure

C

Controlled coverage intervention

Figure

Independent Evaluation of General-Purpose Models

Assessment of Utility in Multistep Retrosynthesis

DianShi-PatentRxnStep-Dataset

Supplies 2.71 million pre-2025 training reactions and separate 2001–2024 and 2025 evaluations

Fig. 1 | Coverage gaps in retrosynthetic prediction and the design of the retrieval-expansion study. a, New reactions are continually discovered and reported, so the record available keeps growing while a trained model's coverage stays frozen at its training corpus. A second, independent gap is access: a substantial share of reaction records, held by pharmaceutical companies and contract research organizations, is proprietary and never enters public corpora. Both gaps limit training coverage, and coverage limits prediction: single-step retrosynthesis models are substantially less accurate on rare or absent templates, including models that do not explicitly use templates 2^{2}, and forward reaction prediction degrades on reactions from later periods excluded from training 3^{3}. Whether reaction precedents supplied at inference can extend predictive coverage beyond task-specific training without further parameter updates motivates this study. b, Reaction knowledge reaches chemists and models in the same two ways. A chemist identifies candidate precursors for a target molecule by combining chemical expertise (reaction principles, synthetic experience and chemical knowledge) with documented reaction precedents drawn from databases and the literature. Likewise, a model can absorb such knowledge into task-specific parameters during training, where it acts together with the model's reasoning ability and stored knowledge, or receive it at inference time as retrieved reaction precedents, which can cover reactions recorded after training or following templates absent from the training corpus. c, Study design. Two complementary interventions restrict coverage in both the training and the matching retrieval corpora: a temporal intervention retaining only records before 2017 (Pre2017; 1976–2016 in training), and a template intervention withholding about half of the distinct reaction templates (retained-and withheld-template partitions, S42–S44). Each intervention pairs a restricted retrieval corpus with a full one (full-time, 1976–2024; full-template), while the training corpus remains restricted throughout and evaluation targets are held out. After training, each fixed checkpoint is re-evaluated on the same targets with only the retrieval corpus replaced, keeping model parameters, retrieval procedure and evaluation targets unchanged. Independently, 14 representative general-purpose models, without parameter updates, are compared across a no-precedent condition and three retrieval corpora, and DianShi single-step models are assessed within three planning frameworks (RetroAgent, Retro-R1-modified, DianShi-RetroPlanSystem-v0) on three multistep benchmarks (Pistachio Hard, USPTO-190, PatMol-150). DianShi-PatentRxnStep-Dataset supplies 2.71 million pre-2025 training reactions, with separate 2001–2024 and 2025 evaluation sets.

predictive scope, however, depends on the chemistry represented in training. Evaluations of single-step retrosynthesis models have shown substantially lower accuracy for reactions whose templates are rare or absent in the training data, including in models that do not explicitly use templates 2^{2}. Complementary studies of forward reaction prediction have revealed limitations when models are evaluated on reactions from later periods excluded from training 3^{3}. These coverage gaps have practical relevance: researchers worldwide continually generate new experimental reaction data after a model has been trained, while pharmaceutical companies and contract research organizations (CROs) hold proprietary reaction records that are generally unavailable for public model training. Retrosynthesis therefore provides a concrete setting for scientific AI in which to test whether external evidence can extend a model's predictive scope: training coverage and the evidence supplied at inference can be varied independently, with model parameters held fixed.

Previous studies have demonstrated the value of retrieved reaction information for retrosynthetic prediction 7,8,9,10,11^{7,8,9,10,11}. Reaction examples have also improved predictions by general-purpose language models without task-specific fine-tuning 12,13^{12,13}. However, how far reaction precedents can mitigate the predictive limitations associated with gaps in training coverage remains unclear. A complementary question concerns the capabilities of general-purpose models: earlier evaluations reported limited retrosynthetic performance 12^{12}, but advances in foundation models motivate reassessing these capabilities and the additional benefit provided by reaction precedents.

To address these questions, we combined controlled retrieval corpus expansion experiments with evaluations of contemporary general-purpose language models. We constructed DianShi-PatentRxnStep-Dataset, comprising 2.71 million training reactions recorded before 2025, with separate evaluation sets for 2001–2024 and 2025. To assess compensation for gaps in task-specific training coverage, we restricted transformation or temporal coverage in both the training corpus and the retrieval corpus. After training, we held model parameters and the retrieval procedure fixed and expanded only the retrieval corpus, comparing predictions on the same targets before and after expansion. We further evaluated 14 representative general-purpose models with and without retrieved reaction precedents, without task-specific fine-tuning, and compared their performance with eight representative released specialized retrosynthesis models (Fig. 1).

With model parameters held fixed, expanding the retrieval corpus improved prediction for transformations absent from the model's fine-tuning data, including those represented by few records in the expanded corpus. It also enabled a model trained on a temporally restricted corpus to match or exceed a non-retrieval model trained on the full corpus, without further parameter updates. Without task-specific fine-tuning, retrieved precedents improved all 14 representative general-purpose models across three test sets, and the strongest general-purpose model with DianShi precedents outperformed all eight representative released specialized models evaluated here. The DianShi single-step models also improved route finding across nine planning settings. Together, these findings show that inference-time access to reaction precedents can extend retrosynthetic prediction beyond task-specific training coverage without further parameter updates. More broadly, they suggest a way for scientific predictors to benefit from an expanding body of external evidence without retraining for every update.

References (41)