Stable-Sketch: A Versatile Sketch for Accurate, Fast, Web-Scale Data Stream Processing
Weihe Li, Paul Patras
Abstract
Data stream processing plays a pivotal role in various web-related applications, including click fraud detection, anomaly identification, and recommendation systems. Accurate and fast detection of items relevant to such tasks within data streams, e.g., heavy hitters, heavy changers, and persistent items, is however non-trivial. This is due to growing streaming speeds, limited fast memory (L1 cache) available in current systems, and highly skewed item distributions encountered in practice. In effect, items of interest that are tracked only based on their features (e.g., item frequency or persistence value) are susceptible to replacement by non-relevant ones, leading to modest detection accuracy, as we reveal. In this work, we introduce the notion of bucket stability, which quantifies the degree of recorded item variation, and show that this is a powerful metric for identifying distinct item types. We propose Stable-Sketch, an elegant and versatile sketch that exploits multidimensional information, including item statistics and bucket stability, and adopts a stochastic approach to drive replacement decisions. We present a theoretical analysis of the error bounds of Stable-Sketch, and conduct extensive experiments to demonstrate that our solution achieves substantially higher accuracy and faster processing speeds than state-of-the-art sketches in a range of item detection tasks, even with tight memories. We further enhance Stable-Sketch's update throughput with Single Instruction Multiple Data (SIMD) instructions and implement our solution with P4, demonstrating real world deployment viability. CCS CONCEPTS • Information systems → Data stream mining.
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 a20b40a1-eafc-47b2-8b21-0d1fd804fa88Cited by top-tier papers2
- Pontus: A Memory-Efficient and High-Accuracy Approach for Persistence-Based Item Lookup in High-Velocity Data StreamsWeihe Li, Zukai Li, Beyza Bütün, Alec F. Diallo et al.WWW 2025 · 4 citations
- Evolving Proxy Kills Drift: Data-Efficient Streaming Time Series Anomaly DetectionQing Wei, Hao Miao, Yan Zhao, Kai Zheng et al.WWW 2026 · 1 citation
Builds on11
- CocoSketch: high-performance sketch-based measurement over arbitrary partial key queryYinda Zhang, Zaoxing Liu, Ruixin Wang, Tong Yang et al.SIGCOMM 2021 · 146 citations
- SpreadSketch: Toward Invertible and Network-Wide Detection of SuperspreadersLu Tang, Qun Huang, Patrick P. C. LeeINFOCOM 2020 · 102 citations
- WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data StreamsJizhou Li, Zikun Li, Yifei Xu, Shiqi Jiang et al.KDD 2020 · 96 citations
- On-Off Sketch: A Fast and Accurate Sketch on PersistenceYinda Zhang, Jinyang Li, Yutian Lei, Tong Yang et al.VLDB 2021 · 63 citations
- BurstSketch: Finding Bursts in Data StreamsZheng Zhong, Shen Yan, Zikun Li, Decheng Tan et al.SIGMOD 2021 · 58 citations
Related papers
- Hypersistent Sketch: Enhanced Persistence Estimation via Fast Item SeparationLu Cao, Qilong Shi, Weiqiang Xiao, Nianfu Wang et al.ICDE 2025 · 8 citations
- DHS: Adaptive Memory Layout Organization of Sketch Slots for Fast and Accurate Data Stream ProcessingBohan Zhao, Xiang Li, Boyu Tian, Zhiyu Mei et al.KDD 2021 · 47 citations
- LogLog Filter: Filtering Cold Items within a Large Range over High Speed Data StreamsPeng Jia, Pinghui Wang, Junzhou Zhao, Ye Yuan et al.ICDE 2021 · 24 citations
- LadderFilter: Filtering Infrequent Items with Small Memory and Time OverheadYuanpeng Li, Feiyu Wang, Xiang Yu, Yilong Yang et al.SIGMOD 2023 · 16 citations
- Pandora: An Efficient and Rapid Solution for Persistence-Based Tasks in High-Speed Data StreamsWeihe LiSIGMOD 2025 · 6 citations
