English

On Fine-Grained Distinct Element Estimation

Data Structures and Algorithms 2025-07-01 v1

Abstract

We study the problem of distributed distinct element estimation, where α\alpha servers each receive a subset of a universe [n][n] and aim to compute a (1+ε)(1+\varepsilon)-approximation to the number of distinct elements using minimal communication. While prior work establishes a worst-case bound of Θ(αlogn+αε2)\Theta\left(\alpha\log n+\frac{\alpha}{\varepsilon^2}\right) bits, these results rely on assumptions that may not hold in practice. We introduce a new parameterization based on the number C=βε2C = \frac{\beta}{\varepsilon^2} of pairwise collisions, i.e., instances where the same element appears on multiple servers, and design a protocol that uses only O(αlogn+βε2logn)\mathcal{O}\left(\alpha\log n+\frac{\sqrt{\beta}}{\varepsilon^2} \log n\right) bits, breaking previous lower bounds when CC is small. We further improve our algorithm under assumptions on the number of distinct elements or collisions and provide matching lower bounds in all regimes, establishing CC as a tight complexity measure for the problem. Finally, we consider streaming algorithms for distinct element estimation parameterized by the number of items with frequency larger than 11. Overall, our results offer insight into why statistical problems with known hardness results can be efficiently solved in practice.

Keywords

Cite

@article{arxiv.2506.22608,
  title  = {On Fine-Grained Distinct Element Estimation},
  author = {Ilias Diakonikolas and Daniel M. Kane and Jasper C. H. Lee and Thanasis Pittas and David P. Woodruff and Samson Zhou},
  journal= {arXiv preprint arXiv:2506.22608},
  year   = {2025}
}

Comments

ICML 2025

R2 v1 2026-07-01T03:37:16.318Z