Reactive Flux Matching: Mechanism Discovery and Adaptive Sampling of Rare Events

Rishal Aggarwal, David Ryan Koes, Nicholas M. Boffi, Eric Vanden-EijndenarXiv 2026

TL;DR

Flux Matching brings the power of generative flow matching to the study of rare events in physical systems. By learning a probability current velocity and a scalar potential directly from trajectory data, it uncovers reaction mechanisms and provides a data-driven reaction coordinate that remains exact even under non-Markovian projections.

What Problem Does This Paper Address?

Understanding rare transitions—such as protein folding, chemical reactions, or extreme weather events—is a major challenge because these events happen on timescales much longer than typical molecular or atmospheric dynamics. While path sampling methods (like Transition Path Sampling) can generate ensembles of these rare "reactive" trajectories, extracting clear mechanistic insight from this data remains difficult.

Traditionally, researchers rely on the committor function (the probability that a state will reach the product before the reactant) to define the ideal reaction coordinate. However, computing the committor strictly requires the system to be Markovian (memoryless). When high-dimensional systems are projected onto a few human-interpretable "collective variables" (CVs), the dynamics inevitably become non-Markovian, causing traditional committor-based methods to make uncontrolled approximations.

Methods

The authors introduce Flux Matching, a framework that sidesteps the committor problem by targeting the probability current directly. Inspired by flow matching and stochastic interpolants in generative AI, Flux Matching minimizes quadratic functionals over the reactive path ensemble to learn two complementary objects via regression:

  1. Current Velocity ($u(z)$): The average instantaneous velocity of reactive trajectories. Integrating this velocity field yields smooth streamlines that trace the dominant reaction pathways.
  2. Scalar Potential ($h(z)$): Obtained from a weighted Helmholtz-Hodge decomposition of the reactive current. This potential carries the net flux of the reaction and serves as a data-driven reaction coordinate.
Figure 1: Overview of Flux Matching. From an ensemble of reactive trajectories, we learn the probability current and a scalar potential whose level sets define a data-driven reaction coordinate and milestones for refining the sampler.

Crucially, this method requires no prior knowledge of the underlying system's drift or stationary distribution. Because the current velocity and potential remain well-defined under projection, Flux Matching provides an exact treatment of projected, non-Markovian dynamics.

Datasets

The framework was validated on three distinct systems using datasets generated via Transition Path Sampling (TPS) with one-way shooting moves:

  • Müller-Brown Potential: A standard 2D toy potential energy surface, tested under both overdamped (first-order) and underdamped (second-order, inertial) Langevin dynamics.
  • Alanine Dipeptide (ADP): A canonical biomolecular benchmark (22 atoms) evaluated using both full Cartesian coordinates ($R^{3N}$) and a reduced set of dihedral angles.
  • AIB9: A more complex, higher-dimensional synthetic peptide (129 atoms) exhibiting intermediate metastable states, evaluated using 29 backbone dihedral angles.

Key Insights and Ideas

  • The Generative AI Connection: The loss function for learning the current velocity is structurally identical to the flow matching losses used to train modern generative models, but here it operates over physical transition paths rather than arbitrary data distributions.
  • Immunity to Memory Effects: Unlike committor-based approaches, $u$ and $h$ yield the exact marginal current and potential when projected onto lower-dimensional spaces, making them robust against the non-Markovian memory effects that typically ruin low-dimensional coordinates.
  • Closing the Sampling Loop: The level sets of the learned potential $h$ naturally define optimal boundaries or "milestones" for enhanced sampling algorithms (like Forward Flux Sampling or Weighted Ensemble), paving the way for an iterative active-learning loop.

Key Results

  • Accurate Pathway Reconstruction: On the Müller-Brown potential, the learned streamlines smoothly and accurately tracked the reactive channels across both overdamped and underdamped regimes.
Figure 2: Transition path and current trajectories on the Müller-Brown potential. Reactive trajectories and learned current-velocity streamlines for overdamped (first pair) and underdamped (second pair) dynamics. The streamlines smoothly track the reactive channel in both regimes; underdamped paths show greater spread due to inertia.
  • High Completion Rates: When integrating the learned velocity fields to generate new trajectories, the model achieved high completion rates (successfully connecting reactant to product), reaching up to 98% for Alanine Dipeptide using dihedral features.
  • Superior Enhanced Sampling: The authors used the learned potential $h$ as a collective variable to drive Weighted Ensemble (WE) simulations of Alanine Dipeptide. Compared to standard hand-crafted backbone dihedrals, using $h$ led to earlier first-passage events, faster convergence of the running rate estimate, and significantly tighter confidence intervals.

Limitations and Future Work

  • High-Dimensional Scaling: Scaling Flux Matching to massive biomolecular complexes or global climate models will require advanced neural network architectures (such as SE(3)-equivariant networks) capable of handling much larger state spaces.
  • Computational Overhead: Training the scalar potential $h$ requires differentiating through an inner gradient ($\nabla h$), which relies on double backpropagation and can be computationally expensive.
  • Active Learning Implementation: While the paper proposes an iterative loop where flux estimation and adaptive sampling reinforce each other, fully automating and optimizing this active learning cycle remains a task for future work.

Summary updated

Abstract

Path sampling methods generate ensembles of reactive trajectories connecting metastable states, but extracting mechanistic insight from these data remains nontrivial. We introduce Flux Matching, a framework that learns two complementary objects directly from reactive trajectory data: a current velocity $u(z)$, whose streamlines trace the dominant reaction pathways, and a scalar potential $h(z)$, obtained from a weighted Helmholtz-Hodge decomposition of the reactive current, that serves as a data-driven reaction coordinate. Both minimize quadratic functionals over the reactive path ensemble, analogous to the flow matching loss in generative modeling, and require no knowledge of the underlying dynamics or stationary distribution. Unlike committor-based methods, $u$ and $h$ remain well-defined under projection onto non-Markovian collective variables, and their level sets in turn provide adaptive interfaces for improved sampling with enhanced sampling methods. Flux Matching is validated through the generation of current velocity trajectories and rate constant calculations on molecular systems.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ADPFlux Matching (FM)Completion rate0.9804Rare Event Sampling · features=dihedrals · training-trajectories=100K · evaluation-trajectories=256
Source quote
L692: ADP │ FM │ 100K │ Dihedrals │ 0.9804 │ 0.7220 ± 0.017
AIB9Flux Matching (FM)Completion rate0.7578Rare Event Sampling · features=backbone-dihedrals · training-trajectories=100K · evaluation-trajectories=256
Source quote
L696: AIB9 │ FM │ 100K │ Backbone Dihedrals │ 0.7578 │ 0.9137 ± 0.007
BibTeX
@misc{aggarwal2026reactive,
  author = {Rishal Aggarwal and David Ryan Koes and Nicholas M. Boffi and Eric Vanden-Eijnden},
  title = {{Reactive Flux Matching: Mechanism Discovery and Adaptive Sampling of Rare Events}},
  year = {2026},
  eprint = {2606.06295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.06295},
}

Loading related content...

Figure