Lune

NeurIPS2021Top-tier venue

Optimal Sketching for Trace Estimation

Shuli Jiang, Hai Pham, David P. Woodruff, Qiuyi (Richard) Zhang

Abstract

Matrix trace estimation is ubiquitous in machine learning applications and has traditionally relied on Hutchinson's method, which requires O(log⁡(1/δ)/ϵ2)O(\log(1/\delta)/\epsilon^2) matrix-vector product queries to achieve a (1±ϵ)(1 \pm \epsilon)-multiplicative approximation to tr(A)\text{tr}(A) with failure probability δ\delta on positive-semidefinite input matrices AA. Recently, the Hutch++ algorithm was proposed, which reduces the number of matrix-vector queries from O(1/ϵ2)O(1/\epsilon^2) to the optimal O(1/ϵ)O(1/\epsilon), and the algorithm succeeds with constant probability. However, in the high probability setting, the non-adaptive Hutch++ algorithm suffers an extra O(log⁡(1/δ))O(\sqrt{\log(1/\delta)}) multiplicative factor in its query complexity. Non-adaptive methods are important, as they correspond to sketching algorithms, which are mergeable, highly parallelizable, and provide low-memory streaming algorithms as well as low-communication distributed protocols. In this work, we close the gap between non-adaptive and adaptive algorithms, showing that even non-adaptive algorithms can achieve O(log⁡(1/δ)/ϵ+log⁡(1/δ))O(\sqrt{\log(1/\delta)}/\epsilon + \log(1/\delta)) matrix-vector products. In addition, we prove matching lower bounds demonstrating that, up to a log⁡log⁡(1/δ)\log \log(1/\delta) factor, no further improvement in the dependence on δ\delta or ϵ\epsilon is possible by any non-adaptive algorithm. Finally, our experiments demonstrate the superior performance of our sketch over the adaptive Hutch++ algorithm, which is less parallelizable, as well as over the non-adaptive Hutchinson's method.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Optimal Eigenvalue Approximation via Sketching cites Optimal Query Complexities for Dynamic Trace Estimation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Preconditioning for Scalable Gaussian Process Hyperparameter OptimizationJonathan Wenger, Geoff Pleiss, Philipp Hennig, John P. Cunningham et al.ICML 2022 · 36 citations
  2. Optimal Query Complexities for Dynamic Trace EstimationDavid P. Woodruff, Fred Zhang, Richard ZhangNeurIPS 2022 · 13 citations
  3. Quantum Algorithms for Spectral SumsAlessandro Luongo, Changpeng ShaoAAAI 2026 · 9 citations
  4. Optimal Eigenvalue Approximation via SketchingWilliam Swartworth, David P. WoodruffSTOC 2023 · 4 citations
  5. Approximate Euclidean lengths and distances beyond Johnson-LindenstraussAleksandros Sobczyk, Mathieu LuisierNeurIPS 2022 · 3 citations

Builds on2

  1. Schatten Norms in Matrix Streams: Hello Sparsity, Goodbye DimensionVladimir Braverman, Robert Krauthgamer, Aditya Krishnan, Roi SinoffICML 2020 · 14 citations
  2. Optimal testing of discrete distributions with high probabilityIlias Diakonikolas, Themis Gouleakis, Daniel M. Kane, John Peebles et al.STOC 2021 · 1 citation

Related papers

  1. Understanding the Kronecker Matrix-Vector Complexity of Linear AlgebraRaphael A. Meyer, William J. Swartworth, David P. WoodruffICML 2025
  2. Dynamic Trace EstimationPrathamesh Dharangutte, Christopher MuscoNeurIPS 2021 · 15 citations
  3. Distributed Least Squares in Small Space via Sketching and Bias ReductionSachin Garg, Kevin Tan, Michal DerezinskiNeurIPS 2024 · 5 citations
  4. Tight Bounds for the Subspace Sketch Problem with ApplicationsYi Li, Ruosong Wang, David P. WoodruffSODA 2020 · 5 citations
  5. Near-optimal hierarchical matrix approximation from matrix-vector productsTyler Chen, Feyza Duman Keles, Diana Halikias, Cameron Musco et al.SODA 2025
Dusk over the sea between two cliffs drawn in fine vertical lines