Skip to main content
QUICK REVIEW

[Paper Review] Analysis of stochastic Lanczos quadrature for spectrum approximation

Tyler Chen, Thomas Trogdon|arXiv (Cornell University)|May 13, 2021
Sparse and Compressive Sensing TechniquesEngineering48 references7 citations
TL;DR

This paper provides a rigorous error analysis for stochastic Lanczos quadrature (SLQ), a method for approximating the cumulative empirical spectral measure (CESM) of symmetric matrices. It establishes probabilistic bounds on the Wasserstein and Kolmogorov–Smirnov distances between the SLQ output and the true CESM, showing that SLQ achieves accuracy within $ t imes | ext{range}( ext{spec}( extbf{A}))| $ with high probability using $ ilde{O}(t^{-2}) $ random vectors and $ ilde{O}(t^{-1}) $ Lanczos iterations.

ABSTRACT

The cumulative empirical spectral measure (CESM) $Φ[\mathbf{A}] : \mathbb{R} o [0,1]$ of a $n imes n$ symmetric matrix $\mathbf{A}$ is defined as the fraction of eigenvalues of $\mathbf{A}$ less than a given threshold, i.e., $Φ[\mathbf{A}](x) := \sum_{i=1}^{n} \frac{1}{n} {\large\unicode{x1D7D9}}[ λ_i[\mathbf{A}]\leq x]$. Spectral sums $\operatorname{tr}(f[\mathbf{A}])$ can be computed as the Riemann--Stieltjes integral of $f$ against $Φ[\mathbf{A}]$, so the task of estimating CESM arises frequently in a number of applications, including machine learning. We present an error analysis for stochastic Lanczos quadrature (SLQ). We show that SLQ obtains an approximation to the CESM within a Wasserstein distance of $t \: | λ_{ ext{max}}[\mathbf{A}] - λ_{ ext{min}}[\mathbf{A}] |$ with probability at least $1-η$, by applying the Lanczos algorithm for $\lceil 12 t^{-1} + \frac{1}{2} ceil$ iterations to $\lceil 4 ( n+2 )^{-1}t^{-2} \ln(2nη^{-1}) ceil$ vectors sampled independently and uniformly from the unit sphere. We additionally provide (matrix-dependent) a posteriori error bounds for the Wasserstein and Kolmogorov--Smirnov distances between the output of this algorithm and the true CESM. The quality of our bounds is demonstrated using numerical experiments.

Motivation & Objective

  • To provide a theoretical foundation for stochastic Lanczos quadrature (SLQ) in approximating the cumulative empirical spectral measure (CESM) of symmetric matrices.
  • To quantify the accuracy of SLQ in terms of Wasserstein and Kolmogorov–Smirnov distances to the true CESM.
  • To derive both a priori and a posteriori error bounds that are matrix-dependent and practically useful for real-world applications.
  • To demonstrate the tightness and practical relevance of these bounds through numerical experiments on diverse matrix types.
  • To clarify the tradeoffs between SLQ and related spectral approximation methods like the kernel polynomial method (KPM) by providing a unified analytical framework.

Proposed method

  • The method uses random vectors sampled uniformly from the unit sphere to generate unbiased estimators of the CESM via the weighted cumulative spectral measure $ \Psi[\mathbf{A},\mathbf{v}](x) = \mathbf{v}^T \mathbbm{1}[\mathbf{A} \leq x] \mathbf{v} $.
  • It applies the Lanczos algorithm to each random vector to construct a tridiagonal matrix, enabling efficient computation of Gaussian quadrature rules for $ \Psi[\mathbf{A},\mathbf{v}] $.
  • The final approximation is obtained by averaging the Gaussian quadrature results over multiple random vectors, forming the stochastic Lanczos quadrature estimator.
  • Theoretical bounds are derived using properties of Gaussian quadrature and the Stieltjes procedure, relating the error to the distribution of eigenvalues and the number of Lanczos steps.
  • A priori bounds are given in terms of the matrix condition number and desired accuracy $ t $, requiring $ \lceil 4(n+2)^{-1}t^{-2}\ln(2n\eta^{-1})\rceil $ vectors and $ \lceil 12t^{-1} + \frac{1}{2} \rceil $ Lanczos iterations to achieve $ t \times |\lambda_{\text{max}} - \lambda_{\text{min}}| $ error with probability at least $ 1 - \eta $.
  • A posteriori bounds are derived using the eigenvalue distribution and quadrature node placement, providing tighter, matrix-specific error estimates.

Experimental results

Research questions

  • RQ1What is the theoretical error bound for stochastic Lanczos quadrature in approximating the cumulative empirical spectral measure?
  • RQ2How does the number of random vectors and Lanczos iterations affect the accuracy of the approximation in terms of Wasserstein and Kolmogorov–Smirnov distances?
  • RQ3Can a priori bounds be derived that depend on matrix properties like spectral range and condition number?
  • RQ4How do a posteriori error bounds compare to the true error in practice, and in what scenarios do they stagnate?
  • RQ5What is the relationship between SLQ and other spectral approximation methods like the kernel polynomial method (KPM), and how do their error behaviors differ?

Key findings

  • SLQ achieves a Wasserstein distance error of at most $ t \times |\lambda_{\text{max}}[\mathbf{A}] - \lambda_{\text{min}}[\mathbf{A}]| $ with probability at least $ 1 - \eta $, using $ \lceil 12t^{-1} + \frac{1}{2} \rceil $ Lanczos iterations and $ \lceil 4(n+2)^{-1}t^{-2}\ln(2n\eta^{-1}) \rceil $ random vectors.
  • The a priori bound scales as $ O(t^{-1}) $ in the number of iterations and $ O(t^{-2}) $ in the number of vectors, matching practical convergence rates observed in experiments.
  • The a posteriori error bound based on eigenvalue clustering and quadrature node placement can stagnate when eigenvalues are tightly clustered, especially if the interval between clusters is large relative to the cluster width.
  • For smooth spectra like the uniform example, convergence is approximately $ O(k^{-1}) $, while for clustered spectra like MNIST covariance, convergence accelerates beyond $ O(k^{-1}) $ as $ k $ increases.
  • The stagnation of the a posteriori bound is due to the inability of Gaussian quadrature to resolve very narrow eigenvalue clusters unless sufficient Lanczos steps are used.
  • Numerical experiments confirm that the theoretical bounds are tight and informative, with the a posteriori bound often providing sharper estimates than the a priori bound in practice.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.