English

Near-Optimal Entrywise Sampling of Numerically Sparse Matrices

Data Structures and Algorithms 2021-07-06 v2

Abstract

Many real-world data sets are sparse or almost sparse. One method to measure this for a matrix ARn×nA\in \mathbb{R}^{n\times n} is the \emph{numerical sparsity}, denoted ns(A)\mathsf{ns}(A), defined as the minimum k1k\geq 1 such that a1/a2k\|a\|_1/\|a\|_2 \leq \sqrt{k} for every row and every column aa of AA. This measure of aa is smooth and is clearly only smaller than the number of non-zeros in the row/column aa. The seminal work of Achlioptas and McSherry [2007] has put forward the question of approximating an input matrix AA by entrywise sampling. More precisely, the goal is to quickly compute a sparse matrix A~\tilde{A} satisfying AA~2ϵA2\|A - \tilde{A}\|_2 \leq \epsilon \|A\|_2 (i.e., additive spectral approximation) given an error parameter ϵ>0\epsilon>0. The known schemes sample and rescale a small fraction of entries from AA. We propose a scheme that sparsifies an almost-sparse matrix AA -- it produces a matrix A~\tilde{A} with O(ϵ2ns(A)nlnn)O(\epsilon^{-2}\mathsf{ns}(A) \cdot n\ln n) non-zero entries with high probability. We also prove that this upper bound on nnz(A~)\mathsf{nnz}(\tilde{A}) is \emph{tight} up to logarithmic factors. Moreover, our upper bound improves when the spectrum of AA decays quickly (roughly replacing nn with the stable rank of AA). Our scheme can be implemented in time O(nnz(A))O(\mathsf{nnz}(A)) when A2\|A\|_2 is given. Previously, a similar upper bound was obtained by Achlioptas et. al [2013] but only for a restricted class of inputs that does not even include symmetric or covariance matrices. Finally, we demonstrate two applications of these sampling techniques, to faster approximate matrix multiplication, and to ridge regression by using sparse preconditioners.

Keywords

Cite

@article{arxiv.2011.01777,
  title  = {Near-Optimal Entrywise Sampling of Numerically Sparse Matrices},
  author = {Vladimir Braverman and Robert Krauthgamer and Aditya Krishnan and Shay Sapir},
  journal= {arXiv preprint arXiv:2011.01777},
  year   = {2021}
}

Comments

20 pages. To appear in COLT 2021

R2 v1 2026-06-23T19:53:18.999Z