Per-Flow Quantile Estimation Using M4 Framework
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: <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MINIMUM</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">SUM</i>. The <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MINIMUM</i> technique minimizes the noise on a flow from other flows caused by hash collisions, while the <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">SUM</i> 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, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$t$</tex-math></inline-formula>-digest, and ReqSketch), detailing the specific implementation of the <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MINIMUM</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">SUM</i> 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.
Authors
- Bin Cui (ORCID: https://orcid.org/0000-0001-9941-5991)
- Hanyu Xue (ORCID: https://orcid.org/0000-0001-9160-2290)
- Tianyu Bai (ORCID: https://orcid.org/0009-0005-7494-3305)
- Yuhan Wu (ORCID: https://orcid.org/0000-0001-7115-5390)
- Qiuheng Yin (ORCID: https://orcid.org/0009-0002-3609-0506)
- Tong Yang (ORCID: https://orcid.org/0000-0003-2402-5854)
- Zhuochen Fan (ORCID: https://orcid.org/0000-0003-0042-1828)
- Siyuan Dong (ORCID: https://orcid.org/0000-0001-7554-4350)
- Yalun Cai (ORCID: https://orcid.org/0009-0003-8784-1178)
- Peiqing Chen (ORCID: https://orcid.org/0000-0002-8758-6029)
Institutions
- Peking University (CN)
- Peng Cheng Laboratory (CN)
- University of Maryland, College Park (US)
Publication Details
- Journal
- IEEE Transactions on Knowledge and Data Engineering
- Published
- 2025-05-26
- DOI
- https://doi.org/10.1109/tkde.2025.3573812
- Citations
- 1
- Primary Topic
- Fault Detection and Control Systems
- Type
- article
- Field-Weighted Citation Impact
- 1.21