Hutch++: Optimal Stochastic Trace Estimation

Raphael A. Meyer, Cameron Musco, Christopher Musco, David P. Woodruff
10/19/2020
cs.DScs.LGmath.NA

Official code: RaphaelArkadyMeyerNYU/HutchPlusPlus (13 stars, MATLAB, MIT, last commit 2021-08-30).

Abstract

We study the problem of estimating the trace of a matrix $A$ that can only be accessed through matrix-vector multiplication. We introduce a new randomized algorithm, Hutch++, which computes a $(1 \pm ε)$ approximation to $tr(A)$ for any positive semidefinite (PSD) $A$ using just $O(1/ε)$ matrix-vector products.

Show full abstract

This improves on the ubiquitous Hutchinson's estimator, which requires $O(1/ε^2)$ matrix-vector products. Our approach is based on a simple technique for reducing the variance of Hutchinson's estimator using a low-rank approximation step, and is easy to implement and analyze. Moreover, we prove that, up to a logarithmic factor, the complexity of Hutch++ is optimal amongst all matrix-vector query algorithms, even when queries can be chosen adaptively. We show that it significantly outperforms Hutchinson's method in experiments. While our theory mainly requires $A$ to be positive semidefinite, we provide generalized guarantees for general square matrices, and show empirical gains in such applications.

View on arXivView PDF

Code Implementations(1)

MIT

Code for Hutch++: Optimal Stochastic Trace Estimation

133MATLABOct 28, 20205 years agoMIT

Similar Papers

Cite this paper

@article{meyer2020hutch,
  title  = {Hutch++: Optimal Stochastic Trace Estimation},
  author = {Raphael A. Meyer and Cameron Musco and Christopher Musco and David P. Woodruff},
  year   = {2020},
  eprint = {2010.09649},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.09649}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.09649.svg)](https://codeofpaper.com/paper/2010.09649)

Discussion