English

Harmonic Decomposition in Data Sketches

Data Structures and Algorithms 2024-11-06 v3 Databases Distributed, Parallel, and Cluster Computing

Abstract

In the turnstile streaming model, a dynamic vector x=(x1,,xn)Zn\mathbf{x}=(\mathbf{x}_1,\ldots,\mathbf{x}_n)\in \mathbb{Z}^n is updated by a stream of entry-wise increments/decrements. Let f ⁣:ZR+f\colon\mathbb{Z}\to \mathbb{R}_+ be a symmetric function with f(0)=0f(0)=0. The \emph{ff-moment} of x\mathbf{x} is defined to be f(x):=v[n]f(xv)f(\mathbf{x}) := \sum_{v\in[n]}f(\mathbf{x}_v). We revisit the problem of constructing a \emph{universal sketch} that can estimate many different ff-moments. Previous constructions of universal sketches rely on the technique of sampling with respect to the L0L_0-mass (uniform samples) or L2L_2-mass (L2L_2-heavy-hitters), whose universality comes from being able to evaluate the function ff 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 ff. The new sketch (SymmetricPoissonTower\textsf{SymmetricPoissonTower}) \emph{embraces} hash collisions instead of avoiding them, which saves multiple logn\log n factors in space, e.g., when estimating all LpL_p-moments (f(z)=zp,p[0,2]f(z) = |z|^p,p\in[0,2]). For many nearly periodic functions, the new sketch is \emph{exponentially} more efficient than sampling-based methods. We conjecture that the SymmetricPoissonTower\textsf{SymmetricPoissonTower} sketch is \emph{the} universal sketch that can estimate every tractable function ff.

Cite

@article{arxiv.2403.15366,
  title  = {Harmonic Decomposition in Data Sketches},
  author = {Dingyu Wang},
  journal= {arXiv preprint arXiv:2403.15366},
  year   = {2024}
}
R2 v1 2026-06-28T15:30:12.389Z