Lune

KDD2022顶会

HyperLogLogLog: Cardinality Estimation With One Log More

Matti Karppa, Rasmus Pagh

摘要

We present HyperLogLogLog, a practical compression of the Hy-perLogLog sketch that compresses the sketch from 𝑂 (𝑚 log log 𝑛) bits down to 𝑚 log 2 log 2 log 2 𝑚 + 𝑂 (𝑚 + log log 𝑛) bits for estimating the number of distinct elements 𝑛 using 𝑚 registers. The algorithm works as a drop-in replacement that preserves all estimation properties of the HyperLogLog sketch, it is possible to convert back and forth between the compressed and uncompressed representations, and the compressed sketch maintains mergeability in the compressed domain. The compressed sketch can be updated in amortized constant time, assuming 𝑛 is sufficiently larger than 𝑚. We provide a C++ implementation of the sketch, and show by experimental evaluation against well-known implementations by Google and Apache that our implementation provides small sketches while maintaining competitive update and merge times. Concretely, we observed approximately a 40% reduction in the sketch size. Furthermore, we obtain as a corollary a theoretical algorithm that compresses the sketch down to 𝑚 log 2 log 2 log 2 log 2 𝑚 + 𝑂 (𝑚 log log log 𝑚/log log 𝑚 + log log 𝑛) bits.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Sublime: Sublinear Error & Space for Unbounded Skewed Streams 引用了 UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct CountingOtmar ErtlVLDB 2024 · 12 次引用
  2. QSketch: An Efficient Sketch for Weighted Cardinality Estimation in StreamsYiyan Qi, Rundong Li, Pinghui Wang, Yufang Sun 等KDD 2024 · 3 次引用
  3. Efficient and Accurate Differentially Private Cardinality Continual ReleasesDongdong Xie, Pinghui Wang, Quanqing Xu, Chuanhui Yang 等SIGMOD 2025 · 1 次引用
  4. Sublime: Sublinear Error & Space for Unbounded Skewed StreamsNavid Eslami, Ioana O. Bercea, Rasmus Pagh, Niv DayanSIGMOD 2026

相关 Paper

  1. A Better Cardinality Estimator with Fewer Bits, Constant Update Time, and MergeabilityYang Du, He Huang, Yu-e Sun, Kejian Li 等INFOCOM 2023 · 6 次引用
  2. Unmasking Vulnerabilities: Cardinality Sketches under Adaptive InputsSara Ahmadian, Edith CohenICML 2024 · 7 次引用
  3. SetSketch: Filling the Gap between MinHash and HyperLogLogOtmar ErtlVLDB 2021 · 17 次引用
  4. Sketch-Flip-Merge: Mergeable Sketches for Private Distinct CountingJonathan Hehir, Daniel Ting, Graham CormodeICML 2023 · 12 次引用
  5. Information theoretic limits of cardinality estimation: Fisher meets ShannonSeth Pettie, Dingyu WangSTOC 2021 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