Low-Rank Optimal Transport through Factor Relaxation with Latent Coupling

Peter Halmos, Xinhao Liu, Julian Gold, Benjamin J. Raphael

Abstract

Optimal transport (OT) is a general framework for finding a minimum-cost transport plan, or coupling, between probability distributions, and has many applications in machine learning. A key challenge in applying OT to massive datasets is the quadratic scaling of the coupling matrix with the size of the dataset. We derive an alternative parameterization of the low-rank problem based on the latent coupling (LC) factorization, generalizing previous factored approaches. The LC factorization decouples the problem into three OT problems, offering greater flexibility and interpretability. We leverage these advantages to derive a new algorithm, Factor Relaxation with Latent Coupling (FRLC), which uses coordinate mirror descent to compute the LC factorization. FRLC handles multiple OT objectives—including Wasserstein, Gromov-Wasserstein, and Fused Gromov-Wasserstein—and various marginal constraints with linear space complexity. We demonstrate superior performance on diverse applications, including graph clustering and spatial transcriptomics, while highlighting the method's interpretability.

Introduction

Optimal Transport (OT) has emerged as a powerful "Swiss Army Knife" for comparing probability distributions in fields ranging from domain adaptation to single-cell biology. By finding the most efficient way to transform one distribution into another, OT provides a geometrically meaningful distance metric. However, the standard OT formulation suffers from a significant scaling bottleneck: the transport plan—the matrix describing how mass moves from source to target—grows quadratically ($O(N^2)$) with the number of data points. For modern datasets with hundreds of thousands of samples, storing and computing this matrix becomes computationally prohibitive.

To address this, researchers have turned to low-rank OT, which assumes the transport plan can be compressed into a lower-dimensional representation. While previous methods like the Low-Rank Optimal Transport (LOT) algorithm introduced factored couplings, they often relied on rigid structures that forced data through a fixed set of "hubs." This paper introduces Factor Relaxation with Latent Coupling (FRLC), a framework that improves upon these methods by providing a more flexible, interpretable, and computationally efficient factorization.

Methodology: The Latent Coupling Factorization

The core innovation of FRLC is the Latent Coupling (LC) factorization. In this model, the transport plan $P$ is factored into three distinct components:

  1. Sub-couplings ($Q$ and $R$): These matrices map high-dimensional data points to a smaller set of "latent" or "anchor" points.
  2. Latent Coupling ($T$): A small matrix that describes how mass moves between these latent points.

Unlike previous "factored coupling" approaches that restricted the inner matrix to be diagonal, FRLC allows $T$ to be a general coupling matrix. This flexibility enables "mass-splitting," where a single cluster in the source distribution can be mapped to multiple clusters in the target.

Optimization via Factor Relaxation

To solve for these components, the authors utilize coordinate mirror descent. This approach alternates between optimizing the mapping matrices $(Q, R)$ and the latent coupling $T$. By relaxing the constraints on the inner marginals, FRLC avoids the need for computationally expensive "Dykstra projections" required by earlier low-rank solvers. Instead, the problem is decomposed into three standard OT sub-problems that can be solved efficiently using the Sinkhorn algorithm. This "Factor Relaxation" ensures the algorithm scales linearly with the number of data points, making it suitable for massive datasets.

Experimental Evaluation

The authors evaluated FRLC across synthetic benchmarks and high-impact real-world applications to test its efficiency and accuracy.

Synthetic Benchmarks

On standard benchmarks, including "Two Moons" and Gaussian mixtures in up to 10 dimensions, FRLC consistently achieved lower transport costs than the state-of-the-art LOT algorithm. Crucially, it reached these solutions in approximately half the runtime, demonstrating the efficiency of the coordinate mirror descent approach.

Spatial Transcriptomics

In the field of biology, OT is used to align cells across different developmental stages. Using a massive dataset of mouse embryo development (E11.5 and E12.5 stages) containing up to 50,000 cells per slice, FRLC was tasked with predicting gene expression across time points. FRLC outperformed existing methods, achieving a Spearman correlation of 0.465 on marker gene prediction, significantly higher than the 0.394 achieved by LOT.

Graph Partitioning

FRLC's versatility was further tested on graph clustering using datasets such as Wikipedia and Amazon product networks. By treating graph alignment as a Gromov-Wasserstein problem, FRLC achieved the highest Adjusted Mutual Information (AMI) in 9 out of 12 dataset variants, proving its effectiveness in capturing structural data relationships.

Interpretability and Versatility

Beyond performance, FRLC offers unique advantages in interpretability. Because the latent coupling $T$ is a general matrix, it serves as a coarse-grained summary of the transport plan. Researchers can inspect $T$ to see exactly how clusters in the source data correspond to clusters in the target, even when the number of clusters differs between the two.

Furthermore, FRLC is highly versatile. It naturally extends to:

  • Gromov-Wasserstein (GW): For comparing datasets in different metric spaces.
  • Unbalanced OT: For biological systems where mass is not conserved (e.g., cell division or death).
  • Semi-relaxed Constraints: Providing flexibility in how strictly the marginal distributions must be matched.

Conclusion and Future Work

FRLC represents a significant step forward in making Optimal Transport a practical tool for large-scale data science. By decoupling the transport plan into latent components, it achieves a superior balance of speed, cost-accuracy, and interpretability. While the method currently requires the user to pre-select the rank $r$ (the number of latent points), future research may focus on automatically learning the optimal rank or integrating FRLC as a scalable layer within deep learning architectures. As datasets continue to grow in size and complexity, FRLC provides a robust framework for efficient and insightful distributional alignment.

Summary updated

Abstract

Optimal transport (OT) is a general framework for finding a minimum-cost transport plan, or coupling, between probability distributions, and has many applications in machine learning. A key challenge in applying OT to massive datasets is the quadratic scaling of the coupling matrix with the size of the dataset. [Forrow et al. 2019] introduced a factored coupling for the k-Wasserstein barycenter problem, which [Scetbon et al. 2021] adapted to solve the primal low-rank OT problem. We derive an alternative parameterization of the low-rank problem based on the $\textit{latent coupling}$ (LC) factorization previously introduced by [Lin et al. 2021] generalizing [Forrow et al. 2019]. The LC factorization has multiple advantages for low-rank OT including decoupling the problem into three OT problems and greater flexibility and interpretability. We leverage these advantages to derive a new algorithm $\textit{Factor Relaxation with Latent Coupling}$ (FRLC), which uses $\textit{coordinate}$ mirror descent to compute the LC factorization. FRLC handles multiple OT objectives (Wasserstein, Gromov-Wasserstein, Fused Gromov-Wasserstein), and marginal constraints (balanced, unbalanced, and semi-relaxed) with linear space complexity. We provide theoretical results on FRLC, and demonstrate superior performance on diverse applications -- including graph clustering and spatial transcriptomics -- while demonstrating its interpretability.
BibTeX
@inproceedings{halmos2024low,
  author = {Peter Halmos and Xinhao Liu and Julian Gold and Benjamin J. Raphael},
  title = {{Low-Rank Optimal Transport through Factor Relaxation with Latent Coupling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=hGgkdFF2hR},
}
Figure