Harmonic Decomposition in Data Sketches
Abstract
In the turnstile streaming model, a dynamic vector is updated by a stream of entry-wise increments/decrements. Let be a symmetric function with . The \emph{-moment} of is defined to be . We revisit the problem of constructing a \emph{universal sketch} that can estimate many different -moments. Previous constructions of universal sketches rely on the technique of sampling with respect to the -mass (uniform samples) or -mass (-heavy-hitters), whose universality comes from being able to evaluate the function over the samples. In this work we take a new approach to constructing a universal sketch that does not use \emph{any} explicit samples but relies on the \emph{harmonic structure} of the target function . The new sketch () \emph{embraces} hash collisions instead of avoiding them, which saves multiple factors in space, e.g., when estimating all -moments (). For many nearly periodic functions, the new sketch is \emph{exponentially} more efficient than sampling-based methods. We conjecture that the sketch is \emph{the} universal sketch that can estimate every tractable function .
Cite
@article{arxiv.2403.15366,
title = {Harmonic Decomposition in Data Sketches},
author = {Dingyu Wang},
journal= {arXiv preprint arXiv:2403.15366},
year = {2024}
}