arXiv:2611.09601cs.DSNov 2026

Manuscript Offprint

arXiv:2611.09601

A Fast and Accurate Algorithm for the p→qp \to q Norm of Sparse Non-Negative Matrices

Marco Pirazzini, Daniel A. Spielman

Abstract

We present an algorithm that computes the p→qp \to q norm of a non-negative matrix with ss nonzero entries to accuracy ε\varepsilon in time O~(s3/2log⁡(1/ε))\tilde{O}(s^{3/2} \log(1/\varepsilon)), for any p≥q≥1p \ge q \ge 1. The fastest algorithm previously designed for this problem has running time O~(s/ε)\tilde{O}(s/\varepsilon) (Objois and Vladu, 2026), which is slower when high accuracy solutions are desired.

Our algorithm employs a surprising application of Laplacian solvers inside an Interior Point Method (IPM). We formulate the problem as a linear optimization problem over a product of power cones, and show that the Newton updates of the IPM can be computed by solving a Laplacian system in a Schur complement after subtracting a rank-2 matrix.

We also discuss an implementation of our algorithm, showing that it is practical and it outperforms optimized solvers such as MOSEK by factors of up to 20×20\times on a variety of tasks.

*This research was partially supported by ONR Award N00014-24-12611. †Email: marco.pirazzini@yale.edu ‡Email: daniel.spielman@yale.edu

1 Introduction

The p→qp \to q norm of a matrix AA is

∥A∥p→q=defmax⁡x:∥x∥p=1∥Ax∥q.\|A\|_{p\to q}\stackrel{\mathrm{def}}{=}\max_{x:\|x\|_{p}=1}\|Ax\|_{q}.

When p=q=2p=q=2, this quantity becomes the leading singular value of AA and xx becomes the singular vector.

The success of singular values and singular vectors has inspired quests to generalize them to solve new problems or improve existing solutions. Their generalization for p≥q≥1p\geq q\geq 1 has many potential applications, but the challenges in computing these has made them difficult to realize.

For general matrices, we only know efficient algorithms for computing these matrix norms when p=1,q=∞p=1, q=\infty or when p=q∈{1,2,∞}p=q\in\{1,2,\infty\}. The hypercontractive regime corresponds to 1≤p<q1\leq p<q, while p≥q≥1p\geq q\geq 1 is the non-hypercontractive regime. For the latter, Bhaskara and Vijayaraghavan [BV11] showed that it is NP-hard to approximate ∥A∥p→q\|A\|_{p\to q} to within any constant factor for 1<q≤p<21<q\leq p<2 or 2<q≤p<∞2<q\leq p<\infty, without any assumptions about AA. For p≥2≥qp\geq 2\geq q, Bhattiprolu et al. [BGG+19^{19}] present a constant factor approximation algorithm using semidefinite programming. The hypercontractive regime has also received a lot of attention both for hardness of approximation results and specialized approximation algorithms [BBH+12^{12}, BGG+18^{18}, GMU25, HT26].

For non-negative matrices AA, [BV11] describe a polynomial-time approximation algorithm for the case p≥q≥1p\geq q\geq 1. The fastest algorithm for sparse matrices with ss non-zero entries and low accuracy is that of Objois and Vladu [OV26], which obtains an ε\varepsilon approximation in time O~(s/ϵ)\widetilde{O}(s/\epsilon). To obtain running time depending on log⁡(1/ε)\log(1/\varepsilon), one can apply standard convex programming techniques to the convex formulation of [Ste05, Remark 3.4]. The cutting planes method of Jiang, Lee, Song, and Wong [JLSW20] provides the asymptotically fastest high-accuracy algorithm for dense matrices based on this approach.

Computing the p→qp\to q norm of non-negative matrices for p≥q≥1p\geq q\geq 1 has several applications, including oblivious routing schemes [ER09, BV11, OV26], robust optimization [Ste05], computing certifiable stopping criteria for Glauber dynamics [DGJ09], or computing certificates for bounding errors in vector-valued predictions in neural networks [CP20].

The following theorem encapsulates the guarantees of our algorithm, which is the fastest for high accuracy solutions in sparse non-negative matrices.

Theorem 1. On input a non-negative matrix A∈Rm×nA\in\mathbb{R}^{m\times n} with ss non-zero entries, two numbers p≥q≥1p\geq q\geq 1, and a ε>0a\,\varepsilon>0, Algorithm 1 computes a (1−ε)a\,(1-\varepsilon) multiplicative approximation to ∥A∥p→q\|A\|_{p\to q} in expected time O~(s32log⁡1ε)\widetilde{O}(s^{\frac{3}{2}}\log\frac{1}{\varepsilon}).

The randomization in the algorithm appears inside calls to Laplacian solvers, and can be removed at a multiplicative cost of no(1)n^{o(1)} in running time [CGL+20^{20}].

Table 1 compares the running times of algorithms for this problem. For square matrices, ours becomes faster than the application of cutting planes [JLSW20] when s<n2s<n^2. Our algorithm becomes faster than that of Objois and Vladu [OV26] when ε<1/s\varepsilon<1/\sqrt{s}. For s≤O~(n)s\leq \widetilde{O}(n) and ε≤1/n2\varepsilon\leq 1/n^2, our algorithm is faster than both of these by a factor of n3/2n^{3/2}.

References (45)