cs.LGSep 16, 2026

Accurate Trace Estimation with Fewer Random Bits via Recursive TensorSketch

Authors: Mohammad Azhar KhanRameshwar PratapAmit Sharma

Abstract

We consider the problem of estimating the trace of an implicit matrix ARdp×dp\mathbf{A} \in \mathbb{R}^{d^p\times d^p} that can only be accessed through matrix-vector products queries. The \textit{Hutchinson trace estimator}% \cite{Girard1987algorithme, article-hutchinson} is a classical sketching method for this problem. Their estimator, Hm(A)=1mi=1mz(i)TAz(i),where  z(i)RdpH_{m}(\mathbf{A}) = \frac{1}{m} \sum_{i=1}^{m} {\mathbf{z}^{(i)}}^T \mathbf{A} \mathbf{z}^{(i)}, \quad \text{where } \ {\mathbf{z}^{(i)}}\in \mathbb{R}^{d^p}, and zj(i)N(0,1),j[dp]z^{(i)}_j \in {N}(0, 1), j\in [d^p], satisfies the following guarantees: (i) E[Hm(A)]=tr(A)\mathbb{E}[H_{m}(\mathbf{A})]=\operatorname{tr}(\mathbf{A}), and (ii) Var[Hm(A)]=2mAF2\mathrm{Var}[H_{m}(\mathbf{A})]=\frac{2}{m}||\mathbf{A}||_F^2. Generating one query vector z(i)\mathbf{z}^{(i)} requires O(dp)O(d^p) random bits; thus, mm queries require O(mdp)O(md^p) random bits, which can be prohibitive in large-scale applications. Recent work by Meyer et al.\cite{meyer2025hutchinsonsestimatorbadkroneckertraceestimation} proposes a variant of the Hutchinson trace estimator in which each query vector in Rdp\mathbb{R}^{d^p} is constructed as the Kronecker product of pp random vectors in Rd\mathbb{R}^d, requiring O(mpd)O(mpd) random bits for mm query vectors. The estimator of~\cite{meyer2025hutchinsonsestimatorbadkroneckertraceestimation} is unbiased; however, its variance grows exponentially with pp. In this work, we address this limitation by proposing a sketching-based estimator that requires O ⁣(p(d+m)logm)O\!\big(p (d + m)\log m\big) random bits, yields an unbiased estimate of the trace, and simultaneously achieves a variance bound that grows polynomially with pp.

Explore similar work

CardsList
  1. Stochastic trace estimation with tensor train random vectors

    Jun 14, 2026Zvonimir Bujanović, Daniel Kressner, Hrvoje Olić3D Gaussian SplattingRandom

  2. Improving TensorSketch Using Complex Random Variables

    Aug 11, 2026Amit Sharma, Mohammad Azhar Khan, Rameshwar Pratap +1Optimal Sample ComplexityKernel Method

  3. Dynamic estimation of slowly varying sequences

    Jun 22, 2026Prashant Gokhale, Mikhail Khodak, Sandeep SilwalEstimatorsTime-Varying Systems