TL;DR
The authors introduce DROT, a new algorithm for solving Optimal Transport (OT) problems based on Douglas-Rachford splitting. Unlike the industry-standard Sinkhorn method, DROT solves the original OT problem directly without needing entropic regularization. This approach results in sparser solutions, better numerical stability on GPUs, and a superior theoretical convergence rate of $O(1/\epsilon)$.
What Problem Does This Paper Address?
Optimal Transport is a powerful mathematical tool for comparing probability distributions, used in everything from generative modeling (like GANs) to genomics. However, solving the "exact" OT problem requires computing a massive linear program that scales poorly with large datasets.
To bypass this computational bottleneck, most researchers rely on the Sinkhorn method, which adds an "entropy" term to make the math easier and faster to compute. While fast, Sinkhorn has three major flaws:
- Numerical Instability: As you try to get more accurate results (by decreasing the regularization parameter $\eta$), the numbers tend to explode or vanish, often crashing on standard single-precision GPU hardware.
- Dense Solutions: Sinkhorn produces a "transport plan" where every source point sends a tiny bit of mass to every target point. In reality, optimal transport plans are usually sparse.
- Slow Convergence: Theoretically, Sinkhorn requires $O(1/\epsilon^2)$ iterations to reach a specific accuracy level $\epsilon$.
This paper aims to provide a method that matches Sinkhorn's per-iteration speed but avoids its pitfalls by tackling the original, unregularized problem directly.
Methods
The authors adapt Douglas-Rachford (DR) splitting—a classic optimization tool—specifically for the structure of Optimal Transport. Their key contributions include:
- Variable Elimination: Standard DR splitting requires storing and updating several large matrices. The authors mathematically simplified the iterations so the entire algorithm can be executed by updating just one matrix variable.
- DROT Algorithm: They derive a specific set of updates that only involve matrix-vector multiplications and simple element-wise operations, making the algorithm highly parallelizable.
- GPU Kernel Fusion: Recognizing that OT is "memory-bound" (the bottleneck is moving data from RAM to the processor, not the math itself), they designed a custom CUDA kernel. This kernel "fuses" multiple steps into one, ensuring each piece of data is read and written as few times as possible.
- Primal-Dual Stopping: The method implicitly tracks dual variables, allowing for a robust stopping criterion at no extra computational cost.
Datasets
The method was evaluated on several benchmarks:
- Synthetic 2D Gaussians: Randomly generated probability measures to test robustness and convergence across different scales.
- MNIST: The classic handwritten digit dataset, where digits are treated as 2D distributions.
- Color Transfer: A practical application where the color distribution of one image is mapped onto the geometry of another.
Key Insights and Ideas
- The "Memory Wall" is the Real Enemy: The paper highlights that for large-scale OT, floating-point operations are cheap, but memory access is expensive. By reducing the algorithm to just 2.5 memory operations per iteration, DROT matches Sinkhorn's hardware efficiency.
- Exact is Better than Approximate: By solving the original problem, DROT naturally produces sparse transport plans. For example, in color transfer tasks, it yields plans with ~99% zeros. This is often more physically meaningful than the "blurry," dense plans produced by Sinkhorn.
- Linear Convergence: One of the most significant theoretical contributions is proving that DROT achieves a global linear convergence rate for OT, despite the problem lacking "strong convexity"—a mathematical property usually required for such fast rates.
Key Results
- Theoretical Edge: DROT has an iteration complexity of $O(1/\epsilon)$, a significant jump over Sinkhorn’s $O(1/\epsilon^2)$.
- Numerical Robustness: In experiments using single-precision (float32), Sinkhorn often failed to converge or produced errors as accuracy requirements increased. DROT remained stable and consistently reached high-accuracy solutions.
- Wall-clock Speed: On an NVIDIA Tesla T4 GPU, DROT's per-iteration time is nearly identical to the fastest Sinkhorn implementations. However, because it requires fewer iterations to reach high accuracy, it is significantly faster overall—especially compared to "log-domain" Sinkhorn variants used to patch stability issues.
Limitations and Future Work
- Convergence Factor: While the authors prove linear convergence, the actual rate depends on the problem data and can be close to 1 in the worst case, meaning it might still feel "slow" for certain pathological datasets.
- Initialization: The current implementation uses a simple initialization strategy. The authors suggest that more sophisticated "warm-starting" strategies could further accelerate the method.
- Hyperparameters: The algorithm introduces a penalty parameter $\rho$. While the paper provides some guidance, the optimal choice of $\rho$ for specific applications remains an area for further empirical study.
Summary updated