betaFeedback

WorksComputer Science

Enhancing Multi-Step Chemical Mechanism Prediction with Graph-Guided Preference Data

Abstract

Predicting multi-step chemical reaction mechanisms requires identifying plausible intermediates and correctly ordering the elementary reaction steps. Existing computational methods focus on single-step elementary reaction prediction, limiting their ability to generalize to unseen reaction spaces. We introduce a graph-guided framework for multi-step chemical mechanism prediction that leverages a chemical mechanism knowledge graph (ChemMechKG) to guide large language models (LLMs). To improve pathway prediction, we develop a graph-aligned reaction mechanism predictor (GRMP) that uses graph neural networks to generate synthetic candidate pathways for pathway optimization. During inference, we design a relation retrieval (RR) module to extract relevant graph evidence from the KG for pathway refinement. Experiments show that GRMP achieves the highest pathway accuracy among all compared methods on ChemMechQA and oMe-Gold, reaching 48.1% and 57.9%, respectively. On a fixed sample of 110 out-of-distribution reactions from ChemMechQA-Hard, GRMP achieves 36.4% top-1 pathway accuracy. LLM-as-Judge and human assessment further demonstrate its ability to generalize to unseen reactions.

Introduction

In organic chemistry, a reaction mechanism is a theoretical trajectory mapping electron redistribution during a chemical transformation. Chemists rely on reaction mechanisms as a foundational framework for predicting outcomes, typically represented using “arrow pushing” formalism [21]. By sequentially applying arrow-pushing logic to reactants, elementary intermediates are generated until final products are reached. However, due to the exponentially expanding search space of potential pathways, proposing accurate multi-step mechanistic routes remains a daunting challenge even for experienced domain experts.

Traditional methods for mechanism prediction involve three stages: (1) developing rule-based template systems to encode expert knowledge and label mechanistic data [2, 4, 18]; (2) retraining end-to-end machine learning models on mechanism data for single-step elementary reaction prediction [29]; (3) developing deep learning-based or generative methods to model electron redistribution to adhere to fundamental physical laws for single-step elementary reaction prediction [5, 17]. However, these methods are inherently constrained by their reliance on single-step elementary reaction data. Consequently, they are unable to extrapolate across complex, multi-step mechanistic pathways, even failing to generalize to unseen reactions where the mechanistic logic deviates from known training patterns.

Recent advances in large language models (LLMs) have demonstrated remarkable reasoning capabilities across diverse chemical domains [9, 22, 35]. Nevertheless, current LLM-based applications in mechanism prediction remain predominantly confined to simplified multiple-choice selection tasks, leaving true multi-step mechanistic generation virtually unexplored [11]. This gap stems from a fundamental bottleneck: multi-step mechanism prediction requires complex, long-chain scientific reasoning, where standard LLMs severely struggle with structural hallucinations and a deficiency in chemical grounding [13, 14, 25, 32]. To mitigate hallucinations in long-chain reasoning, Knowledge Graph (KG) integration has emerged as a promising paradigm to anchor LLMs with factual domain knowledge. However, existing KG-augmented approaches falter when directly deployed in complex chemical spaces. Extracting multi-hop mechanistic pathways from dense chemical graphs introduces substantial topological noise.

To address these issues, many studies have integrated Knowledge Graphs (KGs), which encapsulate factual information in a structured format, to improve the reasoning abilities of LLMs. However, existing KG-augmented approaches fail when directly deployed in complex chemical spaces. Extracting comprehensive, multi-hop mechanistic pathways from a chemical graph introduces severe topological noise. Conversely, shallow retrieval is insufficient for governing chemical steps, leaving downstream LLMs under-informed and still prone to cascading hallucinations. To bridge this gap, we construct the Chemical Mechanism Knowledge Graph (ChemMechKG) by enriching reaction sequences with inferred intermediates derived from expert-validated elementary reaction templates. Building on ChemMechKG, we propose a graph-guided framework for multi-step chemical mechanism prediction (Figure 1). Specifically, we develop a GNN-based pathway generator to construct synthetic preference pairs for optimizing a graph-aligned reaction mechanism predictor (GRMP) via direct preference optimization (DPO). During inference, we design a relation retrieval (RR) module to extract relevant graph evidence from the KG for pathway refinement. Evaluations on ChemMechQA and oMe-Gold demonstrate that our framework achieves the highest pathway accuracy among the evaluated methods, while additional ablation studies investigate its generalization to held-out reaction classes and mechanism templates.

An illustration of the proposed framework for chemical mechanism pathway prediction and reasoning

Figure 1. An illustration of our proposed framework. It contains GRMP, a graph-aligned LLM predictor, and a Relation Retrieval (RR) verifier for the mechanism pathway prediction and reasoning.

The main contributions of this work are as follows:

  • We construct ChemMechKG, a knowledge graph that enriches raw reaction data with imputed intermediates using expert-curated templates.

  • We propose a graph-guided framework for multi-step chemical mechanism prediction, in which GCN-generated candidate pathways provide synthetic preference data for pathway optimization.

  • We conduct extensive experiments and human evaluation, demonstrating that GRMP achieves state-of-the-art performance and generalizes effectively to unseen reactions.

Related Work

Mechanism prediction. Anticipating reaction mechanism inference at the elementary step level is crucial for predicting complex chemical outcomes. Early work focused on data curation by expert-annotated templates, such as MechFinder [4], which subsequent works expanded to cover wider reaction distributions [5, 18]. Driven by these datasets, contemporary research applies deep learning to predict intermediate cascades [7]. Notably, graph-based models autoregressively generate consecutive intermediates over reaction graphs [18]. FlowER [17] models electron redistribution as a generative process for single-step predictions. LLMs are also applied to learn mechanistic reasoning for chemical reactions [1, 6]. Despite their success, these methods fail to autonomously extrapolate across multi-step mechanistic pathways and exhibit poor out-of-distribution (OOD) generalization when facing novel, unseen transformations.

Synthetic data for LLM Training. Synthetic data generation plays a pivotal role in expanding LLM capabilities beyond human-annotated corpora [19]. Conventional selection strategies frequently filter synthetic data based on model confidence, prioritizing high-probability generations [12, 15]. However, recent studies demonstrate that such a strategy yields diminishing marginal information gains and exacerbates model bias. Consequently, contemporary paradigms advocate for balanced curriculum mining, strategically incorporating both low-uncertainty (“easy”) and high-uncertainty (“hard”) samples to maximize training efficiency [27, 36]. Nevertheless, systematically identifying informative samples remains non-trivial, particularly in complex scientific domains.

Preliminary

Chemical mechanism pathway. A chemical reaction transforms reactants under given conditions into final products P\mathcal{P}. We distinguish the molecular-state pathway w=(m0,…,mK)w=(m_0,\ldots,m_K) from its auxiliary elementary-template sequence τ=(τ1,…,τK)\tau=(\tau_1,\ldots,\tau_K). The ii-th elementary step is mi−1→τimim_{i-1}\xrightarrow{\tau_i}m_i. Each mim_i is a molecular state represented by SMILES and may contain multiple dot-separated chemical components; τi\tau_i is a reaction template represented by SMARTS.

In ChemMechKG, molecular states and templates are distinct entity types, EmolE_{\mathrm{mol}} and EtplE_{\mathrm{tpl}}, with E=Emol∪EtplE=E_{\mathrm{mol}}\cup E_{\mathrm{tpl}}. The corresponding annotated graph walk is wz=(m0,τ1,m1,…,τK,mK)w_z=(m_0,\tau_1,m_1,\ldots,\tau_K,m_K). We use eje_j for a generic entity at graph position jj, so that e2i=mie_{2i}=m_i and e2i−1=τie_{2i-1}=\tau_i. Graph relations rjr_j label the edges between these entities and are distinct from the template entities τi\tau_i. Thus, a pathway with KK elementary chemical steps has 2K2K graph hops and 2K+12K+1 entity positions. GRMP generates the molecular-state pathway ww during training and inference.

