Manuscript Offprint

arXiv:2611.12013

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

Yu Zhang, Ruijie Yu, Xuelin Zhao, Jinming Yang, Feng Zhu, Xiaokang Yang, Yaohui Jin, Yanyan Xu

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

Yu Zhang

Shanghai Jiao Tong University

Shanghai, China

cynthiazhang@sjtu.edu.cn

Ruijie Yu

Shanghai Jiao Tong University

Shanghai, China

el_iauk@sjtu.edu.cn

Xuelin Zhao

Shanghai Jiao Tong University

Shanghai, China

xl_zhao@sjtu.edu.cn

Jinming Yang

Shanghai Jiao Tong University

Shanghai, China

yangjm67@sjtu.edu.cn

Feng Zhu

Shanghai Jiao Tong University

Shanghai, China

fzchem@sjtu.edu.cn

Xiaokang Yang

Shanghai Jiao Tong University

Shanghai, China

xkyang@sjtu.edu.cn

Yaohui Jin

Shanghai Jiao Tong University

Shanghai, China

jinyh@sjtu.edu.cn

Yanyan Xu

Shanghai Jiao Tong University

Shanghai, China

yanyanxu@sjtu.edu.cn

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. Code and data are available in the grmp.

1 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 mechanistic 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.

Figure

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.

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.

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.

References (16)