Teaching Language Models Mechanistic Explainability Through MechSMILES
Not on the map. Why?
Abstract (arXiv)
Chemical reaction mechanisms are the foundation of how chemists evaluate reactivity and feasibility, yet current Computer-Assisted Synthesis Planning (CASP) systems operate without this mechanistic reasoning. We introduce a computational framework that teaches language models to predict reaction mechanisms through arrow-pushing formalism, a century-old notation that tracks electron flow while enforcing conservation of mass and charge. This mechanistic understanding enables three capabilities that are difficult or impossible with current methods: post-hoc validation of CASP proposals by reconstructing physically plausible electron pathways, holistic atom-to-atom mapping that tracks all atoms including hydrogens, and extraction of catalyst-aware reaction templates that distinguish recycled catalysts from spectator species. Central to our approach is MechSMILES, a compact textual format encoding molecular structure and electron flow through three arrow types, designed within a Python-based environment that enforces conservation laws and eliminates the possibility of atom hallucination. We trained and benchmarked models on four mechanism prediction tasks of increasing complexity using the main mechanistic datasets in the literature. On our most challenging task, predicting complete mechanisms given only reactants, conditions, and the desired product, our models achieve 93.2% and 73.3% pathway retrieval on the FlowER and mech-USPTO-31k datasets respectively, with top-3 retrieval reaching 97.6% and 86.5%. Furthermore, the framework rapidly learns new reaction classes, with strong mechanistic predictions for ozonolysis and Suzuki cross-coupling emerging from as few as 40 training examples each. By grounding predictions in physically meaningful electron movements, this work provides an architecture-agnostic, open-source foundation for more explainable and chemically valid CASP.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 46 references that are in the map. First posted on arXiv 5 Dec 2025.
Builds on
11 of 46 references.
References · 11
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2017Learning to Plan Chemical Synthesescited by 175
- 2017Predicting Organic Reaction Outcomes with Weisfeiler-Lehman Networkcited by 102
- 2024A Review of Large Language Models and Autonomous Agents in Chemistrycited by 96
- 202314 Examples of How LLMs Can Transform Materials Science and Chemistry: A Reflection on a Large Language Model Hackathoncited by 85
- 2020Mapping the Space of Chemical Reactions Using Attention-Based Neural Networkscited by 70
- 2018A Generative Model For Electron Pathscited by 30
- 2025Electron flow matching for generative reaction mechanism prediction obeying conservation lawscited by 13
- 2025Predicting Chemical Reaction Outcomes Based on Electron Movements Using Machine Learningcited by 2
Built on by
Not cited yet.