English

Tight Bounds for Low-Error Frequency Moment Estimation and the Power of Multiple Passes

Data Structures and Algorithms 2025-09-10 v1

Abstract

Estimating the second frequency moment F2F_2 of a data stream up to a (1±ε)(1 \pm \varepsilon) factor is a central problem in the streaming literature. For errors ε>Ω(1/n)\varepsilon > \Omega(1/\sqrt{n}), the tight bound Θ(log(ε2n)/ε2)\Theta\left(\log(\varepsilon^2 n)/\varepsilon^2\right) was recently established by Braverman and Zamir. In this work, we complete the picture by resolving the remaining regime of small error, ε<1/n\varepsilon < 1/\sqrt{n}, showing that the optimal space complexity is Θ(min(n,1ε2)(1+log(ε2n)))\Theta\left( \min\left(n, \frac{1}{\varepsilon^2} \right) \cdot \left(1 + \left| \log(\varepsilon^2 n) \right| \right) \right) bits for all ε1/n2\varepsilon \geq 1/n^2, assuming a sufficiently large universe. This closes the gap between the best known Ω(n)\Omega(n) lower bound and the straightforward O(nlogn)O(n \log n) upper bound in that range, and shows that essentially storing the entire stream is necessary for high-precision estimation. To derive this bound, we fully characterize the two-party communication complexity of estimating the size of a set intersection up to an arbitrary additive error εn\varepsilon n. In particular, we prove a tight Ω(nlogn)\Omega(n \log n) lower bound for one-way communication protocols when ε<n1/2Ω(1)\varepsilon < n^{-1/2-\Omega(1)}, in contrast to classical O(n)O(n)-bit protocols that use two-way communication. Motivated by this separation, we present a two-pass streaming algorithm that computes the exact histogram of a stream with high probability using only O(nloglogn)O(n \log \log n) bits of space, in contrast to the Θ(nlogn)\Theta(n \log n) bits required in one pass even to approximate F2F_2 with small error. This yields the first asymptotic separation between one-pass and O(1)O(1)-passes space complexity for small frequency moment estimation.

Keywords

Cite

@article{arxiv.2509.07599,
  title  = {Tight Bounds for Low-Error Frequency Moment Estimation and the Power of Multiple Passes},
  author = {Naomi Green-Maimon and Or Zamir},
  journal= {arXiv preprint arXiv:2509.07599},
  year   = {2025}
}