English

Towards Optimal Moment Estimation in Streaming and Distributed Models

Data Structures and Algorithms 2019-07-15 v1

Abstract

One of the oldest problems in the data stream model is to approximate the pp-th moment Xpp=i=1nXip\|\mathcal{X}\|_p^p = \sum_{i=1}^n |\mathcal{X}_i|^p of an underlying vector XRn\mathcal{X} \in \mathbb{R}^n, which is presented as a sequence of poly(n)(n) updates to its coordinates. Of particular interest is when p(0,2]p \in (0,2]. Although a tight space bound of Θ(ϵ2logn)\Theta(\epsilon^{-2} \log n) bits is known for this problem when both positive and negative updates are allowed, surprisingly there is still a gap in the space complexity when all updates are positive. Specifically, the upper bound is O(ϵ2logn)O(\epsilon^{-2} \log n) bits, while the lower bound is only Ω(ϵ2+logn)\Omega(\epsilon^{-2} + \log n) bits. Recently, an upper bound of O~(ϵ2+logn)\tilde{O}(\epsilon^{-2} + \log n) bits was obtained assuming that the updates arrive in a random order. We show that for p(0,1]p \in (0, 1], the random order assumption is not needed. Namely, we give an upper bound for worst-case streams of O~(ϵ2+logn)\tilde{O}(\epsilon^{-2} + \log n) bits for estimating Xpp\|\mathcal{X}\|_p^p. Our techniques also give new upper bounds for estimating the empirical entropy in a stream. On the other hand, we show that for p(1,2]p \in (1,2], in the natural coordinator and blackboard communication topologies, there is an O~(ϵ2)\tilde{O}(\epsilon^{-2}) bit max-communication upper bound based on a randomized rounding scheme. Our protocols also give rise to protocols for heavy hitters and approximate matrix product. We generalize our results to arbitrary communication topologies GG, obtaining an O~(ϵ2logd)\tilde{O}(\epsilon^{2} \log d) max-communication upper bound, where dd is the diameter of GG. Interestingly, our upper bound rules out natural communication complexity-based approaches for proving an Ω(ϵ2logn)\Omega(\epsilon^{-2} \log n) bit lower bound for p(1,2]p \in (1,2] for streaming algorithms. In particular, any such lower bound must come from a topology with large diameter.

Keywords

Cite

@article{arxiv.1907.05816,
  title  = {Towards Optimal Moment Estimation in Streaming and Distributed Models},
  author = {Rajesh Jayaram and David P. Woodruff},
  journal= {arXiv preprint arXiv:1907.05816},
  year   = {2019}
}
R2 v1 2026-06-23T10:19:44.589Z