Randomized block-Krylov subspace methods for low-rank approximation of matrix functions

David Persson, Tyler Chen, Christopher MuscoarXiv 2025 · DOI

Abstract

Computing functions of large matrices, such as the matrix exponential or logarithm, is a fundamental challenge in scientific computing. While Randomized SVD (RSVD) is a standard tool for low-rank approximation, its application to matrix functions often relies on "black-box" inner Krylov subspace methods that are computationally redundant. This paper provides the first rigorous theoretical framework for "Krylov-aware" low-rank approximations. By reusing the Krylov subspace generated during matrix-vector products, these methods achieve significantly higher accuracy and efficiency. We demonstrate that the error in these approximations is bounded by the optimal rank-$k$ error plus a rapidly decaying factor related to polynomial approximation, proving the superiority of integrated Krylov methods over traditional decoupled approaches.

Introduction

In modern computational science—spanning quantum mechanics, network analysis, and differential equations—researchers frequently encounter the need to compute $f(A)$, where $A$ is a large, sparse matrix and $f$ is a function like the exponential ($e^A$) or the logarithm ($\log(A)$). Because these matrices are often too large to compute or store explicitly ($O(n^3)$ cost), we rely on low-rank approximations to capture the essential dynamics of the system.

The traditional workflow utilizes the Randomized SVD (RSVD). However, RSVD requires matrix-vector products (matvecs) with $f(A)$. Since $f(A)$ is not explicitly available, these matvecs are typically approximated using an "inner" Krylov subspace method (KSM). Historically, this inner KSM has been treated as a black box, leading to significant computational overhead and missed opportunities for optimization.

The "Black Box" Problem and the Krylov-Aware Solution

The standard approach is inherently redundant. To approximate $f(A)\Omega$ for a random matrix $\Omega$, one runs multiple Lanczos iterations. This creates a nested loop structure where the information generated in the inner loop is discarded once the matvec is approximated.

This paper analyzes a more integrated approach: Krylov-aware low-rank approximation. Instead of treating the KSM as a separate utility, the algorithm uses the entire Krylov subspace $\mathcal{K}_q(A, \Omega)$ to project the matrix function directly. This "opening of the black box" allows the algorithm to build a low-rank model of $f(A)$ using the same information already required for the matvecs, effectively providing higher accuracy "for free."

Theoretical Contributions

The core contribution of this work is the derivation of probabilistic error bounds (Theorems 3.5 and 4.1) for these integrated methods. The authors prove that the approximation error is tied to the best polynomial approximation of $f$. Specifically, the error is bounded by the optimal rank-$k$ approximation error plus a factor that decays as the Krylov subspace grows.

Key theoretical insights include:

  • Shift Invariance: Krylov subspaces are shift-invariant ($\mathcal{K}(A) = \mathcal{K}(A - \lambda I)$). This makes the method exceptionally robust for the matrix exponential, as the relative error remains stable regardless of spectral shifts.
  • Polynomial Optimization: The method's success depends on the existence of a polynomial that is "large" on the top $k$ eigenvalues and "small" on the remaining spectrum. This explains the method's empirical excellence for functions with decaying spectra.
  • Single-Vector Efficiency: While block methods are easier to parallelize, the authors show that single-vector Lanczos variants (Algorithm 5) often produce more accurate results for the same total number of matvecs.

Experimental Validation

The authors evaluated the Krylov-aware approach against several benchmark problems:

  1. Exponential Integrators: Using a 9,900 × 9,900 matrix from a discretized parabolic PDE.
  2. Network Analysis: Calculating the Estrada Index of the Roget’s Thesaurus semantic graph adjacency matrix.
  3. Quantum Physics: Modeling a 1D transverse-field Ising model with a $2^{14} \times 2^{14}$ matrix.
  4. Matrix Logarithms: Testing synthetic matrices with specific eigenvalue distributions.

In the PDE experiments, the Krylov-aware method reached a relative error of $10^{-6}$, while the standard RSVD stalled at $10^{-3}$ using the same number of matvecs. For the matrix exponential, the approximation was shown to converge exponentially relative to the number of iterations, even with small block sizes.

Conclusion and Future Work

This research provides the necessary theoretical justification for a practice that was previously only supported by empirical evidence. By proving that Krylov-aware methods are never worse than standard RSVD—and often orders of magnitude better—the authors establish a new standard for low-rank matrix function approximation.

Future research directions include addressing the "$r=0$ gap" (proving bounds for cases without a refinement parameter), developing theoretical frameworks for restarted Krylov methods to manage memory constraints, and refining the dependence on eigenvalue gaps in single-vector theory to better reflect real-world performance on clustered spectra.

Summary updated

BibTeX
@misc{persson2025randomized,
  author = {David Persson and Tyler Chen and Christopher Musco},
  title = {{Randomized block-Krylov subspace methods for low-rank approximation of matrix functions}},
  year = {2025},
  eprint = {2502.01888},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.01888},
}
Figure