Lune

SODA2026Top-tier venue

Phase transition of the Sinkhorn-Knopp algorithm

Kun He

2026Year

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.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 9c893623-67fa-4bed-898b-5dcf2c4211cf

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines