Abstract
Optimal Transport (OT) is a mathematical framework that first emerged in the eighteenth century and has led to a plethora of methods for answering many theoretical and applied questions. The last decade has been a witness to the remarkable contributions of this classical optimization problem to machine learning. This paper is about where and how optimal transport is used in machine learning with a focus on the question of scalable optimal transport. We provide a comprehensive survey of optimal transport while ensuring an accessible presentation as permitted by the nature of the topic and the context. First, we explain the optimal transport background and introduce different flavors (i.e., mathematical formulations), properties, and notable applications. We then address the fundamental question of how to scale optimal transport to cope with the current demands of big and high dimensional data. We conduct a systematic analysis of the methods used in the literature for scaling OT and present the findings in a unified taxonomy. We conclude with presenting some open challenges and discussing potential future research directions.
Introduction
At its core, machine learning often boils down to comparing probability distributions—for instance, comparing a model's output to real-world data. While standard metrics like Kullback-Leibler (KL) divergence are computationally efficient, they are "geometry-blind," only comparing overlapping parts of distributions. If two distributions do not overlap, KL divergence provides no useful gradient for optimization.
Optimal Transport (OT) addresses this by viewing distributions as "heaps of sand" and calculating the minimum work needed to transform one heap into another. This makes it "geometry-aware," but historically, it has come with a heavy computational price tag. The original formulation requires solving a linear program with $O(n^3 \log n)$ complexity, making it unusable for datasets with more than a few thousand points. This survey explores the "scaling revolution" that has finally made OT a practical, geometry-aware tool for modern machine learning.
Core Formulations and Taxonomy
The survey categorizes the diverse landscape of OT research into a structured taxonomy, focusing on how different "knobs" of the OT machinery can be adjusted to achieve scalability.
The paper introduces a unified taxonomy for scaling OT, organized into four main categories:
- Measures Simplification: Reducing input data complexity through methods like Sliced OT (1D projections solved via sorting) and Quantization (representing distributions with centroids).
- Structuring the Optimal Plan: Enforcing constraints such as Low-Rank Factorization to drastically reduce the search space for the transport plan.
- Ground Cost Approximation: Speeding up point-to-point distance calculations using techniques like Kernel Sparsification.
- Solver Acceleration: Improving the optimization process itself, notably through the Sinkhorn Algorithm (entropic regularization) and emerging Neural Solvers.
Key Insights: The Power of "Lifting"
One of OT's most significant strengths is its "lifting" property. It allows a distance defined between individual elements (like words) to be "lifted" to a distance between whole sets (like documents).
This capability allows OT to recognize semantic similarity even when there is no literal word overlap. For example, "Obama speaks in Illinois" can be identified as semantically close to "The president greets the press in Chicago." Other key insights include:
- The Sinkhorn Revolution: Entropic regularization (Cuturi, 2013) turned OT into a differentiable, GPU-friendly problem, marking a turning point for its adoption in deep learning.
- Relational OT (Gromov-Wasserstein): This formulation enables the comparison of distributions in entirely different metric spaces, facilitating tasks like cross-lingual translation without a dictionary.
- Interpretability: Unlike many "black-box" distances, OT provides an explicit "optimal plan," offering a map of correspondences between distributions.
Applications and Results
The survey highlights a decade of performance gains, moving OT from $O(n^3)$ to $O(n^2)$ (Sinkhorn), $O(n \log n)$ (Sliced), and even $O(n)$ with specific neural solvers. These advancements have enabled OT to scale to datasets with over a million points.
Major success stories include:
- Generative Modeling: The Wasserstein GAN (WGAN) uses OT theory to stabilize training and produce higher-quality images by avoiding vanishing gradients.
- Domain Adaptation: OT is used to align datasets from different sources, such as satellite imagery or digit datasets (MNIST/USPS).
- Natural Language Processing: Word Mover’s Distance provides a robust metric for document similarity.
Limitations and Future Frontiers
Despite significant progress, several challenges remain:
- The Regularization Trade-off: Balancing speed and precision in Sinkhorn-based methods remains an art.
- Standardized Benchmarking: There is a lack of large-scale, standardized benchmarks for OT solvers.
- Structured Data: Applying OT natively to graphs or functional data while preserving their topology is an ongoing area of research.
- Robustness of Neural Solvers: Ensuring that fast neural solvers generalize well to out-of-distribution data is critical for real-world deployment.
Summary updated