Improved variants of the Hutch++ algorithm for trace estimation

David Persson, Alice Cortinovis, Daniel Kressner
9/22/2021
math.NA

Official code: davpersson/A-Hutch- (5 stars, MATLAB, BSD-2-Clause, last commit 2025-04-04).

Abstract

This paper is concerned with two improved variants of the Hutch++ algorithm for estimating the trace of a square matrix, implicitly given through matrix-vector products. Hutch++ combines randomized low-rank approximation in a first phase with stochastic trace estimation in a second phase.

Show full abstract

In turn, Hutch++ only requires $O\left(\varepsilon^{-1}\right)$ matrix-vector products to approximate the trace within a relative error $\varepsilon$ with high probability. This compares favorably with the $O\left(\varepsilon^{-2}\right)$ matrix-vector products needed when using stochastic trace estimation alone. In Hutch++, the number of matrix-vector products is fixed a priori and distributed in a prescribed fashion among the two phases. In this work, we derive an adaptive variant of Hutch++, which outputs an estimate of the trace that is within some prescribed error tolerance with a controllable failure probability, while splitting the matrix-vector products in a near-optimal way among the two phases. For the special case of symmetric positive semi-definite matrix, we present another variant of Hutch++, called Nyström++, which utilizes the so called Nyström approximation and requires only one pass over the matrix, as compared to two passes with Hutch++. We extend the analysis of Hutch++ to Nyström++. Numerical experiments demonstrate the effectiveness of our two new algorithms.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause
52MATLABSep 14, 20211 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{persson2021improved,
  title  = {Improved variants of the Hutch++ algorithm for trace estimation},
  author = {David Persson and Alice Cortinovis and Daniel Kressner},
  year   = {2021},
  eprint = {2109.10659},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.10659}
}

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/2109.10659.svg)](https://codeofpaper.com/paper/2109.10659)

Discussion