Optimal Transport (OT) has emerged as a fundamental mathematical framework in modern machine learning, powering applications ranging from domain adaptation to generative modeling. However, its computational cost remains a significant bottleneck for large-scale applications. To address this, researchers have introduced cuRegOT, a high-performance GPU solver that makes second-order "Newton-type" methods practical and highly efficient for large-scale OT problems.
The Bottleneck in Optimal Transport
For the past decade, the Sinkhorn algorithm has been the gold standard for solving OT problems. Its popularity stems from its "GPU-friendly" nature, as it primarily relies on simple matrix-vector multiplications. However, Sinkhorn has a critical flaw: it can be painfully slow to converge when a high-accuracy solution is required or when the regularization parameter is small.
Advanced Newton-type methods, such as the Sparse-Plus-Low-Rank (SPLR) quasi-Newton algorithm, offer a compelling alternative by converging much faster than Sinkhorn. Unfortunately, they suffer from a "GPU problem." These methods require solving sparse linear systems, which mandates a "symbolic analysis" step to determine the matrix structure. Because this analysis is highly serial, it must be performed on the CPU. Consequently, the powerful GPU sits idle while the CPU processes the matrix structure, severely hindering overall efficiency.
The cuRegOT Solution
To bridge this gap, cuRegOT builds upon the SPLR quasi-Newton method and introduces a suite of algorithmic and architectural optimizations tailored specifically for NVIDIA hardware. The solver relies on three core innovations:
1. Amortized Symbolic Analysis
A key insight of cuRegOT is that the sparsity pattern of the transport plan changes very slowly during optimization. Instead of forcing the CPU to analyze the matrix structure at every single step, cuRegOT reuses the same sparsity pattern for several iterations (e.g., every 10 steps). The authors provide rigorous mathematical guarantees proving that this "amortization" strategy maintains the algorithm's linear convergence rate while drastically reducing CPU overhead.
2. Collaborative CPU-GPU Computing
Rather than letting the GPU sit idle during the occasional CPU-bound symbolic analysis, cuRegOT treats this "idle time" as an opportunity for free computation. While the CPU is busy, the GPU asynchronously runs several lightweight Sinkhorn iterations in the background to generate a candidate solution. The algorithm then evaluates and selects the best result between the Newton step and the Sinkhorn steps, effectively exploring the solution space without adding any wall-clock time.
3. Fused CUDA Kernels
In modern GPU computing, moving data across memory hierarchies is often more expensive than performing mathematical operations. Standard gradient calculations require multiple passes over the data, bottlenecking memory bandwidth. cuRegOT employs a custom "fused" kernel that computes element-wise math, row sums, and column sums in a single pass. This maximizes data reuse in the GPU's fastest memory (registers and shared memory), acknowledging that the true bottleneck is the speed at which the GPU can read the massive cost matrix.
Experimental Evaluation
The solver was rigorously evaluated across a variety of benchmarks designed to test different geometric and distribution properties:
- Synthetic I (Gaussian Point Clouds): Simple symmetric and asymmetric problems utilizing squared Euclidean distances.
- Synthetic II (Exponential to Mixture Gaussian): A more complex, multi-modal transport problem.
- CIFAR-10: A real-world computer vision task. To create semantically meaningful transport problems between image classes, the authors used deep features extracted from a pretrained ResNet-18 model rather than raw pixels.
Key Results
Extensive numerical experiments demonstrate that cuRegOT achieves significant speedups over state-of-the-art GPU-based solvers, including POT (Python Optimal Transport) and OTT-JAX.
While Sinkhorn-based methods—even those utilizing Anderson acceleration—often plateau or slow down significantly as they approach the optimal solution, cuRegOT maintains a fast, linear convergence rate, delivering high precision in a fraction of the time. Furthermore, cuRegOT exhibits remarkable robustness to regularization. As the regularization parameter becomes smaller (making the problem harder and more ill-conditioned), the performance gap between cuRegOT and Sinkhorn grows even wider, allowing cuRegOT to remain efficient where standard tools struggle.
Limitations and Future Directions
While cuRegOT significantly reduces reliance on the host CPU, it does not eliminate it entirely; the symbolic analysis step still occurs off-GPU. The authors suggest several promising avenues for future work:
- Pure GPU Symbolic Steps: Transitioning the remaining structural analysis entirely onto the GPU to eliminate CPU-GPU data transfer latency.
- Mixed-Precision Solvers: Leveraging FP16 or BF16 arithmetic to further accelerate sparse linear algebra operations.
- Broader Formulations: Extending the cuRegOT architecture to handle "Unbalanced Optimal Transport" and other non-entropic regularizers.
By cleverly hiding CPU bottlenecks and fusing memory-heavy operations, cuRegOT represents a major step forward in making high-precision, large-scale Optimal Transport computationally practical.
Summary updated