Phase transition of the Sinkhorn-Knopp algorithm
Kun He
Abstract
The matrix scaling problem, particularly the Sinkhorn-Knopp algorithm, has been studied for over 60 years. In practice, the algorithm often yields high-quality approximations within just a few iterations. Theoretically, however, the best known upper bound on its iteration count scales polynomially with the accuracy parameter ๐, placing it in the class of pseudopolynomial-time approximation algorithms. Meanwhile, the lower-bound landscape remains largely unexplored. Two fundamental questions persist: what accounts for the algorithm's strong empirical performance, and can a tight bound on its iteration count be established?
For an ๐ ร ๐ matrix, its normalized version is obtained by dividing each entry by the largest entry in the matrix. We say that a normalized matrix has a density ๐พ if there exists a constant ๐ > 0 such that one row or column has exactly โ๐พ๐โ entries with values at least ๐, and every other row and column has at least โ๐พ๐โ such entries.
For the upper bound, we show that the Sinkhorn-Knopp algorithm produces a nearly doubly stochastic matrix in ๐ (log ๐log ๐) iterations and ร (๐ 2 ) time for all nonnegative square matrices whose normalized version has a density ๐พ > 1/2. Such matrices cover both the algorithm's principal practical inputs and its typical theoretical regime. This ร (๐ 2 ) runtime is optimal, as merely reading the input requires ฮฉ(๐ 2 ) time. In fact, the algorithm is optimal for nearly all nonnegative matrices with entries bounded above by a constant, demonstrating its practical efficiency.
For the lower bound, we establish a tight bound of ฮฉ โ ๐/๐ iterations for positive matrices under the โ 2 -norm error measure. Moreover, for every ๐พ < 1/2, there exists a matrix with density ๐พ for which the Sinkhorn-Knopp algorithm requires ฮฉ โ ๐/๐ iterations. In summary, our results reveal a sharp phase transition in the Sinkhorn-Knopp algorithm at the density threshold ๐พ = 1/2. Moreover, we demonstrate that convergence improves as matrix density increases, thereby accounting for prior observations in entropically regularised optimal transport that larger inverse temperature slows convergence.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9c893623-67fa-4bed-898b-5dcf2c4211cfRelated papers
- Accelerating Sinkhorn algorithm with sparse Newton iterationsXun Tang, Michael Shavlovsky, Holakou Rahmanian, Elisa Tardini et al.ICLR 2024 ยท 11 citations
- On Unbalanced Optimal Transport: An Analysis of Sinkhorn AlgorithmKhiem Pham, Khang Le, Nhat Ho, Tung Pham et al.ICML 2020 ยท 104 citations
- Low-Rank Sinkhorn FactorizationMeyer Scetbon, Marco Cuturi, Gabriel PeyrรฉICML 2021 ยท 76 citations
- A fast and accurate splitting method for optimal transport: analysis and implementationVien V. Mai, Jacob Lindbรคck, Mikael JohanssonICLR 2022 ยท 15 citations
- Breaking the Barrier of Self-Concordant Barriers: Faster Interior Point Methods for M-MatricesAdrian VladuSTOC 2025
