Discrete Action Matching: Learning Stochastic Dynamics from Samples via State Graphs

Mikhail Persiianov, Alexander KorotinarXiv 2026

TL;DR

Discrete Action Matching (DAM) brings the principles of optimal transport and "Action Matching" to discrete state spaces. By leveraging a clever mathematical factorization of density ratios, DAM allows researchers to reconstruct how populations evolve over time across a graph—such as cells transitioning between types—using only static snapshots of data.

What Problem Does This Paper Address?

Imagine you are studying a population of cells. You can take a snapshot at Day 1 and another at Day 2, but the process of measuring them is destructive—you can't track an individual cell's journey. This is the "unpaired temporal marginals" problem. Because many different microscopic paths could explain the change from the first distribution to the second, the problem is mathematically "ill-posed."

To solve this, we need a selection principle. In continuous spaces, Action Matching (AM) uses the principle of least action (specifically, minimum kinetic energy) to find the most likely "canonical" path. However, many real-world systems are better described as discrete states on a graph (e.g., specific cell types or disease stages). Translating AM to these discrete graphs is difficult because the "kinetic energy" on a graph depends on the probability mass at both ends of an edge, which is usually unknown when you only have samples.

Methods

The authors introduce Discrete Action Matching (DAM), a framework built on discrete Wasserstein geometry. The process follows three main steps:

  1. Prescribing a Path: Since we only have snapshots, the authors first define an empirical interpolation (a "smoothstep" path) between the observed time points to create a continuous-time target for the model.
  2. Density Ratio Estimation: The "aha moment" of the paper is the observation that for a specific class of "mobility" functions, the kinetic energy on a graph edge can be factorized. It reduces to the probability of being at a node multiplied by a function of the density ratio between that node and its neighbor. The authors train a model to estimate these local log-density ratios without ever needing to calculate the full, normalized probability distribution.
  3. Learning the Action Potential: With the density ratios fixed, DAM learns a scalar "action potential" field $S$ across the graph. This potential defines the flow of probability.

Finally, these learned fields are used to construct a graph-supported Markov sampler, allowing researchers to simulate individual trajectories that are consistent with the observed population snapshots.

Conceptual overview comparing continuous Action Matching (left) with the new Discrete Action Matching (right).

Datasets

The authors evaluated DAM across three distinct regimes:

  • Synthetic Dynamics: Controlled simulations on 11 different graph families (including Grid, Torus, Erdős–Rényi, and Small-World graphs) to test how well the model reconstructs known dynamics.
  • Mouse Gastrulation: A real-world biological dataset containing 34 cell types across nine developmental stages. This tests the model's ability to interpolate "missing" stages of embryo development.
  • Surface Transport: Approximating numerical transport paths on 3D meshes (a sphere and a human hand), treating the mesh vertices as discrete states.

Key Insights and Ideas

  • The Ratio Trick: By assuming the edge mobility is "positively 1-homogeneous," the authors bypass the need to know the global normalization constant of the distribution. This makes the objective function "sample-estimable"—you can calculate it just by looking at your data points and their immediate neighbors on the graph.
  • Geometric Flexibility: DAM isn't tied to one specific type of graph movement. By changing the "mobility function" (arithmetic, geometric, or logarithmic means), researchers can choose different transport geometries suited to their specific scientific domain.
  • Separation of Concerns: The framework separates the task of "where is the mass?" (density ratios) from "how is it moving?" (action potential). This modularity makes the training more stable than previous joint-optimization approaches.

Key Results

DAM consistently outperformed the primary baseline, Free-Energy Gradient Flow (FEGF), particularly in its ability to reconstruct marginals from a single forward rollout.

  • Robustness across Topologies: As shown in Figure 2, DAM achieved significantly lower Hellinger errors (a measure of difference between distributions) across all 11 synthetic graph types. While FEGF struggled with complex topologies like Delaunay or Euclid-MST graphs, DAM remained stable.
  • Biological Accuracy: In the mouse gastrulation task, DAM variants achieved lower mean interpolation errors than FEGF. The authors found that "harmonic mobility" was particularly effective for this biological data.
  • Efficiency: The "histogram-based" version of DAM proved to be highly efficient, providing a strong baseline when explicit histograms are feasible to compute.
Figure 2: Synthetic reconstruction across eleven graph families with N = 60, M = 1,000 samples per split and time, and β = 0.1. DAM uses logarithmic mobility; lower is better.

Limitations and Future Work

  • Prescribed Interpolation: Currently, DAM requires the user to choose how the population is interpolated between snapshots before training the action. A more advanced version (Discrete Wasserstein Lagrangian Flows) could potentially optimize the path and the action simultaneously.
  • Unique Histories: The authors remind readers that unpaired marginals do not determine a unique microscopic history. DAM finds the "minimum action" path, which is a principled reconstruction, but not necessarily the exact historical path taken by the biological system.
  • Scaling: While the ratio trick helps, very large graphs with millions of nodes may still present computational challenges for the potential field $S$.

Summary updated

BibTeX
@misc{persiianov2026discrete,
  author = {Mikhail Persiianov and Alexander Korotin},
  title = {{Discrete Action Matching: Learning Stochastic Dynamics from Samples via State Graphs}},
  year = {2026},
  eprint = {2610.05071},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.05071},
}
Figure