English

Stability of the Lanczos Method for Matrix Function Approximation

Data Structures and Algorithms 2024-11-19 v2 Numerical Analysis Numerical Analysis

Abstract

The ubiquitous Lanczos method can approximate f(A)xf(A)x for any symmetric n×nn \times n matrix AA, vector xx, and function ff. In exact arithmetic, the method's error after kk iterations is bounded by the error of the best degree-kk polynomial uniformly approximating f(x)f(x) on the range [λmin(A),λmax(A)][\lambda_{min}(A), \lambda_{max}(A)]. However, despite decades of work, it has been unclear if this powerful guarantee holds in finite precision. We resolve this problem, proving that when maxx[λmin,λmax]f(x)C\max_{x \in [\lambda_{min}, \lambda_{max}]}|f(x)| \le C, Lanczos essentially matches the exact arithmetic guarantee if computations use roughly log(nCA)\log(nC\|A\|) bits of precision. Our proof extends work of Druskin and Knizhnerman [DK91], leveraging the stability of the classic Chebyshev recurrence to bound the stability of any polynomial approximating f(x)f(x). We also study the special case of f(A)=A1f(A) = A^{-1}, where stronger guarantees hold. In exact arithmetic Lanczos performs as well as the best polynomial approximating 1/x1/x at each of AA's eigenvalues, rather than on the full eigenvalue range. In seminal work, Greenbaum gives an approach to extending this bound to finite precision: she proves that finite precision Lanczos and the related CG method match any polynomial approximating 1/x1/x in a tiny range around each eigenvalue [Gre89]. For A1A^{-1}, this bound appears stronger than ours. However, we exhibit matrices with condition number κ\kappa where exact arithmetic Lanczos converges in polylog(κ)polylog(\kappa) iterations, but Greenbaum's bound predicts Ω(κ1/5)\Omega(\kappa^{1/5}) iterations. It thus cannot offer significant improvement over the O(κ1/2)O(\kappa^{1/2}) bound achievable via our result. Our analysis raises the question of if convergence in less than poly(κ)poly(\kappa) iterations can be expected in finite precision, even for matrices with clustered, skewed, or otherwise favorable eigenvalue distributions.

Keywords

Cite

@article{arxiv.1708.07788,
  title  = {Stability of the Lanczos Method for Matrix Function Approximation},
  author = {Cameron Musco and Christopher Musco and Aaron Sidford},
  journal= {arXiv preprint arXiv:1708.07788},
  year   = {2024}
}
R2 v1 2026-06-22T21:23:44.086Z