An analysis on stochastic Lanczos quadrature with asymmetric quadrature nodes

Wenhao Li, Zongyuan Han, Yixuan Huang, Shengxin Zhu · DOI

Abstract

Calculating the log-determinant of massive, positive definite matrices is a fundamental challenge in modern data science, essential for Gaussian process regression and Bayesian inference. The Stochastic Lanczos Quadrature (SLQ) method is the standard approach for this task. However, previous theoretical frameworks for SLQ error analysis relied on the assumption that quadrature nodes are symmetric—an assumption rarely met in practice. This paper provides a new, rigorous probabilistic error bound for the asymmetric case and introduces an optimized error allocation strategy that significantly reduces computational overhead.

Introduction

For matrices with millions of rows, direct calculation of the log-determinant is computationally prohibitive. SLQ addresses this by combining Hutchinson’s trace estimator with the Lanczos algorithm to transform the problem into a Riemann-Stieltjes integral. While widely used, the standard error bounds for SLQ were derived under the assumption of node symmetry. This paper bridges the gap between theoretical assumptions and practical reality, ensuring that researchers can trust their error bounds when working with real-world, asymmetric data.

The Symmetry Myth and Asymmetric Error Bounds

The authors demonstrate that quadrature node symmetry requires specific matrix properties and initial vector distributions that are seldom encountered in practical applications. Even a simple normalized Rademacher vector applied to a standard test matrix typically results in asymmetric nodes.

Asymmetric quadrature nodes on physical and reference domains for m=10 and m=100.

Building on the work of Cortinovis and Kressner, the authors derive new probabilistic absolute and relative error bounds (Theorems 3.10 and 3.11) that do not rely on symmetry. A key theoretical insight is the identification of a "trap" in affine transformations: the standard chain rule for measures fails for the discontinuous measures used in SLQ. This necessitates a more careful treatment of how errors scale when shifting from a reference domain $[-1, 1]$ to the physical domain of the matrix's eigenvalues.

Optimized Error Allocation

The most significant practical contribution is a strategy for optimized error allocation. The total error in SLQ stems from two sources: the number of random query vectors ($N$) and the number of Lanczos steps ($m$). By treating the trace estimator and the quadrature step with different precision requirements, the authors propose an optimization problem to find the "sweet spot" for $m$ and $N$. This approach minimizes the total number of Matrix-Vector Multiplications (MVMs), which is the primary driver of computational cost.

Experimental Results

The theoretical findings were validated using both synthetic SPD matrices with varying eigenvalue decay rates and real-world matrices from the University of Florida Sparse Matrix Collection (e.g., nd3k and thermomec_TC).

Key results include:

  • Theorem 4.1: A definitive "recipe" for choosing $m$ and $N$ to minimize MVMs while maintaining a probabilistic error bound $\epsilon$ with confidence $1-\eta$.
  • Performance Gains: The optimized approach consistently requires fewer MVMs than previous benchmarks to reach the same relative error levels, particularly for matrices with slow eigenvalue decay.

Conclusion

While this work provides more realistic and efficient error bounds for SLQ, the authors note that theoretical bounds remain conservative compared to empirical performance. Future research will focus on narrowing this gap and further exploring the conditions that influence Gauss quadrature symmetry. This study ensures that SLQ remains a robust and efficient tool for large-scale matrix computations in the presence of inherent asymmetry.

Summary updated

BibTeX
@misc{li2023analysis,
  author = {Wenhao Li and Zongyuan Han and Yixuan Huang and Shengxin Zhu},
  title = {{An analysis on stochastic Lanczos quadrature with asymmetric quadrature nodes}},
  year = {2023},
  eprint = {2307.00847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.00847},
}
Figure