Introduction
Optimal Transport (OT)—often referred to as the Earth Mover’s Distance—is a foundational metric for measuring the similarity between two probability distributions. By calculating the minimum "work" required to transform one distribution into another, OT has revolutionized fields ranging from Generative Adversarial Network (GAN) training to image retrieval. However, its widespread adoption is often bottlenecked by steep computational costs.
Historically, researchers have faced a strict dichotomy when scaling OT:
- Combinatorial Algorithms: These methods are highly accurate but notoriously difficult to parallelize, making them sluggish on modern hardware like GPUs.
- Numerical Solvers (e.g., the Sinkhorn method): These algorithms are highly parallelizable and currently dominate the GPU landscape. However, they rely on entropic regularization, which can blur the precision of the final result and require many iterations to converge accurately.
This paper bridges the gap by introducing the first parallel combinatorial algorithm specifically designed to approximate the OT distance. Built from the ground up for GPUs and Massive Parallel Computation (MPC) frameworks like Hadoop and MapReduce, the algorithm delivers the accuracy of combinatorial methods with the speed of parallel execution.
Methodology: A Parallel Combinatorial Approach
The authors' algorithm is rooted in the classic push-relabel framework, a staple technique in network flow problems. To adapt this sequential framework for parallel execution, the authors introduce several key innovations:
- Cost Discretization: By rounding edge costs to integer multiples of a precision parameter $\varepsilon$, the algorithm efficiently finds an additive $\varepsilon$-approximation while keeping the total number of iterations bounded to a manageable $O(1/\varepsilon^2)$.
- Simplified Parallel Matching: The core of each algorithm "phase" involves finding a maximal matching in a bipartite graph. Because standard matching is sequential, the authors adapt the Israeli-Itai algorithm. In their bipartite variant, the supply side of the graph makes random proposals, and the demand side arbitrarily accepts one, allowing flow augmentations to occur simultaneously.
- Matrix-Based GPU Implementation: To harness the massive throughput of modern graphics cards, the authors translate these graph operations into a "GPU-friendly" format. The algorithm is executed via row and column manipulations on a slack matrix.
- MPC Efficiency: In the MPC model, the algorithm achieves a sub-logarithmic round complexity of $O(\log(\log(n/\varepsilon))/\varepsilon^2)$. This is a significant theoretical breakthrough, shattering the $\Omega(\log n)$ round barrier that constrained previous approaches.
Experimental Setup
To validate their approach, the authors benchmarked their algorithm against the industry-standard Sinkhorn method provided by the Python Optimal Transport (POT) library. Evaluations spanned three distinct domains:
- Synthetic Data: Randomly generated point sets in a 2-dimensional unit square ($n = 10,000$).
- Computer Vision (MNIST): Handwritten digit images, calculating cost based on the $L_1$ distance between normalized pixel values.
- Natural Language Processing (NLP): Document distances computed using GloVe word embeddings across datasets like The Count of Monte Cristo, 20Newsgroup, and IMDB reviews.
Key Findings and Results
- Significant GPU Speedups: The proposed combinatorial algorithm consistently outperforms the Sinkhorn method on GPUs. Notably, the performance gap widens as the support size ($n$) of the distributions increases, proving its scalability.
- Superior Parallel Efficiency: While Sinkhorn is the current gold standard for GPUs, it often requires a massive number of iterations to reach high precision. The combinatorial approach requires significantly fewer parallel rounds to achieve comparable error bounds.
- Rigorous Theoretical Bounds: The algorithm achieves a parallel complexity of $O(\log(n)/\varepsilon^2)$. Furthermore, for the specific case of the assignment problem (a subset of OT), its sequential execution time matches the current state-of-the-art at $O(n^2/\varepsilon)$.
Limitations and Future Directions
While the algorithm demonstrates exceptional empirical performance, the authors note that their theoretical parallel complexity analysis ($O(\log n)$ per phase) may actually be conservative. In practice, the algorithm converges even faster than the theory predicts.
Several open questions remain for future work. Most prominently, researchers will investigate whether the parallel complexity can be improved to be entirely independent of $n$. Additionally, while the current matrix-based implementation already outpaces Sinkhorn, further low-level CUDA optimizations could widen the performance lead. Finally, the practical simplifications introduced for the GPU implementation may offer new mathematical pathways to improve the worst-case theoretical bounds of parallel OT solvers across the board.
Summary updated