Lune

VLDB2022Top-tier venue

Stingy Sketch: A Sketch Framework for Accurate and Fast Frequency Estimation

Haoyu Li, Qizhi Chen, Yixin Zhang, Tong Yang, Bin Cui

Abstract

Recording the frequency of items in highly skewed data streams is a fundamental and hot problem in recent years. The literature demonstrates that sketch is the most promising solution. The typical metrics to measure a sketch are accuracy and speed, but existing sketches make only trade-offs between the two dimensions. Our proposed solution is a new sketch framework called Stingy sketch with two key techniques: Bit-pinching Counter Tree ( BCTree ) and Prophet Queue ( PQueue ) which optimizes both the accuracy and speed. The key idea of BCTree is to split a large fixed-size counter into many small nodes of a tree structure, and to use a precise encoding to perform carry-in operations with low processing overhead. The key idea of PQueue is to use pipelined prefetch technique to make most memory accesses happen in L2 cache without losing precision. Importantly, the two techniques are cooperative so that Stingy sketch can improve accuracy and speed simultaneously. Extensive experimental results show that Stingy sketch is up to 50% more accurate than the SOTA of accuracy-oriented sketches and is up to 33% faster than the SOTA of speed-oriented sketches.

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.

16 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

  • Local Differentially Private Heavy Hitter Detection in Data Streams with Bounded Memory cites WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data Streams
  • BitMatcher: Bit-level Counter Adjustment for Sketches cites Building Fast and Compact Sketches for Approximately Multi-Set Multi-Membership Querying
  • BitMatcher: Bit-level Counter Adjustment for Sketches cites Correlation Sketches for Approximate Join-Correlation Queries
  • BitMatcher: Bit-level Counter Adjustment for Sketches cites SALSA: Self-Adjusting Lean Streaming Analytics
  • BitMatcher: Bit-level Counter Adjustment for Sketches cites COMPASS: Online Sketch-based Query Optimization for In-Memory Databases
  • JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product Estimation cites SALSA: Self-Adjusting Lean Streaming Analytics
  • JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product Estimation cites COMPASS: Online Sketch-based Query Optimization for In-Memory Databases
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. BitMatcher: Bit-level Counter Adjustment for SketchesQilong Shi, Chengjun Jia, Wenjun Li, Zaoxing Liu et al.ICDE 2024 · 22 citations
  2. Communication Efficient Distributed Training with Distributed LionBo Liu, Lemeng Wu, Lizhang Chen, Kaizhao Liang et al.NeurIPS 2024 · 21 citations
  3. JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product EstimationFeiyu Wang, Qizhi Chen, Yuanpeng Li, Tong Yang et al.SIGMOD 2023 · 20 citations
  4. NeoMem: Hardware/Software Co-Design for CXL-Native Memory TieringZhe Zhou, Yiqi Chen, Tao Zhang, Yang Wang et al.MICRO 2024 · 17 citations
  5. Local Differentially Private Heavy Hitter Detection in Data Streams with Bounded MemoryXiaochen Li, Weiran Liu, Jian Lou, Yuan Hong et al.SIGMOD 2024 · 13 citations

Builds on9

  1. 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
  2. Correlation Sketches for Approximate Join-Correlation QueriesAécio S. R. Santos, Aline Bessa, Fernando Chirigati, Christopher Musco et al.SIGMOD 2021 · 45 citations
  3. SALSA: Self-Adjusting Lean Streaming AnalyticsRan Ben Basat, Gil Einziger, Michael Mitzenmacher, Shay VargaftikICDE 2021 · 45 citations
  4. COMPASS: Online Sketch-based Query Optimization for In-Memory DatabasesYesdaulet Izenov, Asoke Datta, Florin Rusu, Jun Hyung ShinSIGMOD 2021 · 34 citations
  5. Building Fast and Compact Sketches for Approximately Multi-Set Multi-Membership QueryingRundong Li, Pinghui Wang, Jiongli Zhu, Junzhou Zhao et al.SIGMOD 2021 · 20 citations

Related papers

  1. Sublime: Sublinear Error & Space for Unbounded Skewed StreamsNavid Eslami, Ioana O. Bercea, Rasmus Pagh, Niv DayanSIGMOD 2026
  2. MicroscopeSketch: Accurate Sliding Estimation Using Adaptive ZoomingYuhan Wu, Shiqi Jiang, Siyuan Dong, Zheng Zhong et al.KDD 2023 · 10 citations
  3. LETFramework: Let the Universal Sketch be AccurateRuijie Miao, Xiangwei Deng, Zicang Xu, Ziyun Zhang et al.ICDE 2025
  4. CodingSketch: A Hierarchical Sketch with Efficient Encoding and Recursive DecodingQizhi Chen, Yisen Hong, Yuhan Wu, Tong Yang et al.ICDE 2024 · 5 citations
  5. XY-Sketch: on Sketching Data Streams at Web ScaleYongqiang Liu, Xike XieWWW 2021 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines