Robust and Sample Optimal Algorithms for PSD Low-Rank Approximation

Ainesh Bakshi, Nadiia Chepurko, David P. WoodruffOpenReview 2019 · DOI

Abstract

Recently, Musco and Woodruff (FOCS, 2017) showed that given an $n \times n$ positive semidefinite (PSD) matrix $A$, it is possible to compute a $(1+\epsilon)$-approximate relative-error low-rank approximation to $A$ by querying $\tilde{O}(nk/\epsilon^{2.5})$ entries of $A$ in time $\tilde{O}(nk/\epsilon^{2.5} + nk^{\omega-1}/\epsilon^{2(\omega-1)})$. They also showed that any relative-error low-rank approximation algorithm must query $\Omega(nk/\epsilon)$ entries of $A$; this gap has since remained open. Our main result is to resolve this question by obtaining an optimal algorithm that queries $\tilde{O}(nk/\epsilon)$ entries of $A$ and outputs a relative-error low-rank approximation in $\tilde{O}(n \cdot (k/\epsilon)^{\omega-1})$ time. Note, our running time improves that of Musco and Woodruff, and matches the information-theoretic lower bound if the matrix-multiplication exponent $\omega$ is 2. We then extend our techniques to negative-type distance matrices. Here, our input is a pair-wise distance matrix $A$ corresponding to a point set $P=\{x_1, x_2, ..., x_n\}$ such that $A_{i,j}=||x_i-x_j||_2^2$. Bakshi and Woodruff (NeurIPS, 2018) showed a bi-criteria, relative-error low-rank approximation for negative-type metrics. Their algorithm queries $\tilde{O}(nk/\epsilon^{2.5})$ entries and outputs a rank-$(k+4)$ matrix. We show that the bi-criteria guarantee is not necessary and obtain an $\tilde{O}(nk/\epsilon)$ query algorithm, which is optimal. Our algorithm applies to all distance matrices that arise from metrics satisfying negative-type inequalities, including $\ell_1, \ell_2$, spherical metrics, hypermetrics and effective resistances on a graph. We also obtain faster algorithms for ridge regression. Next, we introduce a new robust low-rank approximation model which captures PSD matrices that have been corrupted with noise. We assume that the Frobenius norm of the corruption is bounded. Here, we relax the notion of approximation to additive-error, since it is information-theoretically impossible to obtain a relative-error approximation in this setting. While a sample complexity lower bound precludes sublinear algorithms for arbitrary PSD matrices, we provide the first sublinear time and query algorithms when the corruption on the diagonal entries is bounded. As a special case, we show sample-optimal sublinear time algorithms for low-rank approximation of correlation matrices corrupted by noise.

Introduction

Low-rank approximation (LRA) is a fundamental tool in data science, used to compress large datasets while preserving their essential structure. For a general $n \times n$ matrix, finding a good approximation usually requires reading almost every entry. However, for Positive Semidefinite (PSD) matrices—which are ubiquitous in machine learning as covariance matrices, kernel matrices, and graph Laplacians—sublinear algorithms are possible because the diagonal entries bound the off-diagonal entries ($A_{i,j}^2 \le A_{i,i} A_{j,j}$).

Closing the Sample Complexity Gap

Since 2017, a significant gap existed in the literature: researchers knew that any algorithm must query at least $\Omega(nk/\epsilon)$ entries to get a $(1+\epsilon)$-relative error approximation, but the best available algorithms required $O(nk/\epsilon^{2.5})$ queries. This research finally closes that gap, proving that the lower bound is achievable across multiple problem variants.

Table 1: Comparison of query complexity and run time between prior work and the proposed algorithms across various problem settings.

As shown in the table above, the new results (under "Our Results") match the "Query Lower Bound" for PSD LRA and Negative-Type LRA, while also improving the run time significantly. For Negative-Type LRA, the authors also eliminate the need for "bi-criteria" solutions, outputting a rank-$k$ matrix rather than a slightly higher rank.

Methodology: Spectral-Frobenius Projections

The authors move away from standard iterative regression techniques and introduce a framework based on Spectral-Frobenius (SF) projections.

  1. Spectral Regression: The core technical innovation is a sample-optimal algorithm for Spectral Regression (minimizing the operator norm $||DX - E||_2$). They show that if $D$ has orthonormal columns, one can sketch the problem by sampling rows proportional to the leverage scores of $D$. This works even while being completely agnostic to the entries in $E$.
  2. Two-Stage Sketching: They use existing "projection-cost preserving" (PCP) sketches but with much coarser parameters than previous work. This keeps the query count low. They then use their new Spectral Regression solver to "clean up" the approximation and reach the desired $\epsilon$-accuracy.

Robustness in the Presence of Noise

The authors also introduce a new robust low-rank approximation model for PSD matrices corrupted with noise. Because relative-error approximation is information-theoretically impossible in this setting, they provide the first sublinear time and query algorithms for additive-error approximation. This is achieved by introducing a parameter $\phi_{max}$, representing the maximum ratio between a true diagonal entry and its corrupted version, allowing for a quantified measure of adversarial "obfuscation."

Conclusion

This work represents a significant step forward in randomized numerical linear algebra by hitting the information-theoretic limit for PSD LRA. By exploiting the "certificate" provided by diagonal entries and introducing optimal spectral regression solvers, the authors have resolved a long-standing open question and provided a robust framework for noisy real-world data.

Summary updated

BibTeX
@misc{bakshi2019robust,
  author = {Ainesh Bakshi and Nadiia Chepurko and David P. Woodruff},
  title = {{Robust and Sample Optimal Algorithms for PSD Low-Rank Approximation}},
  year = {2019},
  eprint = {1912.04177},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.04177},
  howpublished = {OpenReview},
}
Figure