Understanding how a population evolves over time is a fundamental challenge in many scientific fields. Often, researchers can only capture "snapshots" of a population rather than tracking individual trajectories. For instance, in single-cell RNA sequencing (scRNA-seq), measuring a cell’s gene expression inherently destroys it. We can observe the distribution of cell states at Day 1 and Day 2, but we cannot track a specific cell's continuous journey between those days.
To bridge these gaps, researchers frequently rely on Optimal Transport (OT), a mathematical framework that finds the most "efficient" way to map one probability distribution to another. However, standard OT typically assumes that particles move in straight lines, relying on Euclidean distance. In reality, biological and physical systems often follow complex, curved paths dictated by an underlying manifold. Without knowing the "map"—or the metric tensor—of this manifold, inferred trajectories are often biologically or physically implausible.
This paper introduces a novel method for learning a Riemannian metric tensor directly from cross-sectional data, allowing researchers to infer realistic, curved trajectories for individual particles even when their specific paths are never directly observed.
Methodology
The authors propose a framework to learn the spatially-varying Riemannian metric tensor $A(x)$ by combining neural networks with the theory of Optimal Transport.
- Neural Parametrization: The model represents the inverse metric tensor $A^{-1}(x)$ using a neural network. This parametrization is carefully designed to ensure the output remains positive definite, a strict mathematical requirement for a valid metric.
- Dual Formulation: Computing geodesics (the shortest paths) on an unknown manifold is computationally prohibitive. To bypass this, the authors utilize a "dual" formulation of the 1-Wasserstein distance. This clever transformation turns the problem into a minimax optimization that can be efficiently solved using standard gradient-based tools.
- Alternating Optimization: The training process alternates between two steps: finding the optimal "potential functions" that describe the transport of the population, and updating the metric tensor to minimize the overall transport cost.
- Regularization: To prevent the model from collapsing into trivial solutions (such as shrinking the distance between all points to zero), a regularizer is applied to penalize excessively large inverse metrics.
Experiments and Key Results
The framework was evaluated across synthetic and real-world datasets, demonstrating that the "statistical drift" of a population over time contains enough information to recover local directions of motion without needing continuous trajectory data.
Synthetic Manifolds
The authors first tested their model on three 2D synthetic examples where the ground-truth metric is known: "Circular," "Mass Splitting," and "X Paths."
The model successfully recovered the ground-truth eigenspaces of the metric with remarkable accuracy, achieving alignment scores up to 0.995. This confirmed the model's ability to discover the manifold that best explains the observed dynamics.
Real-World Applications
- scRNA-seq Data: Applied to a dataset of cells undergoing reprogramming over 18 days, the learned metric significantly improved downstream trajectory inference. When data was sampled sparsely, using the learned metric reduced the Earth Mover's Distance error in predicting intermediate cell states by 19.7% compared to standard baselines. Furthermore, the method proved computationally lightweight, taking only 16 minutes to learn the metric on a single GPU.
- Bird Migration: The authors used untagged sightings of snow geese from the eBird database to train the metric, and evaluated it against actual GPS-tagged trajectories from Movebank. The learned metric enabled the inference of curved, realistic migratory paths, reducing the Dynamic Time Warping distance error by 26.9% compared to a straight-line Euclidean baseline.
Limitations and Future Directions
While highly effective, the current model learns a metric strictly on continuous $\mathbb{R}^D$ spaces. Many datasets, such as social networks or certain biological hierarchies, might be better represented as discrete graphs, suggesting a natural extension for future graph-based metric learning.
Additionally, the current approach relies on the 1-Wasserstein distance, which assumes deterministic "least-action" paths. Future iterations could incorporate Schrödinger bridges, which introduce a stochastic or noisy component to the motion, potentially offering an even more accurate model for inherently noisy biological systems.
Summary updated