In many scientific fields, researchers observe populations evolving over time without the ability to track individual members. For instance, in single-cell RNA sequencing, the measurement process destroys the cell, providing only "snapshots" of a population at different stages. Inferring the trajectories of individual entities from these group-level observations is a fundamental challenge known as trajectory inference.
A recent paper from MIT CSAIL researchers, Riemannian Metric Learning via Optimal Transport, introduces a novel framework to address this by learning the underlying "terrain" or geometry upon which these populations move. By learning a spatially varying Riemannian metric tensor, the method can infer realistic, curved trajectories that reflect the natural constraints of the system.
The Challenge of Trajectory Inference
Standard approaches to trajectory inference often rely on Optimal Transport (OT). Classical OT assumes that particles move between observations along the path of least resistance. In a flat, Euclidean space, this path is simply a straight line. However, real-world motion is rarely linear:
- Biology: Cells follow specific gene-expression pathways rather than jumping randomly across state space.
- Ecology: Migrating birds are diverted by geographical features like mountains or weather patterns.
Assuming a flat Euclidean metric leads to inferred trajectories that ignore these underlying constraints. To achieve higher fidelity, one needs a Riemannian metric—a way to define distance that changes based on location. Since these metrics are rarely known a priori, the authors propose learning them directly from the data.
Methodology: Learning the Metric
The core contribution is a framework to parametrize and learn the metric tensor $A(x)$ from population snapshots:
- Model: The population is treated as a probability measure evolving on a manifold. The metric tensor $A(x)$ defines the "cost" of movement in any direction at point $x$.
- Objective: The model seeks a metric that minimizes the average 1-Wasserstein distance between consecutive time snapshots, effectively finding the geometry that makes the observed transitions most efficient.
- Neural Parametrization: The inverse metric $A^{-1}(x)$ is represented by a neural network, constrained to be positive definite to ensure mathematical validity.
- Optimization: The problem is formulated as a minimax adversarial game. One component finds the optimal potential to move mass, while the other updates the metric to minimize the path lengths under the new geometry.
Experimental Validation
The authors validated their approach across synthetic and real-world datasets:
- Synthetic "Toy" Datasets: In "Circular," "Mass Splitting," and "X Paths" scenarios, the model successfully recovered known ground-truth metrics, demonstrating that the optimization naturally aligns the metric's eigenvectors with the flow of data.
- scRNA-seq Data: On a dataset of 500 cells during reprogramming, the learned metric reduced trajectory inference error (EMD) by 19.7% compared to Euclidean baselines.
- Bird Migration: Using eBird sightings of snow geese, the model reduced the distance between inferred and actual GPS-tagged trajectories by 26.9%, correctly capturing the curved paths birds take to avoid obstacles.
Key Insights and Future Work
A critical finding is that the metric acts as a learned prior, absorbing biological or physical constraints into the geometry of the space. Unlike grid-based Eulerian methods, this Lagrangian approach operates directly on sample coordinates, making it scalable to high-dimensional data like gene expressions; the scRNA-seq training took only 16 minutes on a single GPU.
Future work includes extending the model to graph-based data (e.g., social networks) and integrating it with Schrödinger Bridges to account for stochastic diffusion or Brownian motion in particle trajectories.
Summary updated