Improved Spectral Density Estimation via Explicit and Implicit Deflation

Rajarshi Bhattacharjee, Rajesh Jayaram, Cameron Musco, Christopher Musco, Archan Ray

TL;DR

This paper introduces novel algorithms for estimating the spectral density (eigenvalue distribution) of large matrices, achieving significantly improved accuracy and efficiency. By combining explicit and implicit deflation techniques with moment matching and Lanczos methods, the authors provide theoretical guarantees and demonstrate practical advantages over existing methods, particularly for matrices with decaying eigenvalues.

What Problem Does This Paper Address?

Understanding the distribution of eigenvalues of a matrix is crucial in many scientific and engineering fields, from quantum mechanics to network analysis and machine learning. While a full eigendecomposition can reveal this information, it's computationally prohibitive for large matrices. Existing methods, often relying on matrix-vector products, provide approximations but can be inaccurate for matrices where eigenvalues decay rapidly (i.e., exhibit low-rank structure). These methods typically guarantee an error proportional to the matrix's spectral norm (largest eigenvalue magnitude), which is a loose bound when most eigenvalues are much smaller. The challenge is to develop algorithms that can accurately estimate the spectral density, especially the distribution of smaller eigenvalues, with fewer computational resources.

Methods

The paper presents two main algorithmic contributions:

  1. Explicit Deflation with Moment Matching: This method first identifies and "deflates" (removes) the largest magnitude eigenvalues using a block Krylov subspace method. This process yields an approximate orthonormal basis for the corresponding eigenvectors. Then, a Chebyshev polynomial moment matching method is applied to the deflated matrix, which has a significantly smaller spectral norm. This approach leads to an improved error bound that depends on the $(l+1)$-th largest singular value ($\sigma_{l+1}(A)$) rather than the full spectral norm ($\|A\|_2$).
  2. Implicit Deflation with Stochastic Lanczos Quadrature (SLQ): The authors show that the popular SLQ algorithm, surprisingly, implicitly performs a form of deflation. By analyzing SLQ through the lens of moment matching and leveraging recent work on low-rank approximation, they demonstrate that SLQ can achieve error bounds comparable to explicit deflation, even without explicit parameter tuning for deflation. They also introduce a "variance reduced SLQ" variant that further improves accuracy by correctly weighting converged eigenvalues.

Both approaches rely on careful theoretical analysis of Krylov subspace methods and moment matching techniques, providing new bounds on eigenvalue and eigenvector approximations.

Datasets

The paper evaluates its algorithms on a variety of synthetic and real-world matrices:

  • Gaussian matrix: A 5000x5000 matrix constructed to have eigenvalues drawn from a Gaussian distribution.
  • Uniform matrix: A 5000x5000 matrix with eigenvalues drawn uniformly from [-1, 1].
  • Inverse spectrum matrix: A 5000x5000 diagonal matrix with entries 1, 1/2, ..., 1/5000.
  • Power law spectrum matrix: A 5000x5000 diagonal matrix with entries 1, 1/2², ..., 1/25000.
  • Low-rank matrix: A 5000x5000 matrix with 100 Gaussian entries and the rest zero.
  • Erdos992 adjacency matrix: A real-world network adjacency matrix with 6100 vertices and 15030 edges.

The authors note that most of these matrices are diagonal, ensuring "rotationally invariant" performance, meaning the results are not dependent on the specific eigenvector basis.

Key Insights and Ideas

  • Deflation is Key for Decaying Spectra: The core insight is that explicitly or implicitly removing the largest eigenvalues (deflation) is crucial for accurately estimating the distribution of smaller eigenvalues, especially when they decay rapidly. This allows algorithms to focus their precision where it matters most.
  • SLQ's "Implicit Deflation": The paper reveals that SLQ, a widely used and parameter-free algorithm, inherently performs a form of deflation, explaining its strong practical performance and "spectrum adaptive" nature.
  • Improved Error Bounds: The new algorithms achieve error bounds that depend on $\sigma_{l+1}(A)$ (the $(l+1)$-th largest singular value) instead of $\|A\|_2$. This is a significant improvement for matrices with decaying spectra, where $\sigma_{l+1}(A) \ll \|A\|_2$.
  • Near-Optimality: The paper establishes a lower bound showing that the proposed algorithms are nearly optimal in terms of matrix-vector query complexity, up to logarithmic factors.

Key Results

  • Theorem 1 (Explicit Deflation): Achieves an error of $\epsilon \cdot \sigma_{l+1}(A) + \|A\|_2/n^{c_2}$ using $O(l \log n + 1/\epsilon)$ matrix-vector products.
  • Theorem 3 (SLQ): Achieves an error of $\epsilon \cdot \sigma_{l+1}(A) + \tilde{O}(\|A\|_2/\sqrt{n})$ using $O(l \log n + \log \kappa)$ matrix-vector products.
  • Theorem 4 (Variance Reduced SLQ): Provides an even tighter error bound, achieving $\epsilon \cdot \sigma_{l+1}(A) + \tilde{O}(\sigma_{l+1}(A)/\sqrt{n})$ with $O(l \log n + \log \kappa)$ matrix-vector products.
  • Theorem 2 (Lower Bound): Shows that any algorithm achieving an error of $\epsilon \cdot \sigma_{l+1}(A)$ requires $\Omega(l + 1/\epsilon)$ matrix-vector products.
  • Empirical Results: Experiments show that VR-SLQ consistently outperforms other methods, especially for matrices with few large eigenvalues. Variants of Algorithm 1 (def-CMM, def-KPM) also outperform their non-deflation counterparts.

Limitations and Future Work

  • Numerical Stability: The authors acknowledge that their bounds, like many in this area, might suffer from numerical stability issues when implemented in finite precision arithmetic. They suggest that using stable Krylov subspace algorithms (e.g., with full reorthogonalization) can mitigate this without affecting query complexity.
  • Gap Dependence: The analysis for SLQ (Theorem 3) has a dependence on the minimum gap between singular values ($\text{gmin}$). The authors note that this can be removed by adding a random perturbation to the matrix, ensuring $\text{gmin} \ge \text{poly}(n)$ with high probability.
  • Additive Error Terms: While the primary error terms are improved, some additive error terms remain (e.g., $\tilde{O}(\|A\|_2/\sqrt{n})$ in Theorem 3). The authors believe these can be removed by averaging over multiple runs of SLQ, though this would complicate the analysis for their deflation-based bounds.
  • Future Work: The paper suggests exploring variants of SLQ that average over multiple random starting vectors to improve concentration and potentially remove additive error terms. Further investigation into the numerical stability of the proposed methods is also a natural direction.

Summary updated

BibTeX
@inproceedings{bhattacharjee2025improved,
  author = {Rajarshi Bhattacharjee and Rajesh Jayaram and Cameron Musco and Christopher Musco and Archan Ray},
  title = {{Improved Spectral Density Estimation via Explicit and Implicit Deflation}},
  booktitle = {SODA},
  year = {2025},
  doi = {10.1137/1.9781611978322.88},
}
Figure