Lune

WWW2024Top-tier venue

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.

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.

2 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

  • BurstSketch: Finding Bursts in Data Streams cites WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data Streams
  • Pontus: A Memory-Efficient and High-Accuracy Approach for Persistence-Based Item Lookup in High-Velocity Data Streams cites WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data Streams
  • Pontus: A Memory-Efficient and High-Accuracy Approach for Persistence-Based Item Lookup in High-Velocity Data Streams cites On-Off Sketch: A Fast and Accurate Sketch on Persistence
  • Pontus: A Memory-Efficient and High-Accuracy Approach for Persistence-Based Item Lookup in High-Velocity Data Streams cites CocoSketch: high-performance sketch-based measurement over arbitrary partial key query
  • CocoSketch: high-performance sketch-based measurement over arbitrary partial key query cites WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data Streams
  • CocoSketch: high-performance sketch-based measurement over arbitrary partial key query cites On-Off Sketch: A Fast and Accurate Sketch on Persistence
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. 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
  2. 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

  1. CocoSketch: high-performance sketch-based measurement over arbitrary partial key queryYinda Zhang, Zaoxing Liu, Ruixin Wang, Tong Yang et al.SIGCOMM 2021 · 146 citations
  2. SpreadSketch: Toward Invertible and Network-Wide Detection of SuperspreadersLu Tang, Qun Huang, Patrick P. C. LeeINFOCOM 2020 · 102 citations
  3. 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
  4. On-Off Sketch: A Fast and Accurate Sketch on PersistenceYinda Zhang, Jinyang Li, Yutian Lei, Tong Yang et al.VLDB 2021 · 63 citations
  5. BurstSketch: Finding Bursts in Data StreamsZheng Zhong, Shen Yan, Zikun Li, Decheng Tan et al.SIGMOD 2021 · 58 citations

Related papers

  1. Hypersistent Sketch: Enhanced Persistence Estimation via Fast Item SeparationLu Cao, Qilong Shi, Weiqiang Xiao, Nianfu Wang et al.ICDE 2025 · 8 citations
  2. 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
  3. 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
  4. LadderFilter: Filtering Infrequent Items with Small Memory and Time OverheadYuanpeng Li, Feiyu Wang, Xiang Yu, Yilong Yang et al.SIGMOD 2023 · 16 citations
  5. Pandora: An Efficient and Rapid Solution for Persistence-Based Tasks in High-Speed Data StreamsWeihe LiSIGMOD 2025 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines