M4: A Framework for Per-Flow Quantile Estimation
Siyuan Dong, Zhuochen Fan, Tianyu Bai, Tong Yang, Hanyu Xue, Peiqing Chen, Yuhan Wu
Abstract
The field of quantile estimation has grown in importance due to its myriad practical applications. Recent research trends have evolved from estimating the quantile for a single data stream to developing data structures that can concurrently estimate quantiles for multiple sub-streams, also known as flows. This paper introduces a novel framework, M4, designed to estimate per-flow quantiles in data streams accurately. M4 is a versatile framework that can be integrated with a wide array of single-flow quantile estimation algorithms, thereby enabling them to perform per-flow estimation. The framework employs a sketch-based approach to provide a space-efficient method for recording and extracting distribution information. M4 incorporates two techniques: MINIMUM and SUM. The MINIMUM technique minimizes the noise on a flow from other flows caused by hash collisions, while the SUM technique efficiently categorizes flows based on their sizes and customizes treatment strategies accordingly. We demonstrate the application of M4 on three single-flow quantile estimation algorithms (DDSketch, t-digest, and ReqSketch), detailing the specific implementation of the MINIMUM and SUM techniques. We provide theoretical proof that M4 delivers high accuracy while utilizing limited memory. Additionally, we conduct extensive experiments to evaluate the performance of M4 regarding accuracy and speed. The experimental results indicate that across all three example algorithms, M4 significantly outperforms two comparison frameworks in terms of accuracy for per-flow quantile estimation while maintaining comparable speed.
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 532aa441-7d6c-4fd8-b4ea-3c4b51ffb560Cited by top-tier papers1
Ask how each one uses itBuilds on5
- Last-Mile Delivery Made Practical: An Efficient Route Planning Framework with Theoretical GuaranteesYuxiang Zeng, Yongxin Tong, Lei ChenVLDB 2020 · 74 citations
- Out of Many We are One: Measuring Item Batch with Clock-SketchPeiqing Chen, Dong Chen, Lingxiao Zheng, Jizhou Li et al.SIGMOD 2021 · 35 citations
- HistSketch: A Compact Data Structure for Accurate Per-Key Distribution MonitoringJintao He, Jiaqi Zhu, Qun HuangICDE 2023 · 21 citations
- SketchPolymer: Estimate Per-item Tail Quantile Using One SketchJiarui Guo, Yisen Hong, Yuhan Wu, Yunfei Liu et al.KDD 2023 · 13 citations
- FACE: A Normalizing Flow based Cardinality EstimatorJiayi Wang, Chengliang Chai, Jiabin Liu, Guoliang LiVLDB 2022
Related papers
- Randomized Error Removal for Online Spread Estimation in Data StreamingHaibo Wang, Chaoyi Ma, Olufemi O. Odegbile, Shigang Chen et al.VLDB 2021 · 38 citations
- Cooled-KLL: Enhancing Quantile Estimation by Filtering Hot ItemQilong Shi, Wei Zhou, Yizhuo Zheng, Xinye Xu et al.KDD 2025
- Optimal Quantile Estimation: Beyond the Comparison ModelMeghal Gupta, Mihir Singhal, Hongxun WuFOCS 2024 · 3 citations
- Quantile Estimation with DuplicatesTianrui Xia, Ziling Chen, Shaoxu SongSIGMOD 2026
- Sublime: Sublinear Error & Space for Unbounded Skewed StreamsNavid Eslami, Ioana O. Bercea, Rasmus Pagh, Niv DayanSIGMOD 2026
