Abstract
This paper presents a unified theoretical framework for Stochastic Lanczos Quadrature (SLQ) and the Kernel Polynomial Method (KPM), two widely used matrix-free techniques for approximating the spectral properties of large Hermitian matrices. By analyzing these methods as a two-stage randomized quadrature process—combining stochastic trace estimation with polynomial quadrature—the authors derive new uniform error bounds. These bounds guarantee accuracy for entire classes of analytic functions, providing a rigorous justification for using these methods to estimate continuous spectral properties. Experimental evaluations on synthetic and real-world matrices demonstrate the complementary strengths of SLQ and KPM in resolving sparse versus smooth spectra.
Introduction
Estimating the global properties of massive Hermitian matrices, such as the Cumulative Empirical Spectral Measure (CESM) or the trace of a matrix function $\text{tr}(f(\mathbf{A}))$, is a fundamental task in quantum physics, statistics, and data science. When matrices are too large for $O(n^3)$ eigendecomposition, matrix-free methods that rely solely on matrix-vector products are essential. Stochastic Lanczos Quadrature (SLQ) and the Kernel Polynomial Method (KPM) are the primary tools for this purpose. However, their theoretical analyses have historically been fragmented. This work bridges this gap by providing a unified analysis and new "uniform" error bounds that apply to broad classes of functions.
Methods
The authors frame both SLQ and KPM as a two-stage randomized quadrature process. The first stage involves stochastic trace estimation using $m$ random unit vectors to create an unbiased estimator of the spectrum. The second stage approximates this estimator using a polynomial of degree $s$.
The primary distinction between the methods lies in the quadrature rule: SLQ uses adaptive Gaussian quadrature via the Lanczos algorithm, while KPM uses fixed-node quadrature by approximation (e.g., Chebyshev polynomials). A significant contribution of this work is the derivation of uniform bounds for analytic functions. Unlike previous point-wise bounds, these guarantee that the approximation is simultaneously accurate for all functions within a specific class, such as those analytic on a Bernstein ellipse.
Results and Discussion
The unified framework was tested on several benchmarks, including Kneser graphs, sample covariance matrices, and Heisenberg spin Hamiltonians. Key findings include:
- Resolution and Sparsity: SLQ is "spectrum-aware." For a matrix with $S$ distinct eigenvalues, SLQ achieves exact results in $S$ iterations (in exact arithmetic). In contrast, KPM is "spectrum-oblivious" and requires significantly higher polynomial degrees to resolve sharp spectral features.
- Smoothness: KPM is often preferred for generating smooth density estimates, as it avoids the discrete "delta-function" spikes characteristic of raw Gaussian quadrature.
- Convergence and Stability: For analytic functions, error decays exponentially with the degree $s$. The number of random samples $m$ required for a target accuracy $\epsilon$ is shown to be independent of the matrix size $n$ for sufficiently large $n$. Furthermore, SLQ remains robust in finite-precision arithmetic, maintaining convergence rates comparable to optimal polynomial approximations despite loss of orthogonality in the Lanczos process.
Conclusion
This work provides a rigorous theoretical bridge between SLQ and KPM, offering practitioners clear guidance on method selection and convergence expectations. By establishing uniform error bounds, the authors justify the use of these methods for continuous property estimation across parameter spaces. Future work will focus on developing a posteriori stopping criteria and extending the framework to non-Hermitian matrices.
Summary updated