Lune

FOCS2024Top-tier venue

Optimal Quantile Estimation: Beyond the Comparison Model

Meghal Gupta, Mihir Singhal, Hongxun Wu

Abstract

Estimating quantiles is one of the foundational problems of data sketching. Givennnelementsx1,x2,…,xnx_{1},x_{2}, \ldots, x_{n}from some universe of sizeUUarriving in a data stream, a quantile sketch estimates the rank of any element with additive error at mostεn\varepsilon n. A low-space algorithm solving this task has applications in database systems, network measurement, load balancing, and many other practical scenarios. Current quantile estimation algorithms described as optimal include the GK sketch (Greenwald and Khanna 2001) usingO(ε−1log⁡n)O(\varepsilon^{-1}\log n)words (deterministic) and the KLL sketch (Karnin, Lang, and Liberty 2016) usingO(>εO (>\varepsilonlog log(1/δ)(1/\delta)) words (ran-domized, with failure probabilityδ\delta). However, both algorithms are only optimal in the comparison-based model, whereas many typical applications involve streams of integers that the sketch can use aside from making comparisons. If we go beyond the comparison-based model, the deterministic q-digest sketch (Shrivastava, Buragohain, Agrawal, and Suri 2004) achieves a space complexity ofO(ε−1log⁡U)O(\varepsilon^{-1}\log U)words, which is incomparable to the previously-mentioned sketches. It has long been asked whether there is a quantile sketch usingO(ϵ−1)O(\epsilon^{-1})words of space (which is optimal as long asn≤n\leqpoly(U)(U)). In this work, we present a deterministic algorithm usingO(ε−1)O(\varepsilon^{-1})words, resolving this line of work.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Private Mechanism Design via Quantile Estimation cites Near-Optimal Relative Error Streaming Quantile Estimation via Elastic Compactors
  • SplineSketch: Even More Accurate Quantiles with Error Guarantees cites Near-Optimal Relative Error Streaming Quantile Estimation via Elastic Compactors
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. SplineSketch: Even More Accurate Quantiles with Error GuaranteesAleksander Lukasiewicz, Jakub Tetek, Pavel VeselýSIGMOD 2026 · 1 citation
  2. Near-Optimal Relative Error Streaming Quantile Estimation via Elastic CompactorsElena Gribelyuk, Pachara Sawettamalya, Hongxun Wu, Huacheng YuSODA 2025 · 1 citation
  3. Tight Streaming Lower Bounds for Deterministic Approximate CountingYichuan WangSODA 2025
  4. Private Mechanism Design via Quantile EstimationYuanyuan Yang, Tao Xiao, Bhuvesh Kumar, Jamie H. MorgensternICLR 2025

Related papers

  1. KLL±: Approximate Quantile Sketches over Dynamic DatasetsFuheng Zhao, Sujaya Maiyya, Ryan Weiner, Divy Agrawal et al.VLDB 2021 · 36 citations
  2. Cooled-KLL: Enhancing Quantile Estimation by Filtering Hot ItemQilong Shi, Wei Zhou, Yizhuo Zheng, Xinye Xu et al.KDD 2025
  3. Determining Exact Quantiles with Randomized SummariesZiling Chen, Haoquan Guan, Shaoxu Song, Xiangdong Huang et al.SIGMOD 2024 · 3 citations
  4. SpaceSaving± An Optimal Algorithm for Frequency Estimation and Frequent items in the Bounded Deletion ModelFuheng Zhao, Divy Agrawal, Amr El Abbadi, Ahmed MetwallyVLDB 2022 · 22 citations
  5. M4: A Framework for Per-Flow Quantile EstimationSiyuan Dong, Zhuochen Fan, Tianyu Bai, Tong Yang et al.ICDE 2024 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines