Electron flow matching for generative reaction mechanism prediction

Published: 2025, Last Modified: 25 Jan 2026Nat. 2025EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: Central to our understanding of chemical reactivity is the principle of mass conservation1, which is fundamental for ensuring physical consistency, balancing equations and guiding reaction design. However, data-driven computational models2–9 for tasks such as reaction product prediction rarely abide by this most basic constraint10–13. Here we recast the problem of reaction prediction as a problem of electron redistribution using the modern deep generative framework of flow matching14–16, explicitly conserving both mass and electrons through the bond-electron (BE) matrix representation17,18. Our model, FlowER, overcomes limitations inherent in previous approaches by enforcing exact mass conservation, resolving hallucinatory failure modes, recovering mechanistic reaction sequences for unseen substrate scaffolds and generalizing effectively to out-of-domain reaction classes with extremely data-efficient fine-tuning. FlowER also enables downstream estimation of thermodynamic or kinetic feasibility and manifests a degree of chemical intuition in reaction prediction tasks. This inherently interpretable framework represents an important step in bridging the gap between predictive accuracy and mechanistic understanding in data-driven reaction outcome prediction. A new tool based on generative machine learning called FlowER uses flow matching to model reactions as the redistribution of electrons between reactants and products, enabling the enforcement of mass conservation in reaction prediction.
Loading