English

Stochastic trace estimation for parameter-dependent matrices applied to spectral density approximation

Numerical Analysis 2026-02-23 v2 Numerical Analysis

Abstract

Stochastic trace estimation is a well-established tool for approximating the trace of a large symmetric matrix B\boldsymbol{B}. Several applications involve a matrix that depends continuously on a parameter t[a,b]t \in [a,b], and require trace estimates of B(t)\boldsymbol{B}(t) for many values of tt. This is, for example, the case when approximating the spectral density of a matrix. Approximating the trace separately for each matrix B(t1),,B(tm)\boldsymbol{B}(t_1), \dots, \boldsymbol{B}(t_m) clearly incurs redundancies and a cost that scales linearly with mm. To address this issue, we propose and analyze modifications for three stochastic trace estimators, the Girard-Hutchinson, Nystr\"om, and Nystr\"om++ estimators. Our modification uses fixed randomization across different values of tt, that is, every matrix B(t1),,B(tm)\boldsymbol{B}(t_1), \dots, \boldsymbol{B}(t_m) is multiplied with the same set of random vectors. When combined with Chebyshev approximation in tt, the use of such constant random matrices allows one to reuse matrix-vector products across different values of tt, leading to significant cost reduction. Our analysis shows that the loss of stochastic independence across different tt does not lead to deterioration. In particular, we show that O(ε1)\mathcal{O}(\varepsilon^{-1}) random matrix-vector products suffice to ensure an error of ε>0\varepsilon > 0 for Nystr\"om++, independent of low-rank properties of B(t)\boldsymbol{B}(t). We discuss in detail how the combination of Nystr\"om++ with Chebyshev approximation applies to spectral density estimation and provide an analysis of the resulting method. This improves various aspects of an existing stochastic estimator for spectral density estimation. Several numerical experiments from electronic structure interaction and neural network optimization validate our findings.

Keywords

Cite

@article{arxiv.2502.18626,
  title  = {Stochastic trace estimation for parameter-dependent matrices applied to spectral density approximation},
  author = {Fabio Matti and Haoze He and Daniel Kressner and Hei Yin Lam},
  journal= {arXiv preprint arXiv:2502.18626},
  year   = {2026}
}
R2 v1 2026-06-28T21:57:56.477Z