arXiv:2610.22302cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.22302

Near-Optimal Parallel MM-Matrix Scaling

Chih-Hung Liu, Aaron Sidford, Ta-Wei Tu

Abstract

In this paper we consider the problem of computing a positive diagonal scaling of a d×dd \times d 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 O~(d1/3)\tilde{O}(d^{1/3}) 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 A∈Rd×dA \in \mathbb{R}^{d \times d} the goal is to compute a diagonal matrix XX with positive diagonal entries such that XAXXAX 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 B∈Rd×dB \in \mathbb{R}^{d \times d} the goal is to compute diagonals L∈Rd×dL \in \mathbb{R}^{d \times d} and R∈Rd×dR \in \mathbb{R}^{d \times d} 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 BB and B⊤B^\top.

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 AA is what is known as an MM-matrix; a symmetric matrix is an MM-matrix if it is positive definite, i.e., x⊤Ax>0x^\top A x > 0 for all nonzero x∈Rdx \in \mathbb{R}^d, and its off-diagonal entries are non-positive, i.e., Aij≤0A_{ij} \leq 0 for all i≠ji \neq j [BP94]. Our goal is to shed light on the complexity of this problem and compute an ε\varepsilon-approximate scaling (i.e., x∈R>0dx \in \mathbb{R}_{>0}^d such that ∥XAX1⃗−1⃗∥2≤ε\|X A X \vec{1} - \vec{1}\|_2 \leq \varepsilon) 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 ε\varepsilon.

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 O~(d1/3)\tilde{O}(d^{1/3}) iteration 1^{1} 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 O~(nnz(A))\tilde{O}(\text{nnz}(A)) time and O~(1)\tilde{O}(1) parallel depth.

This result is especially notable as IPMs typically require a larger Ω(d1/2)\Omega(d^{1/2}) iterations. There are faster algorithms which solve this problem in almost-linear time, e.g., through the convex-cost flow algorithm of [CKL+22][CKL^{+}22] (see Section A). However, this algorithm is highly sequential and requires an almost-linear Ω(d)\Omega(d) depth, as opposed to the O~(d1/3)\tilde{O}(d^{1/3}) 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 [CKL+22][CKL^{+}22] but also runs in poly-logarithmic depth, improving upon [Vla25].

Theorem 1.1. There is an algorithm that, given a symmetric MM-matrix A∈Rd×dA \in \mathbb{R}^{d \times d}, computes an x∈R>0dx \in \mathbb{R}_{>0}^d such that ∥XAX1⃗−1⃗∥2≤ε\|XAX\vec{1} - \vec{1}\|_2 \leq \varepsilon with high probability in O~(nnz(A)⋅log⁡3κ(A)log⁡(1ε)log⁡log⁡(1ε))\tilde{O}(\text{nnz}(A) \cdot \log^3 \kappa(A) \log(\frac{1}{\varepsilon}) \log \log(\frac{1}{\varepsilon})) time and O~(log⁡3κ(A)log⁡(1ε)log⁡log⁡(1ε))\tilde{O}(\log^3 \kappa(A) \log(\frac{1}{\varepsilon}) \log \log(\frac{1}{\varepsilon})) parallel depth.

Excitingly, we obtain this result by essentially carefully reducing the problem to Laplacian system solving. We first compute a scaling that makes AA (symmetric) diagonally dominant (SDD), i.e., Aii≥∑j≠i∣Aij∣A_{ii} \geq \sum_{j \neq i} |A_{ij}| for all i∈[d]i \in [d]; this is a well-studied subroutine for MM-matrices, and such a scaling is known to be computable with O~(1)\tilde{O}(1) Laplacian system solves. From this scaling, we then build upon [Vla25] to obtain an O~(1)\tilde{O}(1)-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 O~(1)\tilde{O}(1) 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 A∈Rd×dA \in \mathbb{R}^{d \times d}, computes an x∈R>0dx \in \mathbb{R}_{>0}^d such that ∥XAX1⃗−1⃗∥2≤ε\|XAX\vec{1} - \vec{1}\|_2 \leq \varepsilon through a sequence of O~(log⁡2κ(A)+log⁡log⁡(1/ε))\tilde{O}(\log^2 \kappa(A) + \log \log(1/\varepsilon)) SDD linear system solves, each of which involves O(nnz(A))O(\text{nnz}(A)) non-zero entries and is solved to an Ω(ε/poly(d,κ(A)))\Omega(\varepsilon/\text{poly}(d, \kappa(A))) 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 O~(1)\tilde{O}(1) 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.

1^{1}Throughout the paper, we use O~(⋅)\tilde{O}(\cdot) to hide poly-logarithmic factors in the dimension dd.

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 ν\nu-self-concordant barrier, then there is an O~(ν)\tilde{O}(\sqrt{\nu})-iteration IPM; moreover, there is always an O(d)O(d)-self-concordant barrier in Rd\mathbb{R}^d [NN94]. In a breakthrough result, [LS14] showed that there exists an O~(r)\tilde{O}(\sqrt{r})-iteration IPM where r≤dr \leq d is the “inherent dimension” of the constraint set: for a linear program with nn variables and dd constraints, this reduces the number of iterations from O~(n)\tilde{O}(\sqrt{n}) to O~(d)\tilde{O}(\sqrt{d}). 2^2 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 O~(d)\tilde{O}(\sqrt{d}) 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 0⃗\vec{0} and 1⃗\vec{1} to denote the all-zero and all-one vectors whose dimension shall be clear from context. For vector x∈Rdx \in \mathbb{R}^d we let X=defdiag(x)∈Rd×dX \stackrel{\text{def}}{=} \text{diag}(x) \in \mathbb{R}^{d \times d} be the diagonal matrix associated with xx. We write x2∈Rdx^2 \in \mathbb{R}^d, 1/x∈Rd1/x \in \mathbb{R}^d, x/y∈Rdx/y \in \mathbb{R}^d for y∈Rdy \in \mathbb{R}^d as applying squaring, inverting, and division to xx entry-wise. We also let comparison between vectors be done entry-wise, e.g., 0⃗<x≤y\vec{0} < x \leq y, in which case the vectors shall be of the same dimension.

Matrices are assumed to be symmetric throughout the paper. Let nnz(A)\text{nnz}(A) denote the number of nonzero entries in a matrix AA. We assume without loss of generality that nnz(A)=Ω(d)\text{nnz}(A) = \Omega(d). We generally work with a ZZ-matrix for which the off-diagonal entries are non-positive. As mentioned previously, an MM-matrix is a positive definite ZZ-matrix.

For a positive definite matrix AA, we let κ(A)=defλmax⁡(A)/λmin⁡(A)\kappa(A) \stackrel{\text{def}}{=} \lambda_{\max}(A)/\lambda_{\min}(A) denote its condition number. For x∈R>0dx \in \mathbb{R}_{>0}^d we have κ(X)=max⁡i∈[d]xi/min⁡i∈[d]xi\kappa(X) = \max_{i \in [d]} x_i / \min_{i \in [d]} x_i. We let ∥A∥p=defmax⁡∥x∥p=1∥Ax∥p\|A\|_p \stackrel{\text{def}}{=} \max_{\|x\|_p=1} \|Ax\|_p denote the ℓp\ell_p-operator norm of AA. In particular, ∥A∥∞=max⁡i∈[d]∑j∈[d]∣Aij∣\|A\|_\infty = \max_{i \in [d]} \sum_{j \in [d]} |A_{ij}|. We work with different ℓp\ell_p-norms of AA almost interchangeably since they differ by at most a poly(d)(d) factor. The ℓp\ell_p-norms of AA and A−1A^{-1} are also known to approximate the top/bottom eigenvalues of AA. In particular, our algorithm needs access to some ℓp\ell_p-norm or top eigenvalue of AA which are hard to compute exactly, in which case we may use the easy-to-compute proxy ∥A∥∞\|A\|_\infty.

Fact 1.3. For a positive definite matrix AA we have ∥A∥2=λmax⁡(A)\|A\|_2 = \lambda_{\max}(A), ∥A−1∥2=1/λmin⁡(A)\|A^{-1}\|_2 = 1/\lambda_{\min}(A), and ∥A∥q/d≤∥A∥p≤∥A∥q⋅d\|A\|_q/d \leq \|A\|_p \leq \|A\|_q \cdot d for any 1≤p,q≤∞1 \leq p, q \leq \infty.

Our analysis heavily relies on the following lemma that follows from the nonnegativity of M-matrix inverses.

2^{2}Such a “universal” barrier was known to exist before [LS14] but it was computationally intractable.

Lemma 1.4. For an M-matrix A with A1⃗≥c⋅1⃗A\vec{1} \geq c \cdot \vec{1} where c>0c > 0, we have ∥A−1∥∞≤1/c\|A^{-1}\|_{\infty} \leq 1/c.

Proof. As A−1A^{-1} is entry-wise nonnegative [BP94], multiplying both sides by A−1A^{-1}, we have 1⃗≥cA−11⃗\vec{1} \geq cA^{-1}\vec{1}. The ℓ∞\ell_\infty-norm of a nonnegative matrix is equal to the maximum row sum, so ∥A−1∥∞=max⁡i∈[d][A−11⃗]i≤1/c\|A^{-1}\|_\infty = \max_{i \in [d]} [A^{-1}\vec{1}]_i \leq 1/c.

Let H∈Rd×dH \in \mathbb{R}^{d \times d} be positive definite. We often consider solving linear systems in HH approximately. For v∈Rdv \in \mathbb{R}^d and η≥0\eta \geq 0, let Aη(H,v)=def{u∈Rd:∥u−H−1v∥2≤η∥v∥2∥H−1∥2}\mathcal{A}_\eta(H, v) \stackrel{\text{def}}{=} \{u \in \mathbb{R}^d : \|u - H^{-1}v\|_2 \leq \eta \|v\|_2 \|H^{-1}\|_2\} consist of η\eta-approximate solutions to H−1vH^{-1}v. 3^3

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.

References (45)