English

Universal Matrix Sparsifiers and Fast Deterministic Algorithms for Linear Algebra

Data Structures and Algorithms 2024-01-15 v3 Numerical Analysis Numerical Analysis

Abstract

Let SRn×n\mathbf S \in \mathbb R^{n \times n} satisfy 1S2ϵn\|\mathbf 1-\mathbf S\|_2\le\epsilon n, where 1\mathbf 1 is the all ones matrix and 2\|\cdot\|_2 is the spectral norm. It is well-known that there exists such an S\mathbf S with just O(n/ϵ2)O(n/\epsilon^2) non-zero entries: we can let S\mathbf S be the scaled adjacency matrix of a Ramanujan expander graph. We show that such an S\mathbf S yields a universaluniversal sparsifiersparsifier for any positive semidefinite (PSD) matrix. In particular, for any PSD ARn×n\mathbf A \in \mathbb{R}^{n\times n} with entries bounded in magnitude by 11, AAS2ϵn\|\mathbf A - \mathbf A\circ\mathbf S\|_2 \le \epsilon n, where \circ denotes the entrywise (Hadamard) product. Our techniques also give universal sparsifiers for non-PSD matrices. In this case, letting S\mathbf S be the scaled adjacency matrix of a Ramanujan graph with O~(n/ϵ4)\tilde O(n/\epsilon^4) edges, we have AAS2ϵmax(n,A1)\|\mathbf A - \mathbf A \circ \mathbf S \|_2 \le \epsilon \cdot \max(n,\|\mathbf A\|_1), where A1\|\mathbf A\|_1 is the nuclear norm. We show that the above bounds for both PSD and non-PSD matrices are tight up to log factors. Since AS\mathbf A \circ \mathbf S can be constructed deterministically, our result for PSD matrices derandomizes and improves upon known results for randomized matrix sparsification, which require randomly sampling O(nlognϵ2){O}(\frac{n \log n}{\epsilon^2}) entries. We also leverage our results to give the first deterministic algorithms for several problems related to singular value approximation that run in faster than matrix multiplication time. Finally, if A{1,0,1}n×n\mathbf A \in \{-1,0,1\}^{n \times n} is PSD, we show that A~\mathbf{\tilde A} with AA~2ϵn\|\mathbf A - \mathbf{\tilde A}\|_2 \le \epsilon n can be obtained by deterministically reading O~(n/ϵ)\tilde O(n/\epsilon) entries of A\mathbf A. This improves the 1/ϵ1/\epsilon dependence on our result for general PSD matrices and is near-optimal.

Cite

@article{arxiv.2305.05826,
  title  = {Universal Matrix Sparsifiers and Fast Deterministic Algorithms for Linear Algebra},
  author = {Rajarshi Bhattacharjee and Gregory Dexter and Cameron Musco and Archan Ray and Sushant Sachdeva and David P Woodruff},
  journal= {arXiv preprint arXiv:2305.05826},
  year   = {2024}
}

Comments

41 pages

R2 v1 2026-06-28T10:30:35.202Z