通过MechSMILES教会语言模型机制性可解释性
Teaching Language Models Mechanistic Explainability Through MechSMILES
AI总结:
本文提出MechSMILES框架,通过箭头推导法教会语言模型预测化学反应机制,实现了反应路径验证、原子映射和催化剂识别等能力,展示了在复杂机制预测任务中的高准确率。
摘要:
化学反应机制是化学家评估反应性和可行性的基础,但当前的计算机辅助合成规划(CASP)系统缺乏这种机制推理。我们介绍了一个计算框架,通过箭头推导法教授语言模型预测反应机制,这是一种追踪电子流动并强制质量与电荷守恒的百年记号。这种机制理解使模型具备三种能力:在CASP提案后通过重建物理上合理的电子路径进行验证;原子到原子的全面映射,追踪所有原子包括氢;以及提取具有催化剂意识的反应模板,区分回收催化剂和旁观物种。我们的方法核心是MechSMILES,一种紧凑的文本格式,通过三种箭头类型编码分子结构和电子流动,设计在Python环境中强制守恒定律并消除原子幻觉的可能性。我们训练和测试了四个机制预测任务,使用文献中的主要机制数据集。在我们最具有挑战性的任务中,仅凭反应物、条件和期望产物预测完整机制,我们的模型在FlowER和mech-USPTO-31k数据集上分别达到93.2%和73.3%的路径检索率,前三名检索率分别达到97.6%和86.5%。此外,该框架能快速学习新反应类别,从仅40个训练示例中即可获得对臭氧分解和Suzuki交叉偶联的强机制预测。通过将预测建立在物理上有意义的电子运动基础上,本文提供了一个架构无关、开源的基础,用于更可解释和化学上有效的CASP。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。