English

$L_p$ Sampling in Distributed Data Streams with Applications to Adversarial Robustness

Data Structures and Algorithms 2025-10-28 v1

Abstract

In the distributed monitoring model, a data stream over a universe of size nn is distributed over kk servers, who must continuously provide certain statistics of the overall dataset, while minimizing communication with a central coordinator. In such settings, the ability to efficiently collect a random sample from the global stream is a powerful primitive, enabling a wide array of downstream tasks such as estimating frequency moments, detecting heavy hitters, or performing sparse recovery. Of particular interest is the task of producing a perfect LpL_p sample, which given a frequency vector fRnf \in \mathbb{R}^n, outputs an index ii with probability fipfpp+1poly(n)\frac{f_i^p}{\|f\|_p^p}+\frac{1}{\mathrm{poly}(n)}. In this paper, we resolve the problem of perfect LpL_p sampling for all p1p\ge 1 in the distributed monitoring model. Specifically, our algorithm runs in kp1polylog(n)k^{p-1} \cdot \mathrm{polylog}(n) bits of communication, which is optimal up to polylogarithmic factors. Utilizing our perfect LpL_p sampler, we achieve adversarially-robust distributed monitoring protocols for the FpF_p moment estimation problem, where the goal is to provide a (1+ε)(1+\varepsilon)-approximation to f1p++fnpf_1^p+\ldots+f_n^p. Our algorithm uses kp1ε2polylog(n)\frac{k^{p-1}}{\varepsilon^2}\cdot\mathrm{polylog}(n) bits of communication for all p2p\ge 2 and achieves optimal bounds up to polylogarithmic factors, matching lower bounds by Woodruff and Zhang (STOC 2012) in the non-robust setting. Finally, we apply our framework to achieve near-optimal adversarially robust distributed protocols for central problems such as counting, frequency estimation, heavy-hitters, and distinct element estimation.

Keywords

Cite

@article{arxiv.2510.22816,
  title  = {$L_p$ Sampling in Distributed Data Streams with Applications to Adversarial Robustness},
  author = {Honghao Lin and Zhao Song and David P. Woodruff and Shenghao Xie and Samson Zhou},
  journal= {arXiv preprint arXiv:2510.22816},
  year   = {2025}
}

Comments

SODA 2026

R2 v1 2026-07-01T07:06:46.704Z