Flow Matching for Reaction Pathway Generation

Ping Tuo, Jiale Chen, Ju LiSPIGM @ ICML 2026

TL;DR

This paper introduces MolGEN, a novel machine learning framework that uses "flow matching" to efficiently and accurately generate chemical reaction pathways, including transition states and products. By employing a deterministic approach, MolGEN significantly speeds up the process and uncovers new reaction pathways, offering a powerful alternative to existing computational methods.

What Problem Does This Paper Address?

Understanding and predicting chemical reactions is fundamental to chemistry, but computationally exploring reaction mechanisms is a significant challenge. Traditional methods rely on expensive quantum chemistry calculations to identify transition states (TSs) and enumerate potential intermediates and products. While recent machine learning approaches like diffusion models and sequence-based models have accelerated parts of this process, they still have limitations. Diffusion models, for instance, use stochastic differential equations (SDEs) that can be inefficient and hard to control. Sequence-based models can also suffer from issues like mass and electron balance violations. The authors aim to address these bottlenecks by developing a unified, deterministic, and efficient framework for generating complete reaction networks.

Methods

The core innovation is the application of flow matching for molecular and reaction generation. Unlike diffusion models that learn a stochastic reverse process, flow matching learns a deterministic ordinary differential equation (ODE). This ODE defines a "flow" that smoothly transports a simple initial distribution (like Gaussian noise) to a complex target chemical distribution.

The proposed framework, MolGEN, uses a conditional flow-matching approach. It employs a message-passing neural network (MPNN) architecture. For transition state generation, MolGEN learns to map a reactant-product pair and a TS interpolant to a velocity field that guides the TS interpolant from a prior distribution to the target TS geometry. For product generation, it learns to map reactants to potential products. A key advantage is that MolGEN can handle both "one-to-one" mappings (like reactant-product to TS) and "open-ended" mappings (like reactant to multiple possible products). The training involves minimizing a flow matching loss and a Kullback-Leibler divergence loss to ensure accurate trajectory prediction.

Datasets

  • Transition1x: A dataset containing paired reactants, transition states (TSs), and products, derived from climbing-image nudged elastic band (NEB) calculations using DFT. This dataset was used for training and evaluating TS generation.
  • RGD1: A larger dataset comprising elementary reaction data involving molecules with C, H, N, and O atoms. This was combined with Transition1x for training the product generation and reaction network exploration models.

Key Insights and Ideas

  • Flow matching as a deterministic alternative: Replacing SDE-based diffusion with ODE-based flow matching offers a more stable, controllable, and faster generative process.
  • Unified framework for reaction generation: MolGEN can handle both transition state and product generation within a single model, enabling end-to-end reaction network exploration.
  • Discovery of novel pathways: The model can generate alternative transition states with lower energy barriers than those in existing datasets, suggesting it can uncover previously unknown reaction mechanisms.
  • Avoiding sequence model pitfalls: By preserving atomic identities and stoichiometry, MolGEN inherently avoids mass and electron balance violations common in sequence-based generative models.
  • Computational efficiency: Sub-second inference times for TS generation and drastically reduced quantum chemistry evaluations for network exploration highlight the practical utility of the approach.

Key Results

  • Transition State (TS) Generation:
    • Achieved a mean RMSD of approximately 0.106 Å on the Transition1x test set, halving the error of diffusion models.
  • Mean barrier height error was around 3.285 kcal/mol, comparable to state-of-the-art methods.
  • Over 54% of generated TSs exhibited high chemical accuracy (barrier height error < 1.58 kcal/mol).
  • Identified alternative TS configurations with lower energies, with over 7% having energies lower than reference TSs by more than 0.1 kcal/mol.
  • Inference time for TS generation was as low as 0.8 seconds.
  • Product Generation:
    • Achieved competitive top-k accuracy, particularly for k=3 and above, reaching near 100% on the Transition1x test set.
  • Avoided mass/electron balance violations.
  • Reaction Network Generation (y-ketohydroperoxide decomposition):
    • Generated 14 intended reactions with valid transition states.
  • Drastically reduced the average number of quantum chemistry evaluations per reaction from 1,156 (string-based methods) to 12.
  • Yielded higher fractions of valid and intended TSs compared to string-based baselines.

Limitations and Future Work

  • Data Quality: The authors note that some reference TSs in the training data may be erroneous, impacting model performance. They suggest that using higher-quality databases would further improve the model.
  • Alignment Sampling: For reaction network generation, complementary strategies like extensive reactant-product alignment sampling or excluding small molecules might be beneficial for exhaustive searches.
  • Further Refinement: While MolGEN significantly improves upon existing methods, the authors suggest that further refinement of the model and training data could lead to even greater accuracy and coverage.
  • Exploration of Novel Pathways: The ability to uncover lower-barrier pathways is a promising avenue for future work, potentially leading to the discovery of entirely new chemical transformations.

Summary updated

BibTeX
@inproceedings{tuo2026flow,
  author = {Ping Tuo and Jiale Chen and Ju Li},
  title = {{Flow Matching for Reaction Pathway Generation}},
  booktitle = {SPIGM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=MjrFbCMmlx},
}
Figure