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

Justin Lee, Behnaz Moradijamei, Heman Shakeri

Introduction

In fields such as developmental biology, understanding the continuous evolution of complex systems is a primary objective. However, many measurement techniques, particularly single-cell RNA sequencing (scRNA-seq), are destructive. This creates a "snapshot" problem: researchers can observe the state of different populations at discrete time points ($t_0, t_1, \dots, t_M$), but they cannot track individual trajectories. Reconstructing these paths is complicated by high dimensionality, stochasticity, and irregular sampling intervals.

To address these challenges, this paper introduces Multi-Marginal Stochastic Flow Matching (MMSFM). This framework enables the reconstruction of continuous dynamics from high-dimensional snapshot data without relying on oversimplified dimensionality reduction or simulation-heavy training.

Methodology

MMSFM builds upon the "Flow Matching" paradigm, a simulation-free approach for training generative models to follow a specific vector field. The authors introduce three key technical innovations to adapt this to irregular, multi-marginal data.

Overlapping Mini-Flows

Traditional flow matching often focuses on pairwise transitions. MMSFM utilizes a rolling window of "triplets" (e.g., $t_0, t_1, t_2$). By matching these overlapping mini-flows, the model enforces higher-order consistency and smoothness across the entire timeline. This approach acts as a regularizer, ensuring that the predicted trajectories are globally coherent rather than just locally accurate.

Monotonic Transport Splines

A significant hurdle in modeling irregular time points is the "overshoot" problem. Standard natural cubic splines often oscillate or swing wildly when gaps between measurements are uneven. MMSFM employs Monotonic Cubic Hermite Splines. These splines are constrained to stay strictly within the bounds of the data points, preventing the model from inventing non-biological "phantom" dynamics and providing a more plausible path for cellular transition.

Ambient Space Modeling

Many existing methods first compress data into a low-dimensional latent space (using VAEs or UMAP). However, this can discard critical information. MMSFM operates directly in the high-dimensional "ambient" space. By avoiding dimensionality reduction, the model preserves the full complexity of the system, which is essential for tasks like gene expression modeling where subtle variations in high-dimensional space are biologically significant.

Experimental Validation

The authors validated MMSFM across a diverse set of synthetic and real-world datasets:

  • Synthetic Distributions: Testing on "S-shaped" and "$\alpha$-shaped" distributions in 2D allowed for the assessment of curvature and path cross-overs.
  • Biological Data: The model was tested on DynGen (a simulator for scRNA-seq with bifurcations) and real-world CITEseq and Multiome datasets. In biological tests, specific time points were held out to evaluate the model's ability to "fill in the blanks."
  • Image Progression: Using the Imagenette dataset, the authors demonstrated the model's ability to handle smooth transitions between complex image classes (e.g., transforming a gas pump into a golf ball and then a parachute).

Key Insights and Results

The research highlights several critical advantages of the MMSFM framework:

  1. Superior Interpolation: On synthetic "S-shape" data with highly irregular time points, the Triplet-based MMSFM achieved a Wasserstein-1 distance of 3.71, significantly outperforming the standard pairwise approach (12.06).
  2. Scalability: The model successfully modeled gene expression data involving 1,000 highly variable genes, outperforming latent-space methods like MIOFlow.
  3. Noise Robustness: By integrating score matching techniques from diffusion models, MMSFM effectively filters measurement noise to identify the underlying "least action" path of the system.
  4. Temporal Stability: The use of triplets and monotonic splines provided more stable training and smoother transitions in image tasks compared to pairwise models, particularly when moving toward complex target distributions.

Limitations

Despite its strengths, the model faces challenges with sharp bifurcations, such as those in the DynGen dataset. Because it relies on mini-batch optimal transport, particles can occasionally "jump" between diverging branches. Additionally, the framework currently requires a known temporal order and faces computational scaling challenges as the number of snapshots increases, due to the cost of multi-marginal optimal transport (MMOT) plans.

Conclusion

Multi-Marginal Stochastic Flow Matching provides a robust framework for reconstructing continuous trajectories from discrete, high-dimensional snapshots. By combining overlapping mini-flows with monotonic splines, it overcomes the pitfalls of irregular sampling and dimensionality reduction, offering a powerful tool for analyzing complex dynamical systems in biology and beyond.

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