Introduction
Optimal Transport (OT) defines a powerful framework for comparing probability distributions—such as images, word clouds, or 3D shapes—in a geometrically faithful way. By accounting for the underlying geometry of the data (e.g., recognizing that a "red" pixel is closer to an "orange" pixel than a "blue" one), OT provides a robust metric often referred to as the Wasserstein or Earth Mover’s Distance.
Despite its theoretical appeal, the practical impact of OT has been limited by its computational burden. This paper introduces a new class of stochastic optimization algorithms designed to make OT scalable to massive, high-dimensional datasets. By re-casting the dual OT problem as an expectation maximization, the authors provide the first practical methods to compute OT distances between continuous distributions without the need for prior discretization.
The Challenge of Optimal Transport
Historically, applying Optimal Transport to machine learning problems has been plagued by two major issues:
- Computational Burden: Traditional solvers are notoriously slow, especially as the size of the dataset grows.
- Discretization Bias: Most solvers require continuous densities to be converted into discrete "bins" or grids. This process is highly inefficient in high-dimensional spaces and inherently introduces approximation errors.
The authors aim to bridge this gap by creating algorithms capable of handling arbitrary distributions, provided one can draw samples from them—the standard setup in modern, high-dimensional machine learning.
Methodology: A Stochastic Approach
The core innovation of this work is viewing the Dual OT problem not as a static optimization, but as the maximization of an expectation. This paradigm shift unlocks the use of stochastic programming. Furthermore, the authors utilize entropic regularization to "smooth" the problem, ensuring that optimization algorithms can converge quickly.
The paper proposes three specific algorithmic treatments tailored to the nature of the data:
- Discrete vs. Discrete: The authors employ the Stochastic Averaged Gradient (SAG) algorithm. Unlike the standard Sinkhorn algorithm, which processes all data points in every iteration, SAG processes small batches, drastically accelerating large-scale discrete problems.
- Discrete vs. Continuous (Semi-discrete): By applying Averaged Stochastic Gradient Descent (SGD), one distribution can remain truly continuous. This avoids the noise and bias introduced by discretization.
- Continuous vs. Continuous: In their most novel contribution, the authors represent the dual variables in a Reproducing Kernel Hilbert Space (RKHS) and solve the problem using Kernel SGD. This is the first known method to solve the fully continuous OT problem without falling back on finite samples.
Key Insights
- Dual OT as Expectation: Realizing that the dual objective function is essentially an average over random variables allows the application of the stochastic optimization toolbox (SGD, SAG, etc.) that has fueled the deep learning revolution.
- Breaking the Discretization Curse: By utilizing RKHS for continuous distributions, the authors prove that gridding the space is unnecessary. Instead, a continuous "potential function" can be learned directly.
- Entropic Smoothing is Key: While entropic regularization was previously known via Sinkhorn's algorithm, this paper demonstrates that it provides the necessary mathematical "smoothness" (Lipschitz gradients) to guarantee fast convergence for stochastic methods.
Experimental Results
The authors validated their methods on several benchmarks, including synthetic Gaussian mixtures in 3D space and bags of word-embeddings (using 300-dimensional GloVe vectors to compare the complete works of 35 different authors, with each represented as a cloud of 20,000 words).
- Speedup: On the word-embedding task, the SAG algorithm was more than 2.5x faster than the state-of-the-art Sinkhorn algorithm in reaching the same level of accuracy.
- Scalability: The stochastic approach easily handled 20,000+ points per distribution, a scale where traditional linear programming solvers would struggle or fail entirely.
- Continuous Accuracy: In the semi-discrete case, the SGD approach successfully converged to the true solution, whereas traditional "sampling-then-solving" methods remained biased due to discretization error.
Limitations and Future Work
While groundbreaking, the proposed methods have a few limitations. The Kernel SGD method for continuous-to-continuous OT has a quadratic complexity $O(k^2)$ relative to the number of iterations. Scaling this further may require techniques like Random Fourier Features or Nyström approximations. Additionally, stochastic methods require careful tuning of learning rates (stepsizes); although heuristics are provided, finding the optimal rate still demands manual effort. Finally, the continuous solver assumes the potentials belong to a specific RKHS, making the choice of kernel critical if the true optimal transport plan is highly non-smooth.
Summary updated