Optimal Eigenvalue Approximation via Sketching

William Swartworth, David P. Woodruff

Abstract

Estimating the spectrum of large-scale symmetric matrices is a fundamental challenge in data science and spectral graph theory. Traditional methods like Singular Value Decomposition (SVD) are computationally prohibitive for massive datasets. This paper presents a novel sketching algorithm that achieves optimal $O(1/\epsilon^2)$ sketching dimension to approximate all eigenvalues of a symmetric matrix simultaneously. By utilizing a bilinear Gaussian sketch and a unique bias-correction mechanism, the proposed method overcomes the limitations of previous approaches, such as high memory requirements and the inability to process non-positive semidefinite (non-PSD) matrices.

Introduction

In modern data analysis, the eigenvalues of a matrix—collectively known as its spectrum—provide critical insights into the underlying structure of data, from the connectivity of social networks to the stability of physical systems. However, as matrices grow to millions or billions of dimensions, traditional $O(n^3)$ eigenvalue decomposition becomes a bottleneck.

Sketching has emerged as a powerful technique to address this. By multiplying a large matrix $A$ by a smaller random matrix $G$, researchers can create a compressed "summary" of the data. Despite its promise, previous sketching techniques for eigenvalue estimation faced significant hurdles: they often required excessively large sketches (up to $O(1/\epsilon^{16})$), were restricted to positive semidefinite (PSD) matrices, or failed to preserve the signs of eigenvalues. This paper introduces a mathematically optimal framework that resolves these issues.

The Sketching Bottleneck

Prior research into spectral sketching typically struggled with the trade-off between sketch size and accuracy. To achieve an additive error of $\epsilon \|A\|_F$, where $\|A\|_F$ is the Frobenius norm, earlier methods required dimensions that scaled poorly with $\epsilon$. Furthermore, many algorithms were "sign-blind," meaning they could estimate the magnitude of eigenvalues but not whether they were positive or negative—a critical requirement for general symmetric matrices.

Method: Bilinear Gaussian Sketching and Bias Correction

The authors propose a remarkably elegant algorithm centered on a bilinear Gaussian sketch. The process involves three primary steps:

  1. Sketching: For an $n \times n$ symmetric matrix $A$, a $k \times k$ sketch $S$ is computed as $S = GAG^T$, where $G$ is a $k \times n$ matrix of random Gaussian entries and $k \approx 1/\epsilon^2$.
  2. Eigenvalue Extraction: The eigenvalues $\lambda_i(S)$ of the compressed matrix $S$ are calculated.
  3. Bias Correction: The core innovation of this paper is the observation that the eigenvalues of $S$ are inherently biased. The small eigenvalues of $A$ (the "tail") act as noise that shifts the eigenvalues of the sketch. To correct this, the authors apply a shift: $$\alpha_i = \lambda_i(S) - \frac{1}{k} \text{Tr}(S)$$

This correction factor, $\frac{1}{k} \text{Tr}(S)$, effectively centers the estimated eigenvalues, allowing $\alpha_i$ to serve as a high-precision approximation of the original eigenvalues $\lambda_i(A)$.

Theoretical Framework

The proof of this method's efficacy relies on the Hanson-Wright inequality and a strategic decomposition of the matrix spectrum. The authors split the spectrum into a "head" (the dominant eigenvalues) and a "tail" (the remaining small eigenvalues). They demonstrate that while the tail eigenvalues introduce noise, this noise concentrates into a predictable bias due to the properties of Gaussian matrices. By subtracting this bias, the algorithm isolates the signal from the head eigenvalues.

Because the sketch $S = GAG^T$ preserves the symmetry of the original matrix, the algorithm naturally maintains sign information. This allows it to distinguish between positive and negative eigenvalues, a significant advancement over previous methods.

Key Results and Optimality

The paper establishes several landmark results in algorithmic complexity:

  • Optimal Sketch Size: The method achieves a sketching dimension of $O(1/\epsilon^2)$, which the authors prove is the information-theoretic lower bound. No algorithm can achieve the same accuracy with a smaller sketch.
  • Simultaneous Approximation: All eigenvalues are approximated within $\epsilon \|A\|_F$ additive error simultaneously with high probability (at least 3/5).
  • Query Complexity: The sketch can be constructed using $O(1/\epsilon^2)$ matrix-vector multiplications. The authors provide a lower bound using Wishart matrices ($W(n, r)$) to show that this query complexity is optimal even for adaptive algorithms.

Discussion and Future Work

While the paper provides a definitive theoretical solution for optimal eigenvalue sketching, it opens several avenues for future research. The current proofs rely on the rotational invariance of Gaussian distributions; whether "fast" sketching matrices (like Count-Sketch or Subsampled Randomized Hadamard Transforms) can achieve the same $1/\epsilon^2$ optimality remains an open question. Additionally, while the big-O complexity is optimal, the practical constant factors and performance in real-world software implementations compared to heuristic methods like randomized Lanczos iterations are yet to be fully explored.

By identifying that the error in bilinear sketches is a systematic bias rather than random noise, this work provides a simple, robust, and optimal tool for large-scale spectral analysis.

Summary updated

BibTeX
@inproceedings{swartworth2023optimal,
  author = {William Swartworth and David P. Woodruff},
  title = {{Optimal Eigenvalue Approximation via Sketching}},
  booktitle = {STOC},
  year = {2023},
  doi = {10.1145/3564246.3585102},
}
Figure