Manuscript Offprint
arXiv:2610.22302Near-Optimal Parallel -Matrix Scaling
Abstract
In this paper we consider the problem of computing a positive diagonal scaling of a symmetric M-matrix so that all row and column sums are 1. We provide a poly-logarithmic iteration algorithm that solves this problem to high accuracy, where the cost of each iteration is dominated by the cost of solving a Laplacian system. This improves upon the recent iteration bound of [Vladu STOC 2025] and yields a randomized algorithm for the problem that runs in near-linear time and poly-logarithmic parallel depth.
1 Introduction
We consider the fundamental symmetric matrix-scaling problem where for an input symmetric matrix the goal is to compute a diagonal matrix with positive diagonal entries such that has all row sums (and therefore column sums) equal to 1. This problem encompasses the well-studied asymmetric variant of the problem where for an input matrix the goal is to compute diagonals and with positive diagonal entries so that LBR has row and column sums equal to 1. This is done simply by solving the symmetric matrix scaling problem for the anti-block-diagonal matrix with anti-diagonals and .
These matrix scaling problems are well studied and have numerous applications spanning many scientific disciplines [Kru37, DS40, Bro59, Fri61, HL76, Rag84, RS89, LSW98, BHT04, Ide16], and notably it is known that linear programming can be reduced to them [KK92]. Matrix scaling is also sometimes used in practice to precondition linear systems, in hopes of improving the performance of the solvers [LG04, PC11]. There is a particularly long line of research on obtaining efficient algorithms for the special case where A is nonnegative [KK96, LSW98, BHT04, RZ07, CMTV17, ALdOW17], including the famous RAS method of Sinkhorn [Sin64] and improved analysis of it [KK93, KLRS08].
In this paper, we focus on a different special case of the symmetric matrix scaling problem where is what is known as an -matrix; a symmetric matrix is an -matrix if it is positive definite, i.e., for all nonzero , and its off-diagonal entries are non-positive, i.e., for all [BP94]. Our goal is to shed light on the complexity of this problem and compute an -approximate scaling (i.e., such that ) as efficiently as possible. We measure efficiency in terms of both the sequential running time and the parallel depth, and focus on algorithms which solve the scaling problem to high accuracy whose efficiency depends logarithmically on the accuracy parameter .
This symmetric M-matrix scaling problem is of particular interest due to recent progress of [Vla25]. Excitingly, [Vla25] showed that this special case can be solved particularly efficiently using interior point methods (IPMs). More specifically, [Vla25] gave an iteration IPM that solved this problem to high accuracy. Each iteration of the IPM involves solving a linear system in a Laplacian matrix which can be implemented in time and parallel depth.
This result is especially notable as IPMs typically require a larger iterations. There are faster algorithms which solve this problem in almost-linear time, e.g., through the convex-cost flow algorithm of (see Section A). However, this algorithm is highly sequential and requires an almost-linear depth, as opposed to the depth of [Vla25].
Consequently, the central question we consider in this paper is: are there even more efficient algorithms for the symmetric M-matrix scaling problem, and can such algorithms be highly parallel?
Our Results. In this paper we answer this question in the affirmative. We give an algorithm that not only improves on the almost-linear running time of but also runs in poly-logarithmic depth, improving upon [Vla25].
Theorem 1.1. There is an algorithm that, given a symmetric -matrix , computes an such that with high probability in time and parallel depth.
Excitingly, we obtain this result by essentially carefully reducing the problem to Laplacian system solving. We first compute a scaling that makes (symmetric) diagonally dominant (SDD), i.e., for all ; this is a well-studied subroutine for -matrices, and such a scaling is known to be computable with Laplacian system solves. From this scaling, we then build upon [Vla25] to obtain an -iteration IPM where again, the cost of each iteration is dominated by the cost of solving a Laplacian system.
Altogether this shows that symmetric M-matrix scaling is no harder than Laplacian system solving in both sequential running time and parallel depth by more than an factor. Our main technical result is thus the following.
Theorem 1.2 (Informal; see Theorem 3.11). There is an algorithm that, given a symmetric M-matrix , computes an such that through a sequence of SDD linear system solves, each of which involves non-zero entries and is solved to an accuracy.
Additional Related Work. Over the past decades there have been numerous advances on a variety of graph theoretic, linear algebraic, and convex optimization problems, many of which feature variants of M-matrices which we briefly survey below.
Laplacian and M-Matrix Solvers. M-matrices belong to a well-studied hierarchy of matrix classes that are of high algorithmic interest. Indeed, M-matrices are precisely rescalings of positive-definite SDD Z-matrices, the latter of which encompasses Laplacian matrices. Since the seminal work of Spielman and Teng [ST04], there has been a long line of research on obtaining highly efficient and parallel solvers for Laplacian systems [KMP10, KMP11, LS13, CKM 14, PS14, KS16, JS21, SZ23]. Through a simple reduction, this implies efficient solvers for SDD systems as well. Finally, [AJSS19] obtained a reduction from making M-matrices SDD to SDD system solving itself. This shows that, up to factors, M-matrix systems, as well as a wide range of Perron–Frobenius type problems, are as easy as solving Laplacians, in both running time and parallel depth.
Throughout the paper, we use to hide poly-logarithmic factors in the dimension .
Graph Algorithms. Apart from the inherent linear algebraic applications, the general interest in the class of matrices mentioned above stems from its connection to fundamental graph problems through what is called the Laplacian paradigm. Indeed, over the past decades, efficient Laplacian solvers combined with various other advancements have led to many improved algorithms for a variety of graph problems, including maximum matching, minimum cost flow, spanning tree sampling, graph sparsification, and many more [DS08, SS08, KM09, CKM 11, KMP12, LS14, KLS20, vdBLN 20, vdBLL 21, vdBGJ 22, JKLS25].
Interior Point Methods. IPMs are powerful frameworks for constrained optimization problems and have been extremely well studied. Interestingly, they also played a key role in the aforementioned graph algorithm advances. Classic self-concordance analysis suggests that if the constraint set admits a so-called -self-concordant barrier, then there is an -iteration IPM; moreover, there is always an -self-concordant barrier in [NN94]. In a breakthrough result, [LS14] showed that there exists an -iteration IPM where is the “inherent dimension” of the constraint set: for a linear program with variables and constraints, this reduces the number of iterations from to . Building on [LS14], there have been many works on obtaining improved algorithms for linear programming and related problems [vdBLSS20, vdBLL 21, JSWZ21]; however, none of them improved the iteration bound. There are results that established iteration lower bounds for certain types of IPMs under certain settings [TY96, Tod20], and overall there have been very few IPM instances that obtained an iteration bound beyond self-concordance theory [CLM 16, BCLL18, Vla25].
Preliminaries. We use and to denote the all-zero and all-one vectors whose dimension shall be clear from context. For vector we let be the diagonal matrix associated with . We write , , for as applying squaring, inverting, and division to entry-wise. We also let comparison between vectors be done entry-wise, e.g., , in which case the vectors shall be of the same dimension.
Matrices are assumed to be symmetric throughout the paper. Let denote the number of nonzero entries in a matrix . We assume without loss of generality that . We generally work with a -matrix for which the off-diagonal entries are non-positive. As mentioned previously, an -matrix is a positive definite -matrix.
For a positive definite matrix , we let denote its condition number. For we have . We let denote the -operator norm of . In particular, . We work with different -norms of almost interchangeably since they differ by at most a poly factor. The -norms of and are also known to approximate the top/bottom eigenvalues of . In particular, our algorithm needs access to some -norm or top eigenvalue of which are hard to compute exactly, in which case we may use the easy-to-compute proxy .
Fact 1.3. For a positive definite matrix we have , , and for any .
Our analysis heavily relies on the following lemma that follows from the nonnegativity of M-matrix inverses.
Such a “universal” barrier was known to exist before [LS14] but it was computationally intractable.
Lemma 1.4. For an M-matrix A with where , we have .
Proof. As is entry-wise nonnegative [BP94], multiplying both sides by , we have . The -norm of a nonnegative matrix is equal to the maximum row sum, so .
Let be positive definite. We often consider solving linear systems in approximately. For and , let consist of -approximate solutions to .
AI Usage Disclosure. The main ideas of the paper were developed primarily by the authors in tandem with general research discussions with LLMs regarding the problem. LLMs were also used to assist with certain mathematical derivations, writing, formatting, and proofreading. The authors assume full responsibility for all content.
A Path-Following Approach to Matrix Scaling. To solve the matrix scaling problem, [Vla25] considers the function for some vector . [Vla25] shows that to solve the matrix scaling problem, it suffices to compute an (approximate) minimizer of for a sufficiently large . To see why this is the case, let denote the optimizer of . The optimality conditions for imply that , and therefore , where . It can then be shown that when is sufficiently large, the contribution of is sufficiently small and is close to .
To compute an approximate for large , [Vla25] considered the central path, i.e., the curve , and applied what is called a path-following algorithm to approximately follow this curve for increasing values of . Starting from an initial small for which the minimizer of can be easily computed, the algorithm iteratively increases while staying on the central path. This is often done by arguing that as long as is sufficiently “close” to where , we can minimize efficiently by taking a few Newton steps from . With this, the choice of the distance measure is thus crucial to the analysis of the IPM: If we could increase the region that is considered “close” to the central path, then we can increase more aggressively and decrease the overall number of iterations.
The Standard Analysis. Since we want to minimize by Newton steps, to measure the distance from some x to the central path, it is natural to consider the size of the Newton step
This is the natural scale-invariant notion of approximation for solving linear systems.
at x. This is captured by the notion of the congestion vector
where . As is standard in IPM literature, both [Vla25] and our algorithm use the norm of as the measure of how close is to the central path. Let be the result of taking a Newton step from . It can be shown that
and therefore
Since is PSD, we have that . Consequently, if we use the -norm of the congestion vector as the distance measure to the central path, as long as we stay within the region where , we can quickly compute from using Newton steps.
We can analyze the algorithm using the -norm. Consider a perfectly centered . We can increase to while still allowing efficient centering as long as . Suppose that . We have that
Again, since is PSD, we have . In other words, we can increase by a factor while maintaining the ability to move back to the central path. This gives a -iteration method.
Notice that since , we actually only need a small -norm of for centering (as opposed to the larger -norm). However, in general there is no better bound on the -norm of other than that in (2) if we only use that is PSD. This -versus- discrepancy is a common phenomenon in IPMs, which [Vla25] circumvented using a “global” amortized analysis involving -norms (and that is an -matrix).
Our Approach. In this paper, we go beyond the -norm and analyze the IPM using the -norm of the congestion vector as a measure of centrality. The goal is to show that using the stronger fact that is an -matrix; indeed, we see that such a bound combined with (1) and (2) would suggest that and therefore setting still allows efficient centering.
To that end, we leverage an important property that the -norm of for an -matrix is simply its maximum row/column sum, i.e., . Let us take a closer look at
There have been other attempts to address the gap between - and -norm in other contexts. For example, for maximum flow, argued that when then one can perturb the graph and increase a potential which implies that the number of such iterations is bounded. On the other hand, when , we can take a much larger IPM step.
Both these algorithms and [Vla25] are more “global” compared to the standard analysis in the sense that they do not obtain an improved uniform bound on the progress of each “local” step; instead, they rely on a “global” argument that involves all steps in the IPM algorithm.
which is also an M-matrix. We have
Multiplying both sides by , we get
The Key Observation. Given the above calculation, notice that if the vector happens to be entry-wise nonnegative, then the right-hand side of (3) is entry-wise upper-bounded by . We can therefore bound . When , we get which would lead us to an -iteration algorithm.
Obtaining our fast convergence rate thus boils down to the vector . Our key observation is that for the algorithm to correctly find the scaling, the choice of can almost be arbitrary. Indeed, the only place where shows up in the analysis is the initialization and termination of the IPM. Most notably, the vector should be chosen so that we can easily compute an initial point that is centered for some . In [Vla25], the vector is initialized to so that is centered for ; however, this is not necessarily a nonnegative vector.
We observe that there is an alternative way of initializing the path-following algorithm that will make nonnegative. We leverage the fact that the -matrix admits a vector such that for some bounded from below. Such a vector is related to the well-studied problems in Perron–Frobenius theory and solving linear systems in -matrices, and [AJSS19] gave an algorithm that computes by solving Laplacian linear systems. With , we can initialize our path-following algorithm with (which satisfies ) and , which is centered if we set which is now entry-wise nonnegative. This completes the analysis of our iteration algorithm.
Our Actual Analysis. We presented an analysis above that closely follows the notation and setup in [Vla25] for building intuition and illustrating the main technical insights. However, in Section 3, we use a slightly different function
Ignoring the term (which happens when we decrease to a small number), the optimality condition of (4) directly gives . We also use a slightly different centrality measure instead of (see more discussion in Section 3). We think this new version is mathematically cleaner to work with, but the basis of our improvement remains the same as aforementioned.
Comparison with Quadratic Optimization and Limitations of Our Approach. [Vla25] also considered the closely related quadratic optimization problem which for a given matrix A and vector b asks for . When A is a symmetric M-matrix, [Vla25] gave a similar -iteration IPM for this problem, which uses the solution to the matrix scaling problem as the initial point.
While our algorithm improves the M-matrix scaling problem, our key ingredient fails for the quadratic optimization problems because we can no longer choose a nonnegative vector freely. In general, however, there does not seem to be a direct reduction from one to the other, and the two problems seem fairly incomparable: Indeed, one has a linear term on top of and the other has . We leave obtaining a deeper understanding of the two problems as an interesting open problem.
3 Efficient Parallel M-Matrix Scaling
In this section we provide a formal analysis of our algorithm. In Section 3.1 we show that given an appropriate initial , our path-following algorithm computes the desired scaling by solving linear systems over diagonally dominant matrices. In Section 3.2 we show how to compute the initial which then allows us to prove Theorem 1.1 using the fact that diagonally dominant linear systems can be solved in near-linear time and poly-logarithmic parallel depth.
3.1 -Path Following Algorithm
Here we describe our -path following algorithm. For a fixed nonnegative vector and all , let , and let . Thus, we have
We define the -measure of centrality
which satisfies . Note that where is the congestion vector from Section 2 (and in (6) later).
Algorithm 3.1 presents the pseudocode of our algorithm. The algorithm is given an initial point which is assumed to satisfy . We set , , and start with which by Lemma 3.1 is perfectly centered with . The algorithm has two phases. In the first one, we repeatedly decrease and perform one approximate Newton step in to re-center until is sufficiently small. Once is small enough, we enter the second phase
Interestingly, quadratic optimization for M-matrices can be reduced to the -norm flow diffusion problem for which [CPW21] gave a near-linear time algorithm. In contrast, a similar “graphical” approach reduces matrix scaling to convex-cost flow (as in Section A) which seems to be a much harder problem and for which only almost-linear time algorithms are known [CKL 22]. As discussed earlier, the flow approach was also the best known sequential algorithm for M-matrix scaling prior to our work.
Technically, the definitions of and depend on the choice of which is not made explicit until the end of the analysis. However, for notational convenience, we may simply refer to and as parameterized by the vector given to each lemma statement.
of the algorithm where we set all the way to 0. This only increases the centrality of slightly (see Lemma 3.6), and allows us to now directly decrease our objective . This is done by taking multiple Newton steps in where each of them decreases quadratically.
Algorithm 3.1: PATHFOLLOWING(A, , )
Input: A symmetric M-matrix , a vector such that , and a precision parameter .
Output: A vector satisfying .
1 , , and ;
2 if then return ;
3
// Let (note that ) and .
// The first while loop decreases to a sufficiently small value.
4 while do
5 ;
6 Let be an arbitrary vector in ;
7 ;
// Now that is small, we set it straight to 0, and the second while loop directly decreases .
8 while do
9 Let be an arbitrary vector in ;
10 ;
11 return
We first verify that our initialization is valid.
Lemma 3.1. Suppose and satisfy . Let and . Then, and .
Proof. The fact that follows immediately from its definition and that . We can also compute
We now analyze the main loops of the algorithm. We start by connecting the centrality to the -norm of .
Lemma 3.2. Suppose and is a symmetric -matrix. For all such that for some we have
Proof. Note that
Since and , we have
Consequently, , and the result follows from Lemma 1.4.
To analyze the Newton steps, as in [Vla25], we define the congestion vector
The following claim expresses the gradient after one Newton step in terms of the congestion vector. This is exactly the same as the calculation that was done in [Vla25, Equation (3)], but since we use a different function, we redo it here for completeness.
Claim 3.3 ([Vla25, Equation (3)]). Let and . We have, for where , that if , then .
Proof. By direct calculation from the definition of y and , we have
We now use Lemma 3.2 and Claim 3.3 to analyze the centrality after decreasing and taking one Newton step.
Lemma 3.4. Suppose and is a symmetric -matrix. Let and such that . Then, for any , we have, for where , that as well as
Proof. By Lemma 3.2,
Moreover, , and hence
Since
and
we have
Therefore,
where the second step uses , the fourth step uses Lemma 3.2, and the last step uses and . This shows that satisfies .
To bound , note that since , by Claim 3.3, we have . Therefore,
Lemma 3.4 assumes that we compute the step exactly. However, in the actual algorithm we will only use an approximate linear system solver, so the step will only be approximately which we need to account for. We defer the proof of the following approximate version of Lemma 3.4 to Section B.
Lemma 3.5. Suppose is a symmetric -matrix. Let be such that and let . Let and such that . Then, for any and with
letting we have and
After the first while loop in Algorithm 3.1, we decrease drastically to 0 and begin the second phase. We show that as long as is sufficiently small and is sufficiently centered for , remains centered for as well. This provides a good upper bound on which the second phase of our algorithm then minimizes.
Lemma 3.6. For any , if for some , then .
Proof. We have
By definition of , we have
Thus,
Since and , we have
Plugging this back to (7) proves the lemma.
We also need to argue that we can compute the steps in Algorithm 3.1 efficiently. We show that they can be reduced to solving SDD linear systems with a moderate increase in the required accuracy. To that end, let and be the running time and parallel depth of an algorithm that, given a positive definite SDD matrix with and , computes a vector . We prove the following lemma in Section B.
Lemma 3.7. Suppose and is a symmetric -matrix. Let and such that . Then, for any and , we can compute an in
We will also rely on the following claim regarding the iterates of Algorithm 3.1 whose proof we also defer to Section B.
Claim 3.8. Suppose is a symmetric -matrix. Let be such that and let . For any such that for some , we have
Now, we are ready to analyze Algorithm 3.1.
Theorem 3.9. Given a symmetric -matrix , a vector such that , and a precision parameter , Algorithm 3.1 outputs a vector with in
time and
parallel depth, where .
Proof. By Lemma 3.1, Line 1 gives the initial centrality . Thus, by Lemma 3.5 with , each iteration of the first while loop halves and maintains
after Line 7. This uses the observation that in Algorithm 3.1 we solve each to accuracy as required by Lemma 3.5. Thus, until , the first while loop performs iterations. Since
we have (note that ). Thus, the number of iterations is .
Note that since , we have . Therefore, when the first loop ends, we have . Together with , by Lemma 3.6, we have . Hence, by Lemma 3.5 with , each iteration of the second while loop decreases quadratically. Again, Lemma 3.5 applies since , noting that we only run the loop when . It takes iterations to make which implies . This establishes the correctness of Algorithm 3.1.
As for the efficiency, Algorithm 3.1 performs a total of iterations. By Lemma 3.7, each iteration runs in time and parallel depth for the current , where and as in Algorithm 3.1. The theorem thus follows from Claim 3.8 which shows that .
3.2 Initializing the Path-Following Algorithm
We now explain how to compute the initial such that . This is essentially done by running the algorithm of [AJSS19] that, given a symmetric -matrix , computes a scaling such that YAY is SDD. The following lemma is obtained by carefully analyzing the parameters of [AJSS19] and is thus deferred to Section B.
Lemma 3.10. There is an algorithm that, given a symmetric M-matrix , computes a such that
with high probability in
time and
parallel depth.
With Theorem 3.9 and Lemma 3.10 we can now reduce symmetric M-matrix scaling to iterations of SDD system solves.
Theorem 3.11. There is an algorithm that, given a symmetric -matrix and a parameter , computes an such that with high probability in
time and
parallel depth.
Proof. We compute the vector in Lemma 3.10 and set which satisfies and . This takes
time and
parallel depth. By Theorem 3.9, with , starting from we can compute an -approximate scaling for in
time and
parallel depth. This concludes the proof.
We can now prove Theorem 1.1 by plugging in known SDD solvers.
Proof of Theorem 1.1. By [SZ23, Theorem 1.1] we have and . The rest follows from Theorem 3.11.
Acknowledgments
We thank Adrian Vladu for helpful conversations. Part of this research took place while Aaron Sidford was visiting National Taiwan University. Chih-Hung Liu was supported by Ministry of Education, Taiwan under Yushan Fellow Program with the grant number MOE-111-YSFEE-0003-006-P1 and by National Science and Technology Council, Taiwan with the grant numbers NSTC-113-2221-E-002-209-MY3 and NSTC-114-2628-E-002-014-MY3.
References
[AJSS19] AmirMahdi Ahmadinejad, Arun Jambulapati, Amin Saberi, and Aaron Sidford. Perron-Frobenius theory in nearly linear time: Positive eigenvectors, M-matrices, graph kernels, and other applications. In Proceedings of the 30th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2019, pages 1387–1404. SIAM, 2019.
[ALdOW17] Zeyuan Allen-Zhu, Yuanzhi Li, Rafael Mendes de Oliveira, and Avi Wigderson. Much faster algorithms for matrix scaling. In Proceedings of the 58th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2017, pages 890–901. IEEE Computer Society, 2017.
[BCLL18] Sébastien Bubeck, Michael B. Cohen, Yin Tat Lee, and Yuanzhi Li. An homotopy method for regression provably beyond self-concordance and in input-sparsity time. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, pages 1130–1137. ACM, 2018.
[BHT04] Hamsa Balakrishnan, Inseok Hwang, and Claire J. Tomlin. Polynomial approximation algorithms for belief matrix maintenance in identity management. In 43rd IEEE Conference on Decision and Control, CDC 2004, pages 4874–4879. IEEE, 2004.
[BP94] Abraham Berman and Robert J. Plemmons. Nonnegative Matrices in the Mathematical Sciences, volume 9 of Classics in Applied Mathematics. SIAM, 1994.
[Bro59] David T Brown. A note on approximations to discrete probability distributions. Information and control, 2(4):386–392, 1959.
[CKL 22] Li Chen, Rasmus Kyng, Yang P. Liu, Richard Peng, Maximilian Probst Gutenberg, and Sushant Sachdeva. Maximum flow and minimum-cost flow in almost-linear time. In Proceedings of the 63rd Annual IEEE Symposium on Foundations of Computer Science, FOCS 2022, pages 612–623. IEEE, 2022.
[CKM 11] Paul F. Christiano, Jonathan A. Kelner, Aleksander Madry, Daniel A. Spielman, and Shang-Hua Teng. Electrical flows, Laplacian systems, and faster approximation of maximum flow in undirected graphs. In Proceedings of the 43rd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2011, pages 273–282. ACM, 2011.
[CKM 14] Michael B. Cohen, Rasmus Kyng, Gary L. Miller, Jakub W. Pachocki, Richard Peng, Anup B. Rao, and Shen Chen Xu. Solving SDD linear systems in nearly time. In Proceedings of the 46th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2014, pages 343–352. ACM, 2014.
[CLM 16] Michael B. Cohen, Yin Tat Lee, Gary L. Miller, Jakub Pachocki, and Aaron Sidford. Geometric median in nearly linear time. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, pages 9–21. ACM, 2016.
[CMTV17] Michael B. Cohen, Aleksander Madry, Dimitris Tsipras, and Adrian Vladu. Matrix scaling and balancing via box constrained Newton's method and interior point methods. In Proceedings of the 58th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2017, pages 902–913. IEEE Computer Society, 2017.
[CPW21] Li Chen, Richard Peng, and Di Wang. 2-norm flow diffusion in near-linear time. In Proceedings of the 62nd Annual IEEE Symposium on Foundations of Computer Science, FOCS 2021, pages 540–549. IEEE, 2021.
[DS40] W Edwards Deming and Frederick F Stephan. On a least squares adjustment of a sampled frequency table when the expected marginal totals are known. The Annals of Mathematical Statistics, 11(4):427–444, 1940.
[DS08] Samuel I. Daitch and Daniel A. Spielman. Faster approximate lossy generalized flow via interior point algorithms. In Proceedings of the 40th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2008, pages 451–460. ACM, 2008.
[Fri61] D. Friedlander. A technique for estimating a contingency table, given the marginal totals and some supplementary data. Journal of the Royal Statistical Society: Series A (General), 124(3):412–420, 1961.
[HL76] Gabor T Herman and Arnold Lent. Iterative reconstruction algorithms. Computers in biology and medicine, 6(4):273–294, 1976.
[Ide16] Martin Idel. A review of matrix scaling and Sinkhorn's normal form for matrices and positive maps. arXiv preprint arXiv:1609.06349, 2016.
[JKLS25] Shunhua Jiang, Michael Kapralov, Lawrence Li, and Aaron Sidford. Generalized flow in nearly-linear time on moderately dense graphs. In Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2025, pages 1091–1099. IEEE, 2025.
[JS21] Arun Jambulapati and Aaron Sidford. Ultrasparse ultrasparsifiers and faster Laplacian system solvers. In Proceedings of the 32nd Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2021, pages 540–559. SIAM, 2021.
[JSWZ21] Shunhua Jiang, Zhao Song, Omri Weinstein, and Hengjie Zhang. A faster algorithm for solving general LPs. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2021, pages 823–832. ACM, 2021.
[KK92] Leonid Khachiyan and Bahman Kalantari. Diagonal matrix scaling and linear programming. SIAM J. Optim., 2(4):668–672, 1992.
[KK93] Bahman Kalantari and Leonid Khachiyan. On the rate of convergence of deterministic and randomized RAS matrix scaling algorithms. Oper. Res. Lett., 14(5):237–244, 1993.
[KK96] Bahman Kalantari and Leonid Khachiyan. On the complexity of nonnegative-matrix scaling. Linear Algebra and its applications, 240:87–103, 1996.
[KLRS08] Bahman Kalantari, Isabella Lari, Federica Ricca, and Bruno Simeone. On the complexity of general matrix scaling and entropy minimization via the RAS algorithm. Math. Program., 112(2):371–401, 2008.
[KLS20] Tarun Kathuria, Yang P. Liu, and Aaron Sidford. Unit capacity maxflow in almost time. In Proceedings of the 61st Annual IEEE Symposium on Foundations of Computer Science, FOCS 2020, pages 119–130. IEEE, 2020.
[KM09] Jonathan A. Kelner and Aleksander Madry. Faster generation of random spanning trees. In Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2009, pages 13–21. IEEE Computer Society, 2009.
[KMP10] Ioannis Koutis, Gary L. Miller, and Richard Peng. Approaching optimality for solving SDD linear systems. In Proceedings of the 51st Annual IEEE Symposium on Foundations of Computer Science, FOCS 2010, pages 235–244. IEEE Computer Society, 2010.
[KMP11] Ioannis Koutis, Gary L. Miller, and Richard Peng. A nearly-m log n time solver for SDD linear systems. In Proceedings of the 52nd Annual IEEE Symposium on Foundations of Computer Science, FOCS 2011, pages 590–598. IEEE Computer Society, 2011.
[KMP12] Jonathan A. Kelner, Gary L. Miller, and Richard Peng. Faster approximate multi-commodity flow using quadratically coupled flows. In Proceedings of the 44th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2012, pages 1–18. ACM, 2012.
[Kru37] J Kruithof. Telefoonverkeersrekening. De Ingenieur, 52:15–25, 1937.
[KS16] Rasmus Kyng and Sushant Sachdeva. Approximate Gaussian elimination for Laplacians - fast, sparse, and simple. In Proceedings of the 57th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2016, pages 573–582. IEEE Computer Society, 2016.
[LG04] Oren E. Livne and Gene H. Golub. Scaling by binormalization. Numer. Algorithms, 35(1):97–120, 2004.
[LS13] Yin Tat Lee and Aaron Sidford. Efficient accelerated coordinate descent methods and faster algorithms for solving linear systems. In Proceedings of the 54th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2013, pages 147–156. IEEE Computer Society, 2013.
[LS14] Yin Tat Lee and Aaron Sidford. Path finding methods for linear programming: Solving linear programs in iterations and faster algorithms for maximum flow. In Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2014, pages 424–433. IEEE Computer Society, 2014.
[LSW98] Nathan Linial, Alex Samorodnitsky, and Avi Wigderson. A deterministic strongly polynomial algorithm for matrix scaling and approximate permanents. In Proceedings of the 30th Annual ACM SIGACT Symposium on Theory of Computing, STOC 1998, pages 644–652. ACM, 1998.
[Mad13] Aleksander Madry. Navigating central path with electrical flows: From flows to matchings, and back. In Proceedings of the 54th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2013, pages 253–262. IEEE Computer Society, 2013.
[Mad16] Aleksander Madry. Computing maximum flow with augmenting electrical flows. In Proceedings of the 57th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2016, pages 593–602. IEEE Computer Society, 2016.
[NN94] Yurii E. Nesterov and Arkadii Nemirovskii. Interior-point polynomial algorithms in convex programming, volume 13 of SIAM studies in applied mathematics. SIAM, 1994.
[PC11] Thomas Pock and Antonin Chambolle. Diagonal preconditioning for first order primal-dual algorithms in convex optimization. In IEEE International Conference on Computer Vision, ICCV 2011, pages 1762–1769. IEEE Computer Society, 2011.
[PS14] Richard Peng and Daniel A. Spielman. An efficient parallel solver for SDD linear systems. In Proceedings of the 46th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2014, pages 333–342. ACM, 2014.
[Rag84] T. E. S. Raghavan. On pairs of multidimensional matrices. Linear Algebra and its Applications, 62:263–268, 1984.
[RS89] Uriel G Rothblum and Hans Schneider. Scalings of matrices which have prespecified row sums and column sums via optimization. Linear Algebra and its Applications, 114:737–764, 1989.
[RZ07] Günter Rote and Martin Zachariasen. Matrix scaling by network flow. In Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2007, pages 848–854. SIAM, 2007.
[Sin64] Richard Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. The annals of mathematical statistics, 35(2):876–879, 1964.
[SS08] Daniel A. Spielman and Nikhil Srivastava. Graph sparsification by effective resistances. In Proceedings of the 40th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2008, pages 563–568. ACM, 2008.
[ST04] Daniel A. Spielman and Shang-Hua Teng. Nearly-linear time algorithms for graph partitioning, graph sparsification, and solving linear systems. In Proceedings of the 36th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2004, pages 81–90. ACM, 2004.
[SZ23] Sushant Sachdeva and Yibin Zhao. A simple and efficient parallel Laplacian solver. In Proceedings of the 35th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA 2023, pages 315–325. ACM, 2023.
[Tod20] Michael J Todd. A lower bound on the number of iterations of an interior-point algorithm for linear programming. In Numerical Analysis 1993, pages 237–259. CRC Press, 2020.
[TY96] Michael J. Todd and Yinyu Ye. A lower bound on the number of iterations of long-step primal-dual linear programming algorithms. Ann. Oper. Res., 62(1):233–252, 1996.
[vdBGJ 22] Jan van den Brand, Yu Gao, Arun Jambulapati, Yin Tat Lee, Yang P. Liu, Richard Peng, and Aaron Sidford. Faster maxflow via improved dynamic spectral vertex sparsifiers. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022, pages 543–556. ACM, 2022.
[vdBLL 21] Jan van den Brand, Yin Tat Lee, Yang P. Liu, Thatchaphol Saranurak, Aaron Sidford, Zhao Song, and Di Wang. Minimum cost flows, MDPs, and -regression in nearly linear time for dense instances. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2021, pages 859–869. ACM, 2021.
[vdBLN 20] Jan van den Brand, Yin Tat Lee, Danupon Nanongkai, Richard Peng, Thatchaphol Saranurak, Aaron Sidford, Zhao Song, and Di Wang. Bipartite matching in nearly-linear time on moderately dense graphs. In Proceedings of the 61st Annual IEEE Symposium on Foundations of Computer Science, FOCS 2020, pages 919–930. IEEE, 2020.
[vdBLSS20] Jan van den Brand, Yin Tat Lee, Aaron Sidford, and Zhao Song. Solving tall dense linear programs in nearly linear time. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, pages 775–788. ACM, 2020.
[Vla25] Adrian Vladu. Breaking the barrier of self-concordant barriers: Faster interior point methods for M-matrices. In Proceedings of the 57th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2025, pages 2213–2224. ACM, 2025.
A Almost-Linear Time M-Matrix Scaling via Convex Flow
In this section we show how one can get an almost-linear time algorithm for symmetric M-matrix scaling using the convex flow algorithm of . Similar to our algorithm, we may assume without loss of generality that A is diagonally dominant by first running to obtain such a scaling. We can write where C is a Laplacian matrix (i.e., ) and D is a nonnegative diagonal matrix. It is standard that where B is the edge-vertex incidence matrix of some graph G and W is a nonnegative diagonal matrix. Let m be the number of edges in G.
By the optimality condition, the solution to the matrix scaling problem is the minimizer of
The dual of (8) is
where
is convex (and can be computed explicitly). This becomes a convex flow problem. Let us add one vertex to and edges for each original vertex . The capacity of each edge is infinite in both directions. The cost of an original edge is . The cost of the edge is . The minimum-cost flow in this graph can be straightforwardly converted back to the minimizer of (8) via duality. We omit the details on approximation for brevity.
B Omitted Proofs
In this section we provide proofs that are omitted from the main body of the paper. We start with Claim 3.8 which is needed for proving Lemma 3.5.
Claim 3.8. Suppose is a symmetric -matrix. Let be such that and let . For any such that for some , we have
Proof. With we see that
This establishes . We now prove . Let and let be such that . The goal is to show that . From (10) we get
Observe that
because each for . Now either already, or in which case (12) suggests and therefore (11) implies .
To upper bound , we use the lower bound in (10). We notice that and in particular gives
where we used in the last inequality.
Lemma 3.5. Suppose is a symmetric -matrix. Let be such that and let . Let and such that . Then, for any and with
letting we have and
Proof. Let us abbreviate . Let and where is the exact Newton step. Let us first bound the difference between and . By definition, we have
using that . We should thus bound . By Claim 3.8, we have . Since we have . On the other hand, since . Together this suggests that .
This allows us to bound
where we used that from Lemma 3.4 which implies . We can now show that . Indeed, since , we have
noting that and applying the bound on . It remains to bound . Similar to (14), we have . We can write
Let us bound the two extra terms in (15). We have
where we used since from Claim 3.8, and
where we used that
and therefore . Overall, (15) together with the observation that suggests
Lemma 3.7. Suppose and is a symmetric -matrix. Let and such that . Then, for any and , we can compute an in
Proof. First, recall that . Note that itself may not be an SDD matrix. Nevertheless, we claim that is. Indeed, by Lemma 3.2 (in particular (5), since for some , we have which together with the fact that is a symmetric Z-matrix shows that is SDD. Therefore, to compute for a given , we can compute
It remains to analyze the accuracy required for the linear system solve in above. We claim that if , then will be in which would prove the lemma by plugging in . The claim follows from direct calculation
where we used that and that .
Lemma 3.10. There is an algorithm that, given a symmetric M-matrix , computes a such that
with high probability in
time and
parallel depth.
Proof. Let . Since we have for that . We run [AJSS19, Algorithm 10] (which underlies [AJSS19, Theorem 8]) on . The algorithm starts from and repeatedly halves while maintaining a vector such that for . We run the algorithm until .
Let us analyze the vector when . We have
The actual [AJSS19, Algorithm 10] has an input accuracy and it runs the loop until .
Observe that since for and for all , letting we have
which means that . Therefore, it holds that as required (note again that ).
To bound , observe that is an M-matrix. Therefore, is nonnegative and consequently
As for the efficiency, note that (17) implies that it takes iterations until . Each iteration, by [AJSS19, Proof of Theorem 8], runs in time and parallel depth. This completes the proof.
[AJSS19] used a different notion of accuracy compared to our notation. This is why the term in [AJSS19] translates to .