A low-memory Lanczos method with rational Krylov compression for matrix functions
Angelo A. Casulli, Igor Simunec
TL;DR
The paper addresses the challenge of applying a matrix function to a vector when the matrix is large and Hermitian, with strict memory constraints. It introduces RKcompress, a memory-efficient algorithm that couples an outer rational Lanczos method with an inner, small-scale rational Krylov compression to avoid storing the full Krylov basis. Theoretical results show exact equivalence to rational Lanczos for rational functions and provide a bounded error for general analytic functions, with memory scaling like $m+k$ and inner computations on matrices of size at most $(k+m)$. Numerical experiments on exponential and Markov functions, as well as shift-invert Krylov setups, demonstrate competitive performance and substantial memory savings, highlighting practical impact for large-scale matrix functions.
Abstract
In this work we introduce a memory-efficient method for computing the action of a Hermitian matrix function on a vector. Our method consists of a rational Lanczos algorithm combined with a basis compression procedure based on rational Krylov subspaces that only involve small matrices. The cost of the compression procedure is negligible with respect to the cost of the Lanczos algorithm. This enables us to avoid storing the whole Krylov basis, leading to substantial reductions in memory requirements. This method is particularly effective when the rational Lanczos algorithm needs a significant number of iterations to converge and each iteration involves a low computational effort. This scenario often occurs when polynomial Lanczos, as well as extended and shift-and-invert Lanczos are employed. Theoretical results prove that, for a wide variety of functions, the proposed algorithm differs from rational Lanczos by an error term that is usually negligible. The algorithm is compared with other low-memory Krylov methods from the literature on a variety of test problems, showing competitive performance.
