Manifold Interpolating Optimal-Transport Flows for Trajectory Inference

Guillaume Huguet, Daniel Sumner Magruder, Alexander Tong, Oluwadamilola Fasina, Manik Kuchroo, Guy Wolf, Smita Krishnaswamy

Abstract

Reconstructing continuous trajectories from static, cross-sectional snapshots is a fundamental challenge in fields such as developmental biology. Traditional methods often fail to account for the underlying geometry of high-dimensional data, leading to biologically implausible shortcuts. This paper introduces MIOFlow (Manifold Interpolating Optimal-Transport Flow), a framework that combines Geodesic Autoencoders with Neural Ordinary Differential Equations (Neural ODEs). By regularizing the latent space to respect the data manifold and utilizing optimal transport, MIOFlow achieves superior accuracy in trajectory reconstruction with significantly reduced computational overhead compared to existing state-of-the-art methods.

Introduction

In many scientific domains, observing the continuous evolution of a system is impossible due to the destructive nature of measurement. In single-cell RNA sequencing (scRNA-seq), for instance, the process of measuring a cell's gene expression profile necessitates its destruction. Consequently, researchers are left with "snapshots" of different cell populations at discrete time points rather than the continuous history of individual cells.

The task of "trajectory inference" involves filling the gaps between these snapshots to reconstruct the likely paths taken by the population. While generative models like Normalizing Flows have been applied to this problem, they often struggle with the "manifold hypothesis"—the principle that high-dimensional data typically lies on a lower-dimensional curved surface. When models ignore this geometry, they tend to find mathematically direct paths that are physically or biologically impossible. MIOFlow addresses these limitations by enforcing manifold-aware interpolation.

Methodology

MIOFlow employs a two-stage architecture designed to preserve data geometry while modeling temporal dynamics.

1. The Geodesic Autoencoder (GAE)

Before modeling the flow of the population, MIOFlow learns a latent representation of the data using a specialized Geodesic Autoencoder. Unlike standard autoencoders that use Euclidean distance in the latent space, the GAE is regularized using a multiscale diffusion geodesic distance. This ensures that the distance between two points in the latent space reflects their actual distance along the data manifold, effectively "flattening" the manifold into a space where linear or near-linear interpolation is more meaningful.

2. Neural ODEs and Optimal Transport

Once the latent space is established, MIOFlow uses a Neural ODE to model the continuous flow of points through time. The model is trained by minimizing the Wasserstein distance between the predicted distribution and the observed snapshots. To account for the stochastic nature of biological systems—such as cell fate branching—the framework incorporates a diffusion term. This effectively treats the system as a Stochastic Differential Equation (SDE) during the initial training phases, allowing the model to better capture bifurcations and complex population splits.

Experimental Results

The researchers evaluated MIOFlow against several benchmarks, including TrajectoryNet and Diffusion Schrödinger Bridges (DSB), across synthetic and real-world datasets:

  • Synthetic Benchmarks: On the "Petal" and "Dyngen" datasets, which feature complex merges and asymmetric branching, MIOFlow achieved significantly lower Wasserstein-1 ($W_1$) and Maximum Mean Discrepancy (MMD) scores.
  • Biological Fidelity: Using human embryonic stem cell data (Embryoid Body), MIOFlow successfully captured non-monotonic gene expression trends (e.g., the HAND2 gene) that competing models failed to represent accurately.
  • Computational Efficiency: MIOFlow demonstrated a massive reduction in training time. On the Petal dataset, it reached convergence in approximately 284 seconds, compared to 64 minutes for TrajectoryNet—a nearly 13-fold speedup. This efficiency stems from MIOFlow operating directly on the support of the distributions rather than requiring expensive Jacobian trace calculations.

Discussion and Limitations

MIOFlow represents a significant step forward in trajectory inference by prioritizing the underlying geometry of the data. By forcing the flow to remain on the learned manifold, it avoids the "straight-line" shortcuts common in other models.

However, some challenges remain. The model's reliance on ODE solvers means it may struggle with "stiff" dynamics characterized by sudden, sharp changes in state. Additionally, the current implementation assumes mass conservation, meaning it does not explicitly account for cell death or rapid proliferation. Future iterations may integrate Unbalanced Optimal Transport to address these biological realities.

Conclusion

MIOFlow provides a robust, efficient, and geometrically principled framework for reconstructing trajectories from snapshot data. By combining the manifold-learning capabilities of Geodesic Autoencoders with the continuous modeling power of Neural ODEs, it offers a powerful tool for understanding the complex dynamics of evolving populations in biology and beyond.

Summary updated

BibTeX
@inproceedings{huguet2022manifold,
  author = {Guillaume Huguet and Daniel Sumner Magruder and Alexander Tong and Oluwadamilola Fasina and Manik Kuchroo and Guy Wolf and Smita Krishnaswamy},
  title = {{Manifold Interpolating Optimal-Transport Flows for Trajectory Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure