English

Simple and Optimal Algorithms for Heavy Hitters and Frequency Moments in Distributed Models

Data Structures and Algorithms 2025-05-21 v1

Abstract

We consider the problems of distributed heavy hitters and frequency moments in both the coordinator model and the distributed tracking model (also known as the distributed functional monitoring model). We present simple and optimal (up to logarithmic factors) algorithms for p\ell_p heavy hitters and FpF_p estimation (p2p \geq 2) in these distributed models. For p\ell_p heavy hitters in the coordinator model, our algorithm requires only one round and uses O~(kp1/\epsp)\tilde{O}(k^{p-1}/\eps^p) bits of communication. For p>2p > 2, this is the first near-optimal result. By combining our algorithm with the standard recursive sketching technique, we obtain a near-optimal two-round algorithm for FpF_p in the coordinator model, matching a significant result from recent work by Esfandiari et al.\ (STOC 2024). Our algorithm and analysis are much simpler and have better costs with respect to logarithmic factors. Furthermore, our technique provides a one-round algorithm for FpF_p, which is a significant improvement over a result of Woodruff and Zhang (STOC 2012). Thanks to the simplicity of our heavy hitter algorithms, we manage to adapt them to the distributed tracking model with only a \polylog(n)\polylog(n) increase in communication. For p\ell_p heavy hitters, our algorithm has a communication cost of O~(kp1/\epsp)\tilde{O}(k^{p-1}/\eps^p), representing the first near-optimal algorithm for all p2p \geq 2. By applying the recursive sketching technique, we also provide the first near-optimal algorithm for FpF_p in the distributed tracking model, with a communication cost of O~(kp1/\eps2)\tilde{O}(k^{p-1}/\eps^2) for all p2p \geq 2. Even for F2F_2, our result improves upon the bounds established by Cormode, Muthukrishnan, and Yi (SODA 2008) and Woodruff and Zhang (STOC 2012), nearly matching the existing lower bound for the first time.

Keywords

Cite

@article{arxiv.2505.14250,
  title  = {Simple and Optimal Algorithms for Heavy Hitters and Frequency Moments in Distributed Models},
  author = {Zengfeng Huang and Zhongzheng Xiong and Xiaoyi Zhu and Zhewei Wei},
  journal= {arXiv preprint arXiv:2505.14250},
  year   = {2025}
}

Comments

STOC 2025

R2 v1 2026-07-01T02:24:50.262Z