Differentiable Cost-Parameterized Monge Map Estimators

Samuel Howard, George Deligiannidis, Patrick Rebeschini, James Thornton · DOI

Abstract

Optimal Transport (OT) typically relies on the squared-Euclidean distance as a ground cost, which often fails to capture the complex, non-linear dynamics of real-world data such as gene expression in biological systems. We present a framework for learning ground costs by making the Monge map estimator fully differentiable. By parameterizing the cost function with Input Convex Neural Networks (ICNNs) and optimizing the transport map directly through implicit differentiation, our method incorporates partial prior knowledge to learn highly accurate transport models. We demonstrate that this approach significantly outperforms standard Euclidean OT and matrix-based optimization on both synthetic benchmarks and real-world single-cell transcriptomics data.

Introduction

Optimal Transport (OT) provides a robust mathematical framework for finding the most efficient transformation between two probability distributions. Its utility spans various domains, from computer vision to computational biology. However, the efficacy of OT is heavily dependent on the choice of the "ground cost"—the metric defining the effort required to move mass between points.

The standard choice, squared-Euclidean distance, assumes data moves along straight lines. In complex systems like cellular differentiation, gene expression changes follow intricate manifolds rather than Euclidean shortcuts. While "Inverse OT" methods attempt to learn better costs, they often require fully paired datasets or rely on computationally brittle bi-level optimization. This work introduces a flexible, end-to-end differentiable framework to learn adapted costs from partial or structural information, such as a small set of known trajectories.

Methodology

The proposed framework centers on a cost-parameterized Monge map estimator, built upon three technical pillars:

  1. Neural Cost Functions: The cost function $c(x, y) = h_\theta(x - y)$ is parameterized using Input Convex Neural Networks (ICNNs). This ensures strict convexity, which is a mathematical prerequisite for a unique and well-defined Monge map. By using ICNNs, the model searches for the simplest convex cost that explains the data, providing a strong inductive bias that improves generalization.
  2. Differentiable Mapping: By utilizing an "entropic mapping estimator"—a smoothed version of OT—the entire pipeline becomes differentiable. The authors employ implicit differentiation to backpropagate errors from the final transport map through the Sinkhorn algorithm and cost gradient inversion, directly to the cost function parameters. This allows for "warmstarting" iterations, making the end-to-end training computationally feasible.
  3. Diffeomorphic Augmentation: To handle high non-linearity, the convex cost is wrapped in learnable diffeomorphisms (normalizing flows), resulting in costs of the form $c(x, y) = h(\Phi(x) - \Phi(y))$. This significantly increases the expressivity of the model while maintaining the structural benefits of the OT framework.

Experiments and Results

The method was evaluated on synthetic 2D distributions and high-dimensional biological data to test its ability to recover ground-truth mappings and generalize to unseen data.

Synthetic Benchmarks

On synthetic datasets such as "T-shape," "moon," and "spiral," the model successfully recovered complex ground-truth mappings that standard Euclidean OT failed to capture. As shown in Figure 1, while squared-Euclidean OT produces straight-line "shortcuts" that ignore the data's structure, the proposed estimator learns the underlying "curvy" paths that align with the true data distribution.

Comparison of transport maps on synthetic 2D datasets.

Biological Application: Live-seq

The framework was applied to Live-seq single-cell transcriptomics data. Unlike most single-cell data, Live-seq provides a rare "gold standard" of actual cell trajectories. Using these few known pairs, the model learned a cost function for the entire population.

Optimizing the map directly proved significantly more effective than traditional matrix-based optimization. On the Live-seq data, the proposed map optimization achieved a Root Mean Square Error (RMSE) of 2.02, a dramatic improvement over the 16.9 RMSE observed for methods optimizing the coupling matrix. Figure 2 illustrates how map optimization leads to predictions that better align with ground-truth trajectories compared to matrix-based approaches or standard MLP costs.

Performance on biological Live-seq data comparing map vs. matrix optimization.

Discussion and Conclusion

By optimizing the map estimator directly rather than just the cost, the proposed method ensures that the resulting transport map exhibits desired properties during training. This approach allows researchers to incorporate structural control, such as forcing low-rank or k-directional displacements.

While the method introduces some computational overhead due to inner optimization loops, techniques like warmstarting and implicit differentiation make it feasible for practical use. Future work will explore applying these adapted costs to downstream tasks such as drug response modeling and lineage tracing in developmental biology, where ground-truth trajectories are scarce but critical for understanding system dynamics.

Summary updated

BibTeX
@misc{howard2024differentiable,
  author = {Samuel Howard and George Deligiannidis and Patrick Rebeschini and James Thornton},
  title = {{Differentiable Cost-Parameterized Monge Map Estimators}},
  year = {2024},
  eprint = {2406.08399},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08399},
}
Figure