Randomized block Krylov space methods for trace and log-determinant estimators

Hanyu Li, Yuanyang ZhuarXiv 2020

Abstract

This paper introduces an enhanced methodology for estimating the trace and log-determinant of large-scale matrices using randomized block Krylov space methods. By leveraging intermediate matrix-vector products that are typically discarded in standard subspace iteration, the proposed approach achieves significantly tighter error bounds and superior numerical performance. We provide a rigorous theoretical framework using Chebyshev polynomials and validate our findings through controlled numerical experiments.

Introduction

In modern data science, computing fundamental matrix properties such as the trace (sum of eigenvalues) and the log-determinant (sum of the logarithms of eigenvalues) is essential for tasks ranging from spatial statistics to solving complex inverse problems. For massive matrices where explicit storage or standard factorizations are computationally prohibitive, randomized methods that rely on matrix-vector products ($Ax$) have become the standard. However, existing techniques often fail to utilize the full breadth of information generated during computation.

Problem Statement

Traditional methods, such as the Hutchinson Monte Carlo estimator and standard randomized subspace iteration, are often inefficient. Specifically, subspace iteration (Algorithm 1) computes $Y = A^q\Omega$ but discards the intermediate products $A\Omega, A^2\Omega, \dots, A^{q-1}\Omega$. This represents a significant loss of potentially useful information. This research aims to bridge this gap by incorporating these intermediate "snapshots" into a block Krylov subspace, thereby improving the approximation of the matrix's range.

Methodology

The authors propose Algorithm 2: Randomized block Krylov space method. The key innovation is the construction of a "sketch" that includes all intermediate powers: $[A\Omega, A^2\Omega, \dots, A^q\Omega]$. By retaining these intermediate results, the algorithm captures a much richer subspace of the matrix's behavior for nearly the same computational cost as standard subspace iteration. The error analysis is grounded in Chebyshev polynomials, which are known for their optimal approximation properties over a matrix's spectrum, leading to the derivation of tighter theoretical bounds.

Experimental Setup

The performance of the proposed algorithm was evaluated using synthetic matrices to precisely control eigenvalue behavior:

  • Small-scale matrices ($1280 \times 1280$): Eigenvalues decay geometrically ($\lambda_{j+1} = \tau^j \lambda_1$), allowing for testing the impact of eigenvalue gaps on accuracy.
  • Medium-scale sparse matrices ($20,000 \times 20,000$): Constructed from outer products of sparse vectors to simulate more realistic, higher-dimensional settings.

Results and Discussion

Numerical experiments demonstrate that the block Krylov method consistently outperforms standard subspace iteration. In head-to-head comparisons, Algorithm 2 achieved relative errors several orders of magnitude lower than Algorithm 1 for an equivalent number of iterations. Furthermore, the newly derived expectation and concentration bounds were found to be significantly closer to observed errors than previous benchmarks.

Comparison of theoretical error bounds for different iteration counts $q$.

As illustrated in the table above, the theoretical error bounds (represented by the $C_{ge}$ and $C_g$ terms) decrease rapidly as the iteration count $q$ increases from 3 to 5. This rapid decay confirms the efficiency of the block Krylov approach in refining the matrix approximation. The results also highlight the sensitivity of these methods to the "eigenvalue gap"; a clear separation between dominant and non-dominant eigenvalues leads to extremely fast convergence.

Conclusion

Randomized block Krylov methods represent a significant advancement in matrix property estimation, offering higher accuracy without increasing the primary computational bottleneck of matrix-vector products. While the method introduces slightly more complex QR factorizations, the gains in precision make it a superior choice for large-scale applications. Future research will focus on relaxing sample size constraints, enhancing numerical stability in high-dimensional settings, and extending the methodology to non-Hermitian matrices.

Summary updated

BibTeX
@misc{li2020randomized,
  author = {Hanyu Li and Yuanyang Zhu},
  title = {{Randomized block Krylov space methods for trace and log-determinant estimators}},
  year = {2020},
  eprint = {2003.00212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.00212},
}
Figure