# Electron flow matching for generative reaction mechanism prediction obeying conservation laws

arXiv: https://arxiv.org/abs/2502.12979 · HTML: https://mlsanity.com/paper/2502.12979/

## Key facts

- Cited by 13 papers in the map (data through 14 Oct 2026).
- Placed in Flow matching, time series and science, one of 14 directions in Diffusion models.
- Builds on 23 of its 61 references that are in the map.
- First posted on arXiv 18 Feb 2025.

## Placed in

- Diffusion models / [Flow matching, time series and science](https://mlsanity.com/diffusion/flow-matching-time-series-and-science/)

## Builds on (most cited first, 23 of 23)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Denoising Diffusion Probabilistic Models](https://mlsanity.com/paper/2006.11239/) (2020)
- [Score-Based Generative Modeling through Stochastic Differential Equations](https://mlsanity.com/paper/2011.13456/) (2020)
- [Flow Matching for Generative Modeling](https://mlsanity.com/paper/2210.02747/) (2022)
- [Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow](https://mlsanity.com/paper/2209.03003/) (2022)
- [Equivariant Diffusion for Molecule Generation in 3D](https://mlsanity.com/paper/2203.17003/) (2022)
- [An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning](https://mlsanity.com/paper/2308.08747/) (2023)
- [SchNet: A continuous-filter convolutional neural network for modeling quantum interactions](https://mlsanity.com/paper/1706.08566/) (2017)
- [Do Transformers Really Perform Bad for Graph Representation?](https://mlsanity.com/paper/2106.05234/) (2021)
- [Molecular Transformer - A Model for Uncertainty-Calibrated Chemical Reaction Prediction](https://mlsanity.com/paper/1811.02633/) (2018)
- [Geometric Latent Diffusion Models for 3D Molecule Generation](https://mlsanity.com/paper/2305.01140/) (2023)
- [Retrosynthesis Prediction with Conditional Graph Logic Network](https://mlsanity.com/paper/2001.01408/) (2020)
- [Predicting Organic Reaction Outcomes with Weisfeiler-Lehman Network](https://mlsanity.com/paper/1709.04555/) (2017)
- [Permutation invariant graph-to-sequence model for template-free retrosynthesis and reaction prediction](https://mlsanity.com/paper/2110.09681/) (2021)
- [Graph Transformation Policy Network for Chemical Reaction Prediction](https://mlsanity.com/paper/1812.09441/) (2018)
- [RetroBridge: Modeling Retrosynthesis with Markov Bridges](https://mlsanity.com/paper/2308.16212/) (2023)
- [A Generative Model For Electron Paths](https://mlsanity.com/paper/1805.10970/) (2018)
- [Accurate transition state generation with an object-aware equivariant elementary reaction diffusion model](https://mlsanity.com/paper/2304.06174/) (2023)
- [Diffusion-based Generative AI for Exploring Transition States from 2D Molecular Graphs](https://mlsanity.com/paper/2304.12233/) (2023)
- [Non-Autoregressive Electron Redistribution Modeling for Reaction Prediction](https://mlsanity.com/paper/2106.07801/) (2021)
- [RetroDiff: Retrosynthesis as Multi-stage Distribution Interpolation](https://mlsanity.com/paper/2311.14077/) (2023)
- [Challenging reaction prediction models to generalize to novel chemistry](https://mlsanity.com/paper/2501.06669/) (2025)
- [AI for Interpretable Chemistry: Predicting Radical Mechanistic Pathways via Contrastive Learning](https://mlsanity.com/paper/2311.01118/) (2023)

## Built on by (most cited first, 13 of 13)

- [Beyond Chemical QA: Evaluating LLM's Chemical Reasoning with Modular Chemical Operations](https://mlsanity.com/paper/2505.21318/) (2025)
- [Chemical reasoning in LLMs unlocks strategy-aware synthesis planning and reaction mechanism elucidation](https://mlsanity.com/paper/2503.08537/) (2025)
- [NMR-Solver: Automated Structure Elucidation via Large-Scale Spectral Matching and Physics-Guided Fragment Optimization](https://mlsanity.com/paper/2509.00640/) (2025)
- [Flow matching for reaction pathway generation](https://mlsanity.com/paper/2507.10530/) (2025)
- [SynRXN: An Open Benchmark and Curated Dataset for Computational Reaction Modeling](https://mlsanity.com/paper/2601.01943/) (2026)
- [Agentic generation of verifiable rules for deterministic, self-expanding reaction classification](https://mlsanity.com/paper/2607.01061/) (2026)
- [Mechanistic Reaction Prediction via Discrete Flow Matching on Graph-Structured Electron Occupation](https://mlsanity.com/paper/2608.27429/) (2026)
- [Teaching Language Models Mechanistic Explainability Through MechSMILES](https://mlsanity.com/paper/2512.05722/) (2025)
- [Driving Reaction Trajectories via Latent Flow Matching](https://mlsanity.com/paper/2602.10476/) (2026)
- [A chemical language model for reticular materials design](https://mlsanity.com/paper/2603.20389/) (2026)
- [CompleteRXN: Toward Completing Open Chemical Reaction Databases](https://mlsanity.com/paper/2605.00222/) (2026)
- [SynLaD: Latent Diffusion for Generating Synthesizable Molecules Conditioned on 3D Pharmacophore Profiles](https://mlsanity.com/paper/2607.01105/) (2026)
- [Learning Transferable Reaction Mechanisms from Visual Chemical Knowledge](https://mlsanity.com/paper/2609.33608/) (2026)

## Abstract (arXiv)

Central to our understanding of chemical reactivity is the principle of mass conservation, which is fundamental for ensuring physical consistency, balancing equations, and guiding reaction design. However, data-driven computational models for tasks such as reaction product prediction rarely abide by this most basic constraint. In this work, we recast the problem of reaction prediction as a problem of electron redistribution using the modern deep generative framework of flow matching. Our model, FlowER, overcomes limitations inherent in previous approaches by enforcing exact mass conservation, thereby 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 additionally enables estimation of thermodynamic or kinetic feasibility and manifests a degree of chemical intuition in reaction prediction tasks. This inherently interpretable framework represents a significant step in bridging the gap between predictive accuracy and mechanistic understanding in data-driven reaction outcome prediction.