ChemMechQA. We frame multi-step mechanism prediction as a specialized QA task over GG. Given a natural language query qq, specifying the initial molecular state m0m_0, the objective is to learn a function ff that predicts a mechanistic pathway w∈Aw\in\mathcal{A} anchored in GG, such that w=f(q,G)w=f(q,G).

Methods

ChemMechKG Curation

We build our mechanistic dataset on the processed Pistachio database [23], containing 15 million reactions. Building on the previous methodology for imputing mechanistic pathways [18], we derive structured mechanistic pathways from 50,000 experimentally reported reactions using 676 expert-annotated reaction templates proposed by [17]. All mechanistic data are automatically reviewed and cleaned to enhance their consistency and reliability.

We define reaction templates and molecules as entities and labeled molecule–template connections as relations to construct ChemMechKG (Figure 2). This yields 247,832 entities: 247,156 molecule nodes and 676 template nodes. Unlike datasets centered on isolated elementary steps, ChemMechKG provides pathway-level annotations of ordered intermediates, mechanism templates, natural-language descriptions, and reaction conditions in SMILES format. Details of our KG are in Table 5 and Table 6. For model development, we extract the shortest reasoning paths, defined as sequences of consecutive triplets: wz=e0→r1e1→r2⋯→r2Ke2Kw_z=e_0\xrightarrow{r_1}e_1\xrightarrow{r_2}\cdots\xrightarrow{r_{2K}}e_{2K}, where (ej−1,rj,ej)∈G(e_{j-1},r_j,e_j)\in G, e2i=mie_{2i}=m_i, and e2i−1=τie_{2i-1}=\tau_i to construct ChemMechQA. Notably, all molecules and intermediates are excluded from the KG during model inference to avoid data leakage.

Figure 2. The distribution of our curated ChemMechQA.

StatisticCount
Entities247,832
Molecule nodes247,156
Template nodes676
Triples422,160
Reaction types182
Mechanism types13
Mechanism subtypes259
KG analysis
Maximum hops18
Average hops8.4432
Max. template in-degree10,220
Min. template in-degree1
2 ≤ hop < 613,816
6 ≤ hop < 1220,526
12 ≤ hop ≤ 1815,658

Table 5. Key statistics of ChemMechKG.

DatasetSplitMol.Rxns.StepsTypes
oMeBenchTrain12,6842,50810,619–
oMeBenchTest1,151196722–
ChemMechQATrain197,75940,000168,545167
ChemMechQAVal.25,1625,00021,354132
ChemMechQATest24,9815,00021,181132
ChemMechQA-HardOOD Test8,0082,0096,36111

Table 6. Split statistics for ChemMechQA and oMeBench. The oMeBench test split corresponds to oMe-Gold, with 722 elementary steps after preprocessing. * denotes the class- and template-held-out OOD split.

GCN for Pathway Prediction

We employ a query-dependent Graph Neural Network (GNN) model to learn the topological dependencies within ChemMechKG and predict the mechanism pathway. Our implementation uses a two-layer graph convolutional network (GCN) [20] encoder with a multilayer perceptron (MLP) decoder. Based on the definitions in the preliminary, we map each entity node e∈Ee\in\mathcal{E} to an initial textual embedding ze∈Rd\mathbf{z}_e\in\mathbb{R}^d using a pre-trained text embedding model [3].

Algorithm 1 Pair-Wise Synthetic Preference Data Construction

Require: Annotated training set Dtrain={(qj,m0,j,wj∗)}j=1n\mathcal{D}_{\mathrm{train}}=\{(q_j,m_{0,j},w_j^*)\}_{j=1}^{n}; graph GG

Require: Trained GCN predictor and SFT model πθs\pi_{\theta_s}; graph-hop limit Tmax⁡T_{\max}; α,β\alpha,\beta

Ensure: Preference dataset Dpref\mathcal{D}_{\mathrm{pref}} and companion reference SFT data

  1. Initialize GCN-preferred set Dg\mathcal{D}_g and reference-preferred set Dr\mathcal{D}_r to ∅\varnothing

  2. for (qj,m0,j,wj∗)∈Dtrain(q_j,m_{0,j},w_j^*)\in\mathcal{D}_{\mathrm{train}} do

  3. Generate wjsftw_j^{\mathrm{sft}} from πθs(⋅∣qj,m0,j)\pi_{\theta_s}(\cdot\mid q_j,m_{0,j})

  4. ss←R(wjsft,wj∗)s_s\leftarrow R(w_j^{\mathrm{sft}},w_j^*)

  5. Generate GCN molecular-state pathway wjgcnw_j^{\mathrm{gcn}} using GG within Tmax⁡T_{\max} graph hops

  6. if wjgcnw_j^{\mathrm{gcn}} reaches the annotated product then

  7. Retain wjgcnw_j^{\mathrm{gcn}}; set sg←R(wjgcn,wj∗)s_g\leftarrow R(w_j^{\mathrm{gcn}},w_j^*)

  8. else

  9. Discard wjgcnw_j^{\mathrm{gcn}} as a preference candidate

  10. end if

  11. if a retained GCN candidate exists and sg−ss≥αs_g-s_s\geq\alpha then

  12. Add (qj,wjgcn,wjsft)(q_j,w_j^{\mathrm{gcn}},w_j^{\mathrm{sft}}) to Dg\mathcal{D}_g

  13. else if ss≤βs_s\leq\beta then

  14. Add (qj,wj∗,wjsft)(q_j,w_j^*,w_j^{\mathrm{sft}}) to Dr\mathcal{D}_r

  15. end if

  16. end for

  17. Approximately balance pair types by downsampling excess pairs in Dr\mathcal{D}_r

  18. Form Dpref\mathcal{D}_{\mathrm{pref}} from Dg∪Dr\mathcal{D}_g\cup\mathcal{D}_r by deduplicating (q,w+,w−)(q,w^+,w^-) triples and serializing for DPO

  19. Save corresponding wj∗w_j^* as companion SFT data, deduplicated by reaction

  20. return Dpref\mathcal{D}_{\mathrm{pref}} and the companion SFT data

We designate the reactant nodes in the input query qq as query-relevant nodes, denoted Eq⊆E\mathcal{E}_q\subseteq\mathcal{E}. The query-conditioned initial node representation he0h_e^0 is defined as:

he0=Init⁡(ze,I[e∈Eq]⋅zq),∀e∈E.(1)h_e^0=\operatorname{Init}\left(z_e,\mathbb{I}[e\in\mathcal{E}_q]\cdot z_q\right),\quad\forall e\in\mathcal{E}. \tag*{(1)}

where zq∈Rdz_q\in\mathbb{R}^d is the query embedding derived from the input reactant SMILES, I[⋅]\mathbb{I}[\cdot] denotes the indicator function, and Init is a single-layer MLP that fuses the intrinsic node embedding with the query vector for query-relevant nodes, while leaving non-query nodes unchanged. We then perform LL message-passing layers over the entity graph. At each layer ℓ∈{1,…,L}\ell\in\{1,\ldots,L\}, the embedding of node ee is updated by aggregating features from its localized neighborhood:

heℓ=Update⁡(heℓ−1,Agg⁡(Meℓ)),(2)h_e^\ell=\operatorname{Update}\left(h_e^{\ell-1},\operatorname{Agg}(\mathcal{M}_e^\ell)\right), \tag*{(2)}

where Meℓ={Msg⁡(heℓ−1,he′ℓ−1)∣∃r:(e′,r,e)∈G}\mathcal{M}_e^\ell=\{\operatorname{Msg}(h_e^{\ell-1},h_{e'}^{\ell-1})\mid\exists r:(e',r,e)\in G\} represents the set of incoming messages from neighboring entities. The message function Msg parameterizes the interaction between connected entities as an element-wise product:

Msg⁡(he,he′)=he⊙he′,(3)\operatorname{Msg}(h_e,h_{e'})=h_e\odot h_{e'}, \tag*{(3)}

where ⊙\odot denotes element-wise multiplication. The Agg function aggregates neighbor messages, and Update non-linearly combines them with the previous node representation.

We construct pathways by iteratively selecting and applying reaction templates. The two-layer MLP decoder assigns an edge score s(mt,τ;q)s(m_t,\tau;q) to the current molecular state mtm_t and each candidate template τ\tau, using the query-conditioned GCN representations. During training, the encoder and decoder are optimized with a binary edge-classification loss that distinguishes positive from negative edges. During inference, we normalize the candidate template scores:

p(τ∣mt,q)=exp⁡s(mt,τ;q)∑τ′∈Etplexp⁡s(mt,τ′;q).(4)p(\tau\mid m_t,q) = \frac{\exp s(m_t,\tau;q)}{\sum_{\tau' \in\mathcal{E}_{\mathrm{tpl}}} \exp s(m_t,\tau';q)}. \tag*{(4)}

We select the highest-scoring template and apply its SMARTS transformation to mtm_t to generate the next molecular state mt+1m_{t+1}. Repeating template selection and application constructs the pathway until termination or the predefined maximum graph-hop threshold Tmax⁡T_{\max} is reached. The resulting alternating molecule–template sequence is denoted by wzgcnw_z^{\mathrm{gcn}}. Its molecular-state subsequence provides candidate responses for the preference construction described below.

Graph-Aligned LLM for Mechanism Prediction (GRMP)

Given a chemical reasoning prompt qq and an initial molecular state m0m_0 identified within qq, GRMP predicts an ordered molecular-state pathway w=(m0,…,mK)w=(m_0,\ldots,m_K), as defined in the preliminary. Let w∗w^* denote the molecular-state subsequence of the shortest annotated walk in ChemMechKG. Reaction templates provide graph information but are not included in the LLM output. The workflow is as follows.

Supervised fine-tuning (SFT) stage. We first apply SFT [24] to learn these annotated pathways. Let y∗=Serialize⁡(w∗)y^*=\operatorname{Serialize}(w^*) be its reference token sequence. For NN target tokens, the objective is:

LSFT(θs)=−∑t=1Nlog⁡Pθs(yt∗∣y<t∗,q,m0),(5)\mathcal{L}_{\mathrm{SFT}}(\theta_s)=-\sum_{t=1}^{N}\log P_{\theta_s}(y_t^* \mid y_{<t}^*,q,m_0), \tag*{(5)}

where θs\theta_s denotes the SFT model parameters.

Graph-grounded synthetic data for preference optimization. For each training reaction, we extract all molecular-state subsequences of the SFT model and GCN-derived pathways to ensure they share the same format. GCN-derived pathways provide synthetic and diverse candidate pathways for constructing pair-wise preference data.

Below, wsftw^{\mathrm{sft}} and wgcnw^{\mathrm{gcn}} denote these SFT and GCN molecular-state pathways, respectively. We extract intermediates from each candidate and the reference, canonicalize them, and compute their multiset matching rates against the reference. Let I(w)I(w) be the multiset of canonicalized intermediates in ww, and cy(u)c_y(u) the multiplicity of intermediate uu. The intermediate matching rate is reference-normalized multiset recall:

RI(w,w∗)=∑umin⁡{cy(u),cw∗(u)}∣I(w∗)∣.(6)R_I(w,w^*)=\frac{\sum_u \min\{c_y(u),c_{w^*}(u)\}}{|I(w^*)|}. \tag*{(6)}

We define a criterion for preference selection termed the intermediate recall: ss=RI(wsft,w∗)s_s=R_I(w^{\mathrm{sft}},w^*) and sg=RI(wgcn,w∗)s_g=R_I(w^{\mathrm{gcn}},w^*). This score measures intermediate coverage without encoding step order.

Based on this criterion, we construct two types of preferred–rejected pairs using different thresholds α\alpha and β\beta. The workflow of synthetic data selection is in Algorithm 1. A GCN-preferred pair (wgcn,wsft)(w^{\mathrm{gcn}},w^{\mathrm{sft}}) is formed when sg−ss≥αs_g-s_s\geq\alpha. A reference-preferred pair (w∗,wsft)(w^*,w^{\mathrm{sft}}) is formed when ss≥βs_s\geq\beta. If a reaction satisfies both conditions, we retain only its GCN-preferred pair. We downsample excess reference-preferred pairs to approximately balance the two types, then deduplicate the (q,w+,w−)(q,w^+,w^-) triple, where w+w^+ and w−w^- are the preferred and rejected responses. Finally, we use the resulting pairs to construct Dpref\mathcal{D}_{\mathrm{pref}} for DPO training.

Preference Optimization. Starting from the SFT model, we optimize the target policy πθ\pi_\theta using DPO [26], with the frozen SFT model as πref\pi_{\mathrm{ref}}:

LDPO(θ)=−E(q,w+,w−)∼Dpref[log⁡σ(λlog⁡πθ(w+∣q,m0)πref(w+∣q,m0)−λlog⁡πθ(w−∣q,m0)πref(w−∣q,m0))],(7)\mathcal{L}_{\mathrm{DPO}}(\theta)=-\mathbb{E}_{(q,w^{+},w^{-})\sim\mathcal{D}_{\mathrm{pref}}}\left[\log\sigma\left(\lambda\log\frac{\pi_\theta(w^{+}\mid q,m_0)}{\pi_{\mathrm{ref}}(w^{+}\mid q,m_0)}-\lambda\log\frac{\pi_\theta(w^{-}\mid q,m_0)}{\pi_{\mathrm{ref}}(w^{-}\mid q,m_0)}\right)\right], \tag*{(7)}

Here, π(w∣q,m0)\pi(w\mid q,m_0) denotes the probability of the serialized molecular-state pathway. The function σ\sigma is the sigmoid function and λ\lambda scales the preference term. The objective favors reference pathways or GCN alternatives selected for greater intermediate coverage over the SFT candidates.

Relation Retrieval for Inductive Reasoning

During inference, the RR module extracts factual triplets as structural priors for inductive reasoning. Given an input reaction query qq, GRMP generates a candidate molecular-state pathway w=(m0,…,mK)w=(m_0,\ldots,m_K). For each state mim_i, entity linking selects a molecular-state node ai∈Emola_i\in E_{\mathrm{mol}} using Tanimoto similarity:

ai=arg⁡max⁡e∈Emol Tanimoto⁡(FP⁡(mi),FP⁡(e)).(8)a_i=\underset{e\in E_{\mathrm{mol}}}{\arg\max}\ \operatorname{Tanimoto}(\operatorname{FP}(m_i),\operatorname{FP}(e)). \tag*{(8)}

The linked nodes form the anchor set Eanchor={ai}i=0KE_{\mathrm{anchor}}=\{a_i\}_{i=0}^{K}. For each anchor aia_i, we retrieve the relation triplets in its hh-hop graph neighborhood Nh(ai)\mathcal{N}_h(a_i). Here, hh counts graph edges rather than elementary chemical steps; the retrieved neighborhoods can include both molecular-state and template nodes. Finally, the retrieved triplets guide the general-purpose LLM to generate the final pathway wfinalw_{\mathrm{final}}, using the prompt in Appendix:

wfinal=LLM⁡general(Prompt⁡(⋃ai∈EanchorNh(ai)))(9)w_{\mathrm{final}}=\operatorname{LLM}_{\mathrm{general}}\left(\operatorname{Prompt}\left(\bigcup_{a_i\in E_{\mathrm{anchor}}}\mathcal{N}_h(a_i)\right)\right) \tag*{(9)}

Leakage-controlled retrieval. Before retrieval, we remove the molecule nodes and incident edges associated with each test reaction from ChemMechKG, preventing RR from directly accessing its annotated pathway.

Experiments

Our experiments aim to address the following research questions (RQs):

  1. RQ1: How does GRMP compare with the general-purpose LLMs and prediction baselines?

  2. RQ2: How do the key components of GRMP contribute to generalization on unseen reactions?

  3. RQ3: How sensitive is performance to preference thresholds, node embeddings, and pathway length?

  4. RQ4: How do automated and human assessments characterize pathway plausibility?

Experimental Setup

Datasets. We evaluate on ChemMechQA, our primary dataset constructed directly from ChemMechKG, oMe-Gold (196 literature-verified pathways) [34], and ChemMechQA-Hard. ChemMechQA-Hard comprises 2,009 reactions drawn from eleven held-out reaction classes and 24 unseen mechanism templates, providing an out-of-distribution (OOD) evaluation setting. We conduct an ablation study and human evaluation using a fixed 110-reaction sample from ChemMechQA-Hard. Dataset statistics appear in Appendix A.

Baselines and metrics. We compare nine LLM configurations and three mechanistic baselines in three categories: 1) LLM reasoning methods, 2) mechanistic models including Reactron [5], FlowER [17], and Graph2SMILES [18, 3] and 3) our graph-aligned method. Following prior work [17, 18], we report Validity, Main Product Accuracy (MPA), Intermediate Hit (I-hit), Pathway Accuracy (PA), and Sequence Rank (SR). PA measures exact pathway matching. MPA is evaluated from the final responses of model generation. Full metric definitions appear in Appendix B.

