Together is Better: Heavy Hitters Quantile Estimation
Rana Shahout, Roy Friedman, Ran Ben Basat
Abstract
Stream monitoring is fundamental in many data stream applications, such as financial data trackers, security, anomaly detection, and load balancing. In that respect, quantiles are of particular interest, as they often capture the user's utility. For example, if a video connection has high tail (e.g., 99'th percentile) latency, the perceived quality will suffer, even if the average and median latencies are low. In this work, we consider the problem of approximating the per-item quantiles. Elements in our stream are (ID, value) tuples, and we wish to track the quantiles for each ID. Existing quantile sketches are designed for a plain number stream (i.e., containing just a value). While one could allocate a separate sketch instance for each ID, this may require an infeasible amount of memory. Instead, we consider tracking the quantiles for the heavy hitters (most frequent items), which are often considered particularly important, without knowing them beforehand. We first present a couple of simple and effective algorithms that serve as baselines, a sampling approach and a sketching approach. Then, we present SQUAD, an algorithm that combines sampling and sketching while improving the asymptotic space complexity. Intuitively, SQUAD uses a background sampling process to capture the behaviour of the quantiles of an item before it is allocated with a sketch, thereby allowing us to use fewer samples and sketches. The algorithms are rigorously analyzed, and we demonstrate SQUAD's superiority using extensive simulations on real-world traces.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1c03c66d-39d1-4ebf-a78f-d2b0a3155af2Cited by top-tier papers4
- HeavyLocker: Lock Heavy Hitters in Distributed Data StreamsQilong Shi, Xirui Li, Hanyue Zheng, Tong Yang et al.KDD 2025 · 2 citations
- SplineSketch: Even More Accurate Quantiles with Error GuaranteesAleksander Lukasiewicz, Jakub Tetek, Pavel VeselýSIGMOD 2026 · 1 citation
- Measuring Item Freshness in Data StreamsZirui Liu, Zihan Jiang, An Zhang, Zhouran Shi et al.KDD 2025
- LETFramework: Let the Universal Sketch be AccurateRuijie Miao, Xiangwei Deng, Zicang Xu, Ziyun Zhang et al.ICDE 2025
Builds on1
Related papers
- Quantile Estimation with DuplicatesTianrui Xia, Ziling Chen, Shaoxu SongSIGMOD 2026
- Cooled-KLL: Enhancing Quantile Estimation by Filtering Hot ItemQilong Shi, Wei Zhou, Yizhuo Zheng, Xinye Xu et al.KDD 2025
- DPSW-Sketch: A Differentially Private Sketch Framework for Frequency Estimation over Sliding WindowsYiping Wang, Yanhao Wang, Cen ChenKDD 2024 · 2 citations
- Online Detection of Outstanding Quantiles with QuantileFilterYuhan Wu, Aomufei Yuan, Zhouran Shi, Yuanpeng Li et al.ICDE 2024 · 3 citations
- Cuckoo Heavy Keeper and the balancing act of maintaining heavy hitters in stream processingVinh Quang Ngo, Marina PapatriantafilouVLDB 2025 · 2 citations
