Abstract
Optimal Transport (OT) is a powerful mathematical framework for comparing probability distributions, yet its application to large-scale data is often hindered by the computational complexity of solving the underlying linear program. While the Sinkhorn method is the current industry standard, it relies on entropic regularization which introduces inaccuracy, numerical instability, and dense transport plans. This paper introduces DROT (Douglas-Rachford for Optimal Transport), a splitting method that solves the original OT problem directly. By leveraging variable elimination and custom GPU kernels, DROT achieves an iteration complexity of $O(1/\epsilon)$, significantly outperforming Sinkhorn's $O(1/\epsilon^2)$ while maintaining a comparable memory footprint and superior numerical stability.
1. Introduction
Optimal Transport has become a cornerstone in fields ranging from deep generative modeling to genomics. Despite its utility, the "pure" OT problem is essentially a large-scale Linear Program (LP), making standard solvers prohibitively slow for modern datasets. To circumvent this, researchers typically employ the Sinkhorn method, which adds an entropic penalty to the objective function.
While computationally efficient per iteration, the Sinkhorn method introduces three critical drawbacks: it solves an approximation rather than the exact problem, it suffers from numerical instability at high precision, and it produces dense transport plans where every source point interacts with every target point. This paper proposes DROT, an algorithm designed to match the speed of Sinkhorn while preserving the sparsity and accuracy of the original LP formulation.
2. Methodology
2.1 Douglas-Rachford Splitting
The core of the DROT algorithm is the application of Douglas-Rachford (DR) splitting to the primal OT problem. While DR is a well-established optimization technique, its direct application to OT typically requires managing multiple large matrices, which leads to prohibitive memory overhead.
2.2 Variable Elimination and Memory Efficiency
The authors mathematically simplify the DR iterations through a variable elimination strategy. This allows the entire algorithm to be executed using only a single physical matrix variable, effectively reducing the memory footprint to match that of the Sinkhorn method. This optimization is crucial for scaling the algorithm to high-dimensional problems.
2.3 GPU Optimization and CUDA Kernels
Recognizing that OT solvers are primarily memory-bound—where the bottleneck is data movement rather than raw computation—the authors developed a custom CUDA kernel. This kernel "fuses" multiple mathematical steps into a single operation, performing on-the-fly reductions. This design minimizes expensive reads and writes to the GPU's global memory, ensuring that DROT remains competitive with highly optimized CuBLAS-based implementations.
3. Theoretical Analysis
DROT offers significant theoretical advantages over existing methods. The authors prove a sublinear convergence rate of $O(1/\epsilon)$, a marked improvement over the $O(1/\epsilon^2)$ complexity associated with Sinkhorn. Furthermore, the paper establishes a global linear convergence rate, a rare property for non-strongly convex problems like the standard OT formulation. Additionally, the algorithm implicitly maintains a primal-dual pair, allowing users to monitor the duality gap as a stopping criterion at no extra computational cost.
4. Experimental Evaluation
4.1 Datasets and Setup
The algorithm was evaluated using two primary benchmarks:
- Synthetic 2D Gaussians: Randomly generated probability measures used to test robustness across varying means, covariances, and precision levels (Float32 and Float64).
- Image Color Transfer: A real-world application mapping color distributions between images quantized to 750 centroids via K-Means.
4.2 Key Results
- Accuracy and Stability: DROT solved 100% of test cases to high accuracy. In contrast, Sinkhorn variants often failed (solving only ~60% of instances) due to numerical errors, particularly when low regularization was used to seek higher precision.
- Sparsity: In the color transfer task, DROT produced transport plans that were 99% sparse. This sparsity is physically meaningful, identifying the true optimal support, whereas Sinkhorn results remained dense and blurry.
- Computational Performance: Empirical results confirmed that DROT can reach an accuracy of $\epsilon = 0.001$ in scenarios where Sinkhorn variants fail to converge. The per-iteration runtime remains nearly identical to optimized Sinkhorn implementations for large-scale problems.
5. Discussion and Insights
The success of DROT highlights that sparsity in OT is a feature to be leveraged rather than a bug to be smoothed over. By focusing on memory bandwidth and minimizing touches to the large cost matrix, DROT proves that exact solvers can be as efficient as approximate ones. Moreover, the inherent stability of the DR splitting allows DROT to operate effectively in single-precision (Float32), where Sinkhorn often requires log-domain tricks that increase computational overhead.
6. Limitations and Future Work
While DROT is highly effective, it does exhibit sensitivity to the penalty parameter $\rho$. Although the authors provide a conservative theoretical value, adaptive selection strategies could further enhance performance. Additionally, the algorithm may require a "warm-up" period for very large dimensions to avoid initial zero-value iterations. Future research may also explore the detailed implementation of DROT for the dual form of the OT problem.
7. Conclusion
DROT represents a significant step forward in Optimal Transport solvers. By combining the theoretical strengths of Douglas-Rachford splitting with modern GPU-centric engineering, the authors provide a method that is faster, more accurate, and more stable than the current state-of-the-art, all while solving the original, unregularized OT problem.
Summary updated