Implementation. We utilize Qwen2.5-7B-Instruct as the foundation model. For LLM training in both the SFT and DPO stages, we adopt LoRA-based fine-tuning. The batch size for SFT is set to 4, and the learning rate is set to 5e-6. To construct synthetic data for preference optimization, we design a two-layer GCN [20] with BGE embeddings [3] that follows an encoder–decoder architecture. We use 2×\times A6000-48G GPUs for training. During inference, our framework includes Gemini-3.1-Pro for final refinement. Gemini generates separate candidate sets for each kk, so top-kk scores need not be monotonic. Experimental settings and hyperparameters are detailed in Appendix B.

Main Results (RQ1)

We evaluate the mechanism prediction performance of GRMP against state-of-the-art baselines across two benchmark datasets: ChemMechQA and oMe-Gold. Table 1 reports top-1 results. Notably, GRMP* represents our proposed graph-aligned LLM utilizing our two-stage training but without inductive reasoning. GRMP (Gemini-3.1-Pro) achieves the highest reported Pathway Accuracy (PA) among the evaluated configurations on both datasets: 48.1% on ChemMechQA and 57.9% on oMe-Gold. Besides, our method outperforms the strongest mechanistic baseline (Graph2SMILES, 33.5% PA) by 14.6 percentage points on ChemMechQA. While general-purpose LLMs like Gemini-3.1-Pro and DeepSeek-V4-Pro exhibit high SMILES validity (up to 95.0%), their full-pathway accuracy remains poor, frequently falling at or below 10.0%. Therefore, high molecular validity does not imply accurate reconstruction of complete pathways. On the independent, literature-verified oMe-Gold benchmark, Graph2SMILES and Reactron each achieve 5.2% PA. These results indicate limited generalization capabilities for the two evaluated mechanistic models on this benchmark. Instead, our method achieves 57.9% PA on oMe-Gold, exceeding Gemini-3.1-Pro (34.9%) by 23.0 percentage points and GPT-5.2 + CoT (36.9%) by 21.0 percentage points. Further, GRMP* without final LLM refinement also achieves 41.8% PA.

MethodChemMechQA ↑\uparrowoMe-Gold ↑\uparrow
Validity (%)MPA (%)I-hit (%)PA (%)Validity (%)MPA (%)I-hit (%)PA (%)
General LLMs for mechanism reasoning
GPT-5.2 [28]70.3±0.0910.0±0.098.1±0.515.0±0.2290.123.129.123.6
GPT-5.2 + Few-shot [33]78.9±0.8513.1±0.2713.0±0.000.0±0.3590.617.811.318.3
Gemini-3.1-Pro [31]90.1±0.3052.2±0.207.3±0.3110.0±0.2790.557.837.934.9
DeepSeek-V4-Pro [8]95.0±0.2448.0±0.3012.9±1.015.0±0.4087.645.325.022.5
Llama-3.1-8B [10]40.0±0.770.0±0.000.81±0.000.0±0.0073.512.63.32.7
Qwen2.5-7B [16]55.5±0.501.0±0.001.0±0.220.0±0.0058.414.94.73.2
ChemDFM [37]44.20.00.00.017.40.00.00.0
Mechanistic models for multi-step mechanism prediction
Reactron [5]93.068.629.311.891.88.633.65.2
Graph2SMILES [18]96.761.937.633.593.97.028.35.2
FlowER [17]100.051.831.427.2––––
Graph-aligned framework
GRMP* (w/o general LLMs)92.148.350.336.983.453.661.341.8
GRMP (Gemini-3.1-Pro)93.967.864.348.189.373.863.657.9

Table 1. Overall performance on ChemMechQA and oMe-Gold. For general-purpose LLMs, results are averaged over five runs, each using a randomly sampled subset of 200 samples from ChemMechQA. GRMP* excludes final general-purpose LLM refinement. Bold and underline indicate the best and second-best performance for each metric.

Next, we stratify ChemMechQA by the number of elementary steps LL: Easy (L≤2L\leq2), Medium (2<L≤52<L\leq5), and Hard (5<L≤95<L\leq9). Table 2 shows that Graph2SMILES leads in Easy PA (62.1%), but its PA falls to 11.2% on Hard reactions. On Hard reactions, GRMP* achieves 29.0% PA and 67.1% SR; refinement increases these to 32.0% and 73.1%. However, we notice that the gains are metric-dependent: refinement slightly reduces PA from 42.0% to 41.6% on Medium reactions. Overall, these results highlight the advantages of GRMP* over conventional baselines on complex, multi-step reactions, while indicating that the benefits of refinement vary across difficulty levels and evaluation metrics.

MethodMPA (%)↑\uparrowI-hit (%)↑\uparrowPA (%)↑\uparrowSR (%)↑\uparrow
Easy Complexity
FlowER63.657.053.560.5
Graph2SMILES73.464.262.167.4
GRMP*64.240.932.462.3
GRMP70.871.457.267.5
Medium Complexity
FlowER54.031.224.538.9
Graph2SMILES65.038.631.646.0
GRMP*55.760.442.081.6
GRMP67.368.941.686.0
Hard Complexity
FlowER38.823.37.835.1
Graph2SMILES48.128.111.243.1
GRMP*37.141.929.067.1
GRMP38.141.132.073.1

Table 2. Performance comparison across different reaction complexities on ChemMechQA. Bold and underline indicate the best and second-best performance for each difficulty level.

Ablation Study (RQ2)

As reported in Table 3, we evaluate four variants, including base predictors, LLM refinement, DPO parameters, and RR configurations on the fixed 110-reaction samples from ChemMechQA-Hard. We make the following observations:

Configuration (Components of methods)Validity (%) ↑ Top-1Validity (%) ↑ Top-3Validity (%) ↑ Top-5I-hit (%) ↑ Top-1I-hit (%) ↑ Top-3I-hit (%) ↑ Top-5MPA (%) ↑ Top-1MPA (%) ↑ Top-3MPA (%) ↑ Top-5PA (%) ↑ Top-1PA (%) ↑ Top-3PA (%) ↑ Top-5
Mechanistic models
FlowER100.0100.0100.018.619.020.214.614.614.610.910.910.9
Graph2SMILES89.190.990.915.717.718.212.714.614.67.39.19.1
Ablation of general LLMs (SFT-only predictors; w/o DPO, w/o RR)
SFT-only predictor: Llama-3.1-8B
w/o LLM refinement66.770.072.711.312.513.211.812.713.68.29.110.0
+ GPT-5.288.490.090.923.025.025.814.516.418.26.47.38.2
+ Gemini-3.1-Pro90.092.793.625.429.230.521.824.526.410.010.911.8
SFT-only predictor: Qwen2.5-7B
w/o LLM refinement85.490.694.519.920.721.014.520.021.012.712.713.6
+ GPT-5.288.091.892.725.828.530.124.526.328.27.310.912.7
+ Gemini-3.1-Pro90.393.694.528.428.229.530.933.633.612.712.713.6
Ablation of training components (Qwen2.5-7B; w/o RR)
w/ DPO (reference-only)78.280.085.414.124.628.23.67.39.15.512.712.7
w/ DPO (α=0.3\alpha= 0.3, β=0.3\beta= 0.3)93.693.696.323.025.829.435.436.338.227.236.336.3
Ablation of relation retrieval components (Qwen2.5-7B + DPO; w/ Gemini-3.1-Pro)
GRMP*96.496.496.429.838.338.449.152.752.734.534.534.5
GRMP (w/ RR, template-hidden KG)90.993.693.634.740.340.766.470.975.537.338.140.9
GRMP (w/ RR, standard KG)89.396.396.334.840.946.666.472.776.336.438.238.2

Table 3. Ablation study on the components of GRMP using fixed 110-reaction samples from ChemMechQA-Hard, where the best results are in bold.

Foundational models. Qwen2.5-7B consistently outperforms Llama-3.1-8B under the setting of w/o LLM refinement, achieving higher top-1 I-hit (19.9% vs. 11.3%), and MPA (14.5% vs. 11.8%). This superiority persists when paired with Gemini-3.1-Pro (30.9% vs. 21.8% top-1 MPA). These comparisons support Qwen2.5-7B as the base predictor among the two evaluated backbones.

LLM refinement. Integrating LLM refinement improves MPA in the reported comparisons, but its effect on PA depends on the base model and refiner itself. For the SFT-only predictor, integrating Gemini-3.1-Pro with Qwen2.5-7B boosts MPA from 14.5% to 30.9% at top-1, while PA remains 12.7%. For the GRMP* with Gemini-3.1-Pro, it substantially enhances top-1 MPA from 35.4% to 49.1% and top-1 PA from 27.2% to 34.5%.

DPO provides the largest sequential gain for predicting mechanism pathways. To isolate the contribution of graph-guided preference construction, we compare our approach with a reference-only DPO baseline that constructs preference pairs directly from reference pathways and incorrect SFT predictions. The results show that reference-only DPO achieves a top-1 PA of only 5.5%, compared with 27.2% for graph-guided DPO, an absolute improvement of 21.7 percentage points. Next, we discuss the contribution of DPO for the prediction performance. Compared with GRMP (SFT-only) without final LLM refinement, DPO with α=β=0.3\alpha= \beta= 0.3 raises top-1 MPA from 14.5% to 35.4% and PA from 12.7% to 27.2%, respectively. Collectively, using GCN-derived synthetic preference pairs for DPO training effectively improves OOD generalization, providing a structurally aligned foundation for subsequent LLM verification.

The RR module primarily improves intermediate and product prediction. For each prediction query, the standard RR refers to retrieving a KG that excludes its own reference pathway. Template-hidden KG additionally excludes the 24 held-out template nodes and their related edges. Compared to the GRMP* (w/o RR), RR with template-hidden KG raises top-1 I-hit from 29.8% to 34.7% and MPA from 49.1% to 66.4%, respectively. Compared to GRMP* (w/o RR), top-1 PA increases from 34.5% to 37.3% with template-hidden RR and to 36.4% with standard RR. These consistent gains confirm that incorporating external mechanistic knowledge via relation retrieval provides critical structural priors, effectively constraining search spaces and guiding the LLM toward globally coherent reaction pathways.

Sensitivity and Failure Analyses (RQ3)

Based on the ablation study results, we conduct sensitivity analysis of the DPO threshold parameters (α,β∈[0.2,0.4]\alpha,\beta\in[0.2, 0.4]) and GCN embeddings, respectively.

Preference thresholds. As we discussed before, increasing α\alpha selects fewer GCN-preferred pairs with larger intermediate-recall gains over SFT predictions, whereas increasing β\beta broadens the candidate pool for reference-preferred pairs. Therefore, we design nine configurations where α,β∈[0.2,0.4]\alpha,\beta\in[0.2, 0.4] for sensitivity analysis. In Figure 3, the highest observed PA and MPA occur at α=β=0.3\alpha= \beta= 0.3 (27.2% and 35.4%). At (0.2, 0.4), both scores fall to 5.45%. Increasing α\alpha to 0.4 with β=0.3\beta= 0.3 yields 18.1% PA and 22.7% MPA. These results favor moderate selection thresholds, with both more permissive and more restrictive settings yielding lower PA and MPA than α=β=0.3\alpha= \beta= 0.3 in the evaluated configurations.

Figure 3. Top-1 PA and MPA (%) for nine preference-threshold configurations on the 110-reaction OOD samples. Both metrics are highest at α=β=0.3\alpha= \beta= 0.3 among the evaluated settings.

GCN embeddings. We evaluate the effectiveness of embeddings used for the GCN predictor on ChemMechQA. Note that we do not evaluate it on OOD reactions because standard GCN models exhibit severely degraded performance across all embedding variants in OOD regimes. Figure 4a compares 3D molecular embeddings (Uni-Mol) against textual semantic embeddings (BGE) alongside our complete GRMP* across reaction complexities (Easy, Medium, Hard). Text-based BGE embeddings consistently outperform Uni-Mol across all complexities for the isolated GCN module (e.g., 39.8% vs. 2.1% MPA on Easy, 11.4% vs. 0.0% MPA on Medium, and 2.0% vs. 0.0% MPA on Hard). Building upon BGE’s superior semantic representation, our integrated GRMP* achieves substantial reasoning gains, reaching 64.2%, 37.7%, and 12.2% PA on Easy, Medium, and Hard tasks, respectively. Although full PA naturally decreases as reaction complexity grows due to step-wise error propagation, BGE’s strong domain alignment makes it the optimal structural foundation for our predictor.

Figure 4. GCN embedding comparison and failure-case analysis on ChemMechQA. (a) The performance of GCN with different embeddings and our GRMP* across different reaction complexities; (b) Failure-case analysis and optimization results of our GRMP*.

Failure cases analysis across pathway lengths. Defining failure cases as samples with I-hit below 50% in the initial GRMP* predictions, we select a 90-subset from ChemMechQA to investigate model robustness. Figure 4b analyzes MPA and PA metrics across elementary steps, comparing baseline methods and our proposed framework GRMP. For the unrefined predictor GRMP*, performance remains consistently low across all step counts. However, incorporating LLM refinement (GRMP) dramatically improves these failure cases across all steps. GRMP achieves perfect MPA (100.0%) at Step 3 and Step 5 and maintains a notable PA lead over both G2S and GRMP* on short-to-medium sequences (e.g., 60.0% PA at Step 1 and 30.0% at Step 2). While PA declines on long-chain reactions (≥ 6 steps), post-hoc refinement effectively prevents catastrophic error propagation, preserving robustness across complex multi-step mechanisms.

LLM-as-Judge and Human Evaluation (RQ4)

To evaluate the plausibility and chemical rigor of our generated pathways, we conduct an LLM-as-Judge evaluation alongside human assessment on the 110 sampled OOD reactions. Specifically, we prompt GPT-5.2 to evaluate the pathways across five expert-defined criteria detailed in Appendix. We evaluate three methods: FlowER, the reference pathway (Gold), and our GRMP.

Figure 5 shows that GRMP achieves higher scores than FlowER on four of the five criteria. Notably, GRMP obtains 0.632 on mechanistic plausibility and 0.512 on pathway completeness, representing absolute improvements of 0.372 and 0.220 over FlowER, respectively. Overall, after being verified by a powerful general-purpose LLM, GRMP produces more chemically plausible and complete reaction pathways than FlowER, highlighting its effectiveness in modeling multi-step reaction mechanisms.

Figure 5. LLM-as-Judge assessments of reference pathways (Gold), FlowER, and GRMP based on five chemical criteria.

Next, we invite three organic chemistry Ph.D. candidates to independently evaluate the predicted pathways and score the results based on the same criteria. We then systematically compute the average scores across eleven distinct reaction classes, indexed from 1 to 11 as mapped in Table 7. Statistical analysis reveals that GRMP achieves an average score exceeding 0.60 in five out of the eleven reaction categories. Further, we supplement three representative case studies in Appendix § 9. These include: (1) a typical failure case; (2) a reaction example where experts judge the model’s prediction to be more reasonable than the reference label (Figure 6); and (3) an example where both the reference and the prediction are logical under the LLM judge, yet human experts prefer the model’s route. on chemical grounds (Figure 7). These evaluations provide complementary evidence that the framework can generate plausible alternatives to a single reference annotation, while experimental validation would be required before any such route could be treated as a discovered mechanism.

CategorySpace
Mechanism TypePericyclic, Rearrangement, Radical, Electron transfer, Substitution, Cleavage, Addition, Elimination, Coordination, Proton transfer / Dissociation, Organometallic, Activation, Condensation
Mechanism SubtypeDeprotonation, Proton transfer, Elimination, Neutralization of protonated ether / Addition of alcohol under basic pKa, Nucleophilic Addition, Proton exchange, Amine addition, Halide leaves, Alkoxide leaves, Hydroxide addition, ...
Hard Reaction TypeAppel bromination (index 5), Carboxylic acid + sulfonamide condensation (index 6), Diels-Alder cycloaddition (index 9), Hydroxy to bromo (index 1), Menshutkin reaction (index 8), N-Bn deprotection (index 11), Negishi coupling (index 2), Prilezhaev epoxidation (index 10), Staudinger reduction (index 4), Transamidation (index 3), Urea Schotten-Baumann (index 7)

Table 7. Overview of mechanism and reaction types in ChemMechQA.

Figure 6. Qualitative pathway comparisons: a, a failure case; b, a prediction judged more reasonable than the reference by experts.

Figure 7. The LLM judge accepts both pathways; human evaluators prefer the prediction. Neither route is experimentally validated by these judgments.

Conclusion

We introduce a novel approach for reliable multi-step reaction mechanism prediction by integrating structural chemical knowledge graphs with the generative power of large language models. We construct ChemMechKG using expert-annotated reaction templates and intermediates. We propose a graph-aligned framework consisting of GRMP and an RR verifier for multi-step mechanism pathway prediction. Empirical experiments and human evaluation demonstrate the effectiveness of our approach, showcasing its potential to generate plausible mechanistic pathways.

A Chemical Mechanism Knowledge Graph (ChemMechKG) Construction

ChemMechQA provides template-imputed pathways for multi-step mechanism prediction. Table 4 compares the source corpus with representative mechanistic resources, which differ in annotation granularity and coverage.

Dataset#Reactions#Reaction Types#Mech. types/subtypesMI?NL?MP?Cond?
Tavakoli et al. [30]5k+–7✓✗✗✗
Chen et al. [4]31k8613✗✗✓✗
Joung et al. [18]192k8613✓✗✗✓
Hao et al. [11]2758613✗✓✗✗
Xu et al. [34]2.8k–8✓✓✓✗
ChemMechQA50k182259✓✓✓✓

Table 4. Comparison of representative mechanistic resources. ChemMechQA contains 259 categories of mechanistic subtypes (13 parent types). “MI?”, “NL”, “MP”, and “Cond” indicate the presence of mechanistic intermediates, natural language descriptions, mechanistic pathways, and reaction conditions in SMILES format, respectively.

To construct the mechanistic dataset, we leverage the Pistachio patent database (2025Q2 release), which comprises more than 15 million organic reactions. To ensure data quality, we implement a rigorous preprocessing pipeline. First, we canonicalize all reaction components (reactants, products, agents, solvents, and catalysts) in SMILES format. Second, building upon the methodology introduced by [18], we impute mechanistic pathways from experimentally reported reactions. After filtering samples with invalid mechanistic pathways and eliminating duplicates, we obtain 942,343 reactions and 8,222,189 elementary reactions with mechanistic pathways across 182 reaction classes and 676 reaction templates (see Table 5).

Finally, from this refined pool, we randomly partition 40,000, 5,000, and 5,000 reactions for training, validation, and testing, respectively (Table 6). For OOD evaluation, we isolate 11 reaction classes and 24 mechanism templates absent from training to construct ChemMechQA-Hard, which contains 2,009 reactions (Table 7). Together, the resulting resource comprises 52,009 reactions and 217,441 elementary reaction steps.

B Implementation Details and Experiment Settings

Foundation LLMs. We compare GPT-5.2 [28], Gemini-3.1-Pro [31], DeepSeek-V4-Pro [8], Llama-3.1-8B [10], Qwen2.5-7B [16], and ChemDFM [37].

Mechanistic Models. We evaluate three expert models as baselines for chemical mechanistic reasoning, including Reactron [5], FlowER [17], and Graph2SMILES [18].

  • Reactron models electron movement to predict reaction products and arrow-pushing mechanisms.

  • FlowER is a flow-matching-based generative model designed to model electronic rearrangement pathways in a continuous latent space. We adopt the publicly released implementation of this model and retain its default network architecture. We retrain the model on ChemMechQA. Due to the scale difference between datasets, we slightly adjust

a subset of training hyperparameters. The modified training hyperparameters are: warmup_steps = 3,000, epoch = 200, max_steps = 3,000,000, save_iter = 3,000, log_iter = 10, and eval_iter = 3,000. When retraining and evaluating the FlowER model, we use atom-mapped versions of ChemMechQA, as required by the model’s architecture. The same applies to Graph2SMILES. The model is trained for elementary reaction prediction.

  • Graph2SMILES is a graph-to-sequence model that encodes molecular graphs using DGCN and decodes reaction outcomes as SMILES sequences with a Transformer. The reproduction method of Graph2SMILES is similar to that of FlowER. The modified training hyperparameters are: warmup_steps = 800, epoch = 2,000, log_iter = 10, eval_iter = 500, and save_iter = 1,000.

GCN-based mechanism prediction. The model architecture for mechanism prediction follows an encoder–decoder for link prediction. Specifically, the encoder is a two-layer GCN, and the decoder is an MLP. For training, existing relations in the dataset are treated as positive edges. For each positive edge, a template node is randomly sampled for its corresponding molecule node to construct a negative edge. This strategy preserves the same bipartite node-type constraints as the positive edges while generating non-existent molecule–template connections. Each positive edge is paired with two negative edges, resulting in a balanced 1:2 ratio between positive and negative samples. The encoder and decoder are optimized jointly with a binary link prediction loss. We train GCN-based predictors for 1000 epochs using Adam with a learning rate of 1×10−31 \times10^{-3}. The dropout rate is set to 0.5.

Metrics. Previous works [17, 18] primarily evaluate model performance at the level of single-step elementary reactions. In this work, we focus on the more challenging task of multi-step mechanism imputation. To comprehensively assess pathway prediction quality, we adopt five evaluation metrics: Validity, Main Product Accuracy (MPA), Intermediate Hit (I-hit), Pathway Accuracy (PA), and Sequence Rank (SR). Specifically, the Validity metric measures the proportion of chemically valid molecules generated among the predicted mechanistic pathways. The Main Product Accuracy (MPA) metric evaluates whether the predicted main product exactly matches the ground-truth main product. The Intermediate Hit (I-hit) measures intermediate recall by calculating the proportion of correctly predicted intermediates among all ground-truth intermediates across the dataset. Pathway Accuracy (PA) measures the proportion of samples whose entire predicted molecular mechanistic pathways exactly match the reference pathways, thereby evaluating end-to-end pathway reconstruction capability. Additionally, Sequence Rank (SR) measures whether the top-1 predicted mechanistic pathway matches any potential pathway within the ChemMechKG. For pathway prediction, each reported score is the arithmetic mean of the corresponding metric over five runs. For predictions without Gemini refinement, top-kk MPA and PA use cumulative hits among the first kk candidate pathways. For Gemini-based variants, a separate candidate set is generated for each value of kk, and MPA and PA measure cumulative hits within that set. These sets are not required to be nested across kk, so the reported scores need not increase with kk. Top-kk Validity and I-hit are arithmetic means of the corresponding candidate-level scores.

