[Paper Review] A Study of Performance of Optimal Transport
This paper evaluates combinatorial and matrix-scaling methods for computing optimal transport (OT) distances, demonstrating that network simplex and a novel batched Kuhn-Munkres algorithm consistently outperform Sinkhorn and Greenkhorn—even in low-accuracy regimes—by up to orders of magnitude in speed. The authors introduce a new batched KM variant that significantly accelerates exact OT computation on assignment problems.
We investigate the problem of efficiently computing optimal transport (OT) distances, which is equivalent to the node-capacitated minimum cost maximum flow problem in a bipartite graph. We compare runtimes in computing OT distances on data from several domains, such as synthetic data of geometric shapes, embeddings of tokens in documents, and pixels in images. We show that in practice, combinatorial methods such as network simplex and augmenting path based algorithms can consistently outperform numerical matrix-scaling based methods such as Sinkhorn [Cuturi'13] and Greenkhorn [Altschuler et al'17], even in low accuracy regimes, with up to orders of magnitude speedups. Lastly, we present a new combinatorial algorithm that improves upon the classical Kuhn-Munkres algorithm.
Motivation & Objective
- To systematically compare the runtime efficiency of exact and approximate optimal transport algorithms across diverse data types.
- To evaluate the practical performance of combinatorial methods (e.g., network simplex, auction, Kuhn-Munkres) versus matrix-scaling methods (e.g., Sinkhorn, Greenkhorn) in real-world settings.
- To investigate the impact of regularization parameters on convergence and accuracy in matrix-scaling approaches.
- To develop and benchmark a new batched Kuhn-Munkres algorithm that improves upon classical exact methods for the assignment problem.
- To assess the trade-offs between accuracy, runtime, and numerical stability in OT computation, especially under low-accuracy tolerances.
Proposed method
- Implemented and benchmarked BLAS-optimized C++ versions of network simplex, auction, and Kuhn-Munkres algorithms for exact OT computation.
- Evaluated matrix-scaling methods (Sinkhorn and Greenkhorn) with logarithmic flow tracking to prevent numerical overflow and improve stability.
- Introduced a batched variant of the Kuhn-Munkres algorithm that processes multiple assignment problems simultaneously to improve cache efficiency and reduce overhead.
- Used a fixed approximation factor of 1.1 for comparison across approximate algorithms to ensure fair evaluation of accuracy vs. speed trade-offs.
- Scaled cost matrices to a maximum value of 1 to enable fair comparison of regularization parameter (η) effects across datasets.
- Conducted convergence analysis by measuring iterations and runtime as functions of η to study the trade-off between accuracy and computational cost.
Experimental results
Research questions
- RQ1Do combinatorial algorithms such as network simplex and Kuhn-Munkres outperform matrix-scaling methods like Sinkhorn and Greenkhorn in terms of runtime across diverse data domains?
- RQ2How does the choice of regularization parameter η affect the convergence speed and accuracy of Sinkhorn and Greenkhorn in practical settings?
- RQ3Can a batched variant of the Kuhn-Munkres algorithm achieve significant performance improvements over the classical version in exact OT computation?
- RQ4To what extent do matrix-scaling methods remain competitive when a 10% error margin is allowed, especially on non-unit demand/supply problems?
- RQ5What are the practical trade-offs between numerical stability, precision requirements, and convergence speed in matrix-scaling OT algorithms?
Key findings
- Combinatorial methods, particularly network simplex and the new batched Kuhn-Munkres algorithm, outperformed matrix-scaling methods by up to orders of magnitude in runtime across all tested datasets.
- Even with a 10% error tolerance, Sinkhorn and Greenkhorn did not outperform the exact Lemon NS algorithm on any dataset with non-unit demands and supplies, and Greenkhorn was at least an order of magnitude slower.
- The batched Kuhn-Munkres variant achieved sub-millisecond runtimes on unit-demand problems (e.g., CS100), while Sinkhorn took 0.006s and Greenkhorn 0.402s, demonstrating significant speedups.
- Increasing the regularization parameter η improved accuracy but led to super-linear growth in iterations, making high-accuracy solutions prohibitively slow for large-scale problems.
- Matrix-scaling methods required higher-precision floating-point arithmetic at high η values, introducing numerical instability and performance bottlenecks.
- Despite their theoretical advantages, matrix-scaling methods like Greenkhorn were consistently slower than exact combinatorial solvers, even when allowing for approximation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.