Chemical reactions simulated by tracking electron movements precisely

Mechanism-Level Chemical Reaction Simulation with Electron Bookkeeping Transformer

Computational Engineering, Finance, and Science

Summary

Predicting how chemicals react often relies on understanding tiny electron shifts. The authors created a model that treats each electron like a moving token, following chemistry’s arrow-pushing rules. This model, called Bookkeeper, can predict reaction steps with good accuracy, keep track of charge and mass, work faster, and adapt to new reaction types. It helps chemists understand reactions in detail and suggests new ways to test chemical transformations.

What this means in practice

Authors

Sarah Cao, Shitong Luo, Connor W. Coley

Abstract

Modeling chemical reaction mechanisms is central to understanding and predicting chemical reactivity. We present Electron Bookkeeping Transformer (Bookkeeper), a data-driven model that simulates chemical reactions at mechanistic resolution by generating electron movement trajectories. Following the symbolic arrow-pushing formalism in chemistry, Bookkeeper explicitly models each electron as a token and predicts its movement sequentially, ensuring mass and charge conservation during both elementary step and reaction pathway predictions by construction. On reaction-size-balanced test sets, Bookkeeper improves top-1 elementary-step accuracy, top-1 pathway rank accuracy, and top-1 to top-5 product prediction accuracy over FlowER. On the entire test set, it achieves higher elementary-step top-1 accuracy but lower pathway accuracy than FlowER. Bookkeeper also samples elementary steps substantially faster, adapts to several unseen reaction types with minimal fine-tuning, and generates candidate chemical transformations for further screening. These results suggest that explicit electron bookkeeping is a useful framework for virtually screening chemical reactions across diverse reagents, validating computer-assisted synthesis planning predictions, and providing mechanistic interpretations of reactivity.