Cases

Figures 6 and 7 show qualitative judgments of predicted and reference pathways, rather than experimental validation.

Pathway 1 (predicted) - less plausible

  1. Ion pair formation Carboxylate and carbodiimide form a tight ion pair.

  1. Nucleophilic attack by DMAP DMAP attacks the activated carbodiimide.

  1. Acyl transfer / rearrangement Complex acyl transfer and rearrangement steps.

  1. Sulfonamide attack Sulfonamide attacks the activated intermediate.

  1. Product formation Multiple steps lead to the sulfonylurea product.

Why is pathway 1 less reasonable?

Requires pre-formation of a tight ion pair (less favorable in common organic solvents).

Needs DMAP (strong nucleophile) to initiate the process, but DMAP is usually not required in carbodiimide couplings.

Involves multiple rearrangements and acyl transfer steps, higher activation energy.

Less consistent with well-established carbodiimide reactivity.

Pathway 2 (annotated) - more plausible

  1. Deprotonation The carboxylic acid is deprotonated by base (e.g., DMAP or the sulfonamide).

  1. Nucleophilic attack on carbodiimide Carboxylate attacks the electrophilic carbon of carbodiimide to form O-acylisourea intermediate.

  1. Nucleophilic attack by sulfonamide Sulfonamide attacks the carbonyl carbon of O-acylisourea.

Explains the formation of dicyclohexylurea (DCU), a common byproduct observed in experiments.

  1. Tetrahedral intermediate collapse Collapse of the intermediate expels dicyclohexylurea (DCU) and forms the sulfonylurea product.

  1. Product formation The desired sulfonylurea is obtained with DCU as the byproduct.

Why is pathway 2 more reasonable?

Follows the classic carbodiimide coupling mechanism (well known and widely documented).

O-acylisourea intermediates are well-established and have been extensively characterized.

Consistent with reactivity: carboxylate is a strong nucleophile and attacks the electrophilic carbodiimide carbon.

Requires fewer steps and has lower activation energy.

Explains the formation of dicyclohexylurea (DCU), a common byproduct observed in experiments.

Pathway 1 (predicted) - more plausible

  1. Nucleophilic attack (addition) Morpholine attacks the electrophile-deficient aromatic carbon bearing F, forming a Meisenheimer complex.

  1. Elimination of F-, aromatization F- is expelled and the aromatic system is restored.

  1. Proton transfer / stabilization Proton transfer gives the final product.

Why is pathway 1 less reasonable?

Consistent with well-established SNAr Mechanism

2,4-difluoroaromatic ring activated by electron-withdrawing quinazoline-like heterocycle.

Fluorine is an excellent leaving group

Strong activation significantly facilitates F- departure.

Reaction conditions (TFA) are appropriate

Only adjusts protonation equilibrium and solubility, consistent with literature reports.

Clean reaction is practice

Typically affords the desired mono-substituted product at elevated temperature.

Pathway 2 (annotated) - less plausible

  1. Nucleophilic attack on amide carbonyl Morpholine attacks the amide carbonyl, forming a tetrahedral intermediate.

  1. Amide cleavage / exchange C-N bond cleavage occurs, releasing the original amine.

  1. Proton transfer Proton transfer generates a positively charged intermediate.

  1. Deprotonation Deprotonation gives the final product.

Why is Pathway 2 less reasonable?

Amide is not sufficiently activated

Aromatic amides are resonance-stabilized; TFA alone is not strong enough to activate the amide.

Mechanism is complex

Involves multiple steps: activation, cleavage, exchange, and proton transfers.

Side reactions are likely

Transamidation, hydrolysis, and amide scrambling are possible.

Inconsistent with experimental observations

Usually leads to multiple byproducts rather than a single clean product.

Mechanism pathway prediction with retrieval-guided refinement
Question: Please generate the product SMILES based on the given reactant SMILES.
# Topic entities: [input SMILES]
Use the predicted molecular-state pathway and retrieved graph triplets below to assess and refine the prediction.
Predicted pathway: [input predicted pathway]
Retrieved graph triplets: [input retrieved triplets]
Check SMILES validity and chemical consistency using the retrieved triplets. Correct the predicted pathway if needed; otherwise retain it. Output only the ordered molecular-state SMILES in a code block, separated by arrows. Do not output template SMARTS or explanatory text. Do not leave the output empty.

Table 8. Prompt for GRMP in Mechanism Pathway Prediction with Retrieval Refinement

LLM-as-Judge: evaluation rubric
Assess the chemical plausibility of the supplied molecular-state pathway using the reactants, reaction conditions, and rubric below.
Task: Rate the supplied predicted pathway.
# Topic entities: [input SMILES]
Evaluate the supplied pathway using these expert-defined criteria:
Predicted pathway: [input predicted pathway]
Rubrics:
(1) Intermediate Structural Validity: Intermediate molecular states should have chemically valid structural representations, including appropriate valence, bond orders, and formal charges. Do not penalize justified reactive, charged, or radical intermediates merely for being unstable. Assess intermediate states here; assess the final product under Product Electronic Validity.
(2) Mechanistic Plausibility: All mechanistic steps and the predicted final product must be chemically consistent with the provided reactants and reaction conditions;
(3) Electron-Transfer Coherence: The reasoning process must avoid self-reinforcing or circular electron-transfer loops;
(4) Pathway Completeness: The pathway should include the essential stages needed to complete the proposed transformation, without premature termination or omission of necessary steps.
(5) Product Electronic Validity: The final predicted product should not contain unpaired or artificially retained electrons.
Assign each criterion a numeric score between 0.0 and 1.0, inclusive, with higher scores indicating better satisfaction of the criterion. Provide a brief rationale for each score.

Table 9. Rubrics and Prompt for LLM-as-Judge

References

  1. [1]AM Bran, TA Neukomm, DP Armstrong, Z Jončev, and P Schwaller. [n. d.]. Chemical reasoning in LLMs unlocks steerable synthesis planning and reaction mechanism elucidation. arXiv 2025. arXiv preprint arXiv:2503.08537 ([n. d.]).
  2. [2]Jordi Burés and Igor Larrosa. 2023. Organic reaction mechanism classification using machine learning. Nature 613, 7945 (2023), 689–695.DOI
  3. [3]Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2024. Bge m3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. arXiv preprint arXiv:2402.03216 4, 5 (2024).arxiv.org/abs/2402.03216
  4. [4]Shuan Chen, Ramil Babazade, Taewan Kim, Sunkyу Han, and Yousung Jung. 2024. A large-scale reaction dataset of mechanistic pathways of organic reactions. Scientific Data 11, 1 (2024), 863.DOI
  5. [5]Shuan Chen, Ke Sung Park, Taewan Kim, Sunkyу Han, and Yousung Jung. 2025. Predicting Chemical Reaction Outcomes Based on Electron Movements Using Machine Learning. arXiv preprint arXiv:2503.10197 (2025).arxiv.org/abs/2503.10197
  6. [6]Xingyu Dang, Haocheng Tang, Junmei Wang, and Yanjun Li. 2026. Learning Mechanistic Reasoning for Chemical Reactions with Large Language Models. arXiv preprint arXiv:2607.12771 (2026).
  7. [7]Manajit Das, Ajnabiul Hoque, Mayank Baranwal, and Raghavan B Sunoj. 2026. DeepMech: a machine learning framework for chemical reaction mechanism prediction. Chemical Science (2026).DOI
  8. [8]DeepSeek-AI. 2026. DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence.
  9. [9]Juraj Gottweis, Wei-Hung Weng, Alexander Daryin, Tao Tu, Petar Sirkovic, Artiom Myaskovsky, Grzegorz Glowaty, Felix Weissenberger, Alessio Orlandi, Dan Popovici, et al. 2026. Accelerating scientific discovery with Co-Scientist. Nature (2026), 1–3.
  10. [10]Aaron Grattafiori, Abhinam Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024).
  11. [11]Li Hao, He Cao, Bin Feng, Daniel Shao, Robert Tang, Zhiyuan Yan, Yonghong Tian, Li Yuan, and Yu Li. 2026. Beyond chemical qa: Evaluating llm’s chemical reasoning with modular chemical operations. Advances in Neural Information Processing Systems 38 (2026).
  12. [12]Audrey Huang, Adam Block, Dylan Foster, Dhruv Rohatgi, Cyril Zhang, Max Schimowitz, Jordan Ash, and Akshay Krishnamurthy. 2025. Self-improvement in language models: The sharpening mechanism. In International Conference on Learning Representations, Vol. 2025. 76687–76739.arxiv.org/abs/2412.01951
  13. [13]Jie Huang and Kevin Chen-Chuan Chang. 2023. Towards Reasoning in Large Language Models: A Survey. In Findings of the Association for Computational Linguistics: ACL 2023. 1049–1065.arxiv.org/abs/2212.10403
  14. [14]Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. 2024. Large Language Models Cannot Self-Correct Reasoning Yet. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2310.01798
  15. [15]Jixian Huang, Shixiang Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. 2023. Large language models can self-improve. In Proceedings of the 2023 conference on empirical methods in natural language processing. 1051–1068.arxiv.org/abs/2408.09849
  16. [16]Binyuan Hui, Jian Yang, Zeyu Cui, Jiaxi Yang, Dayiheng Liu, Lei Zhang, Tianyu Liu, Jiajun Zhang, Bowen Yu, Keming Lu, et al. 2024. Qwen2. 5-coder technical report. arXiv preprint arXiv:2409.12186 (2024).arxiv.org/abs/2409.12186
  17. [17]Joonyoung F Joung, Mun Hong Fong, Nicholas Casetti, Jordan P Liles, Ne S Dassanayake, and Connor W Coley. 2025. Electron flow matching for generative reaction mechanism prediction. Nature 645, 8079 (2025), 115–123.
  18. [18]Joonyoung F Joung, Mun Hong Fong, Jihye Roh, Zhengkai Tu, John Bradshaw, and Connor W Coley. 2024. Reproducing Reaction Mechanisms with Machine-Learning Models Trained on a Large-Scale Mechanistic Dataset. Angewandte Chemie International Edition 63, 43 (2024), e20241296.
  19. [19]Feiyang Kang, Newsha Ardalan, Michael Kuchnik, Youssef Emad, Mostafa El-houshi, Shubhrata Sengupta, Shang-Wen Li, Ramya Raghavendra, Ruoxi Jia, and Carole-Jean Wu. 2025. Demystifying synthetic data in llm pre-training: A systematic study of scaling laws, benefits, and pitfalls. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 10750–10769.arxiv.org/abs/2510.01631
  20. [20]Thomas N Kipf and Max Welling. 2016. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907 (2016).arxiv.org/abs/1609.02907
  21. [21]Daniel E Levy. 2017. Arrow-pushing in organic chemistry: an easy approach to understanding reaction mechanisms. John Wiley & Sons.
  22. [22]Haote Li, Sumon Sarkar, Wenxin Lu, Patrick O Loftus, Tianyin Qiu, Yu Shee, Abbigayle E Cuomo, John-Paul Webster, H Kelly, Vidhyadhar Manee, et al. 2026. Collective intelligence for AI-assisted chemical synthesis. Nature (2026), 1–3.DOI
  23. [23]NextMove Software. [n. d.]. Pistachio. https://www.nextmovesoftware.com/pistachio.html.
  24. [24]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744.arxiv.org/abs/2203.02155
  25. [25]Shuofei Qiao, Yixin Ou, Ningyu Zhang, Xiang Chen, Yunzhi Yao, Shumin Deng, Chuanqi Tan, Fei Huang, and Huajun Chen. 2023. Reasoning with Language Model Prompting: A Survey. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 5368–5393.
  26. [26]Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems 36 (2023), 53728–53741.arxiv.org/abs/2305.18290
  27. [27]Amrith Setlur, Saurabh Garg, Xinyang Geng, Naman Garg, Virginia Smith, and Aviral Kumar. 2024. Rl on incorrect synthetic data scales the efficiency of llm math reasoning by eight-fold. Advances in Neural Information Processing Systems 37 (2024), 43000–43031.arxiv.org/abs/2406.14532
  28. [28]Aaditya Singh, Adam Fry, Adam Perelman, Adam Tart, Adi Ganesh, Ahmed El-Kishky, Aidan McLaughlin, Aiden Low, AJ Ostrow, Akhila Ananthram, et al. 2025. Openai gpt-5 system card. arXiv preprint arXiv:2601.03267 (2025).arxiv.org/abs/2601.03267
  29. [29]Mohammadamin Tavakoli, Pierre Baldi, Ann Marie Carlton, Yin Ting Chiu, Alexander Shmakov, and David Van Vranken. 2023. AI for interpretable chemistry: Predicting radical mechanistic pathways via contrastive learning. Advances in neural information processing systems 36 (2023), 4080–4096.arxiv.org/abs/2311.01118
  30. [30]Mohammadamin Tavakoli, Yin Ting T Chiu, Pierre Baldi, Ann Marie Carlton, and David Van Vranken. 2023. Remedhdb: A public database of elementary radical reaction steps. Journal of chemical information and modeling 63, 4 (2023), 1114–1123.DOI
  31. [31]Gemini Team, Rohan Anil, Sebastian Borgeaud, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, Katie Millican, et al. 2023. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805 (2023).
  32. [32]Keheng Wang, Feiyu Duan, Sirui Wang, Peiguang Li, Yunshen Xian, Chuantao Yin, Wenge Rong, and Zhang Xiong. 2023. Knowledge-Driven CoT: Exploring Faithful Reasoning in LLMs for Knowledge-intensive Question Answering. arXiv preprint arXiv:2308.13259 (2023).arxiv.org/abs/2308.13259
  33. [33]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems 35 (2022), 24824–24837.arxiv.org/abs/2201.11903
  34. [34]Ruiling Xu, Yifan Zhang, Qingyun Wang, Carl Edwards, and Heng Ji. 2025. oMeBench: Towards Robust Benchmarking of LLMs in Organic Mechanism Elucidation and Reasoning. arXiv preprint arXiv:2510.07731 (2025).arxiv.org/abs/2510.07731
  35. [35]Yu Zhang, Yang Han, Shuai Chen, Ruijie Yu, Xin Zhao, Xianbin Liu, Kaipeing Zeng, Mengdi Yu, Jidong Tian, Feng Zhu, et al. 2025. Large language models to accelerate organic chemistry synthesis. Nature Machine Intelligence (2025), 1–13.arxiv.org/abs/2504.18340
  36. [36]Yu Zhang, Ruijie Yu, Jidong Tian, Feng Zhu, Jiapeng Liu, Xiaokang Yang, Yaohui Jin, and Yanyan Xu. 2025. ChemActor: Enhancing automated extraction of chemical synthesis actions with LLM-generated data. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 24291–24314.
  37. [37]Zihan Zhao, Da Ma, Lu Chen, Liangtai Sun, Zihao Li, Yi Xia, Bo Chen, Hongshen Xu, Zichen Zhu, Su Zhu, et al. 2025. Developing ChemDFM as a large language foundation model for chemistry. Cell Reports Physical Science 6, 4 (2025).

Paper details

vlnc:W_93k86mp7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents