Multi-Marginal Stochastic Flow Matching for High-Dimensional Snapshot Data at Irregular Time Points

Justin Lee, Behnaz Moradijamei, Heman Shakeri

TL;DR

Multi-Marginal Stochastic Flow Matching (MMSFM) is a novel framework that reconstructs the continuous, high-dimensional trajectories of complex systems from discrete, irregularly timed snapshot data. By combining multi-marginal optimal transport with measure-valued monotonic splines, it bypasses the need for aggressive dimensionality reduction, preserving critical dynamic behaviors that traditional methods destroy.

What Problem Does This Paper Address?

In fields like quantitative biology, researchers often want to model how cells evolve over time—such as during embryonic development or in response to a drug. However, technologies like single-cell RNA sequencing are inherently destructive; you can only take a "snapshot" of a cell population at a specific time point, destroying the cells in the process. This leaves us with population-level marginal distributions at discrete time points ($t_0, t_1, \dots, t_M$), but no actual individual trajectories.

To make matters worse, these snapshots are frequently collected at irregular, non-equidistant intervals. Traditional approaches try to solve this by first squashing the data into a lower-dimensional space using tools like t-SNE or UMAP. Unfortunately, this compression often introduces artifacts, obscures fast-scale dynamics, and distorts the underlying biological reality. Existing multi-marginal models that try to avoid this compression typically suffer from extreme computational overhead, requiring expensive numerical simulations during training.

Methods

The authors introduce Multi-Marginal Stochastic Flow Matching (MMSFM) to model these high-dimensional stochastic processes directly in their native ("ambient") space.

Key components of the methodology include:

  • Overlapping Mini-Flows (Rolling Windows): Instead of solving one massive multi-marginal optimal transport (MMOT) problem across all time points simultaneously, MMSFM breaks the problem down into overlapping triplets of consecutive marginals $(\rho_i, \rho_{i+1}, \rho_{i+2})$ in a rolling window fashion.
  • Monotonic Cubic Hermite Splines: To interpolate between these snapshots, the model uses a first-order Markov approximation to couple data points and fits a spline through them. Crucially, they choose monotonic cubic Hermite splines over standard natural cubic splines.
  • Simulation-Free Flow and Score Matching: MMSFM decouples the learning of the deterministic drift (the overall flow direction) and the score function (which captures stochastic fluctuations/noise). This allows the model to be trained efficiently without needing to simulate trajectories during the training loop, preventing overfitting in high-dimensional spaces.

Datasets

The framework was validated across three distinct modalities:

  1. Synthetic Data: 2D S-shaped and $\alpha$-shaped Gaussians, alongside a synthetic single-cell RNA-seq dataset generated by the DynGen simulator.
  2. Real Biological Data: High-dimensional single-cell genomics and proteomics data from the CITEseq and Multiome datasets (originally featured in a NeurIPS competition).
  3. Image Data: An image progression task using the Imagenette dataset (a 10-class subset of ImageNet) tracking a conceptual morph from a gas pump to a golf ball to a parachute.

Key Insights and Ideas

  • The Peril of Natural Cubic Splines on Irregular Intervals: A major "aha" moment in the paper is why natural cubic splines fail when snapshot timings are highly irregular. Natural cubic splines enforce continuous second derivatives (acceleration). If you have a very short time interval followed by a very long one, the spline is forced to wildly overshoot to satisfy this acceleration continuity constraint. Monotonic cubic Hermite splines relax this constraint, ensuring the path takes a more direct, physically plausible route without overshooting.
Figure 1. Comparison of Euclidean splines on overlapping windows of size k = 2, demonstrating the potential for overlapping windows to capture variations of paths though the same intervals. From left to right: 1) The 7 points to interpolate with time labels t0, . . . , t6. 2) Natural cubic splines on equidistant time intervals. 3) Monotonic cubic Hermite splines on equidistant time intervals. 4) Natural cubic splines on arbitrary time intervals T = (0, 0.05, 0.2, 0.27, 0.86, 0.95, 1). Note the overshooting required to satisfy the continuity of S′′
  • Bypassing the Latent Space Trap: Competing methods like MIOFlow operate within a latent embedding space generated by a Graph Autoencoder (GAE). While this works well inside the embedding space, generating intermediate trajectories forces the model to travel through "out-of-distribution" regions of the latent space. When re-projected back to the high-dimensional ambient space, it results in high-bias, low-variance trajectories where generated points bunch together unnaturally. MMSFM avoids this entirely by staying in the ambient space.

Key Results

  • Robustness to Irregular Time Points: On highly unbalanced time intervals (dataset $T_3$), the Triplet ($k=2$) model vastly outperformed the Pairwise ($k=1$) baseline on the S-shaped dataset, achieving a Wasserstein-1 ($W_1$) metric of 3.71 compared to the Pairwise model's 12.06.
  • High-Dimensional Scaling: When tested on real biological data (CITEseq and Multiome preprocessed to 50 and 100 principal components, as well as the top 1000 highly variable genes), the Triplet model consistently achieved lower Wasserstein distances on held-out time points compared to the Pairwise baseline.
  • Stable Image Generation: On the Imagenette progression task, the Triplet model demonstrated significantly more stable training and lower flow loss than the Pairwise model, successfully generating smooth transitions across complex image distributions.

Limitations and Future Work

The primary limitation acknowledged by the authors is handling bifurcating flows (where a single population splits into two distinct paths, like stem cells differentiating into two different cell types). Because MMSFM relies on mini-batch optimal transport during training, it lacks a global consistency constraint. This can cause simulated particles to erroneously "jump" between separate branches of a bifurcation. The authors point to mitigating this branch-jumping behavior as a key avenue for future research.

Summary updated

BibTeX
@inproceedings{lee2025multi,
  author = {Justin Lee and Behnaz Moradijamei and Heman Shakeri},
  title = {{Multi-Marginal Stochastic Flow Matching for High-Dimensional Snapshot Data at Irregular Time Points}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ZLyb8DwXXE},
}
Figure