SketchBuilder: Learning-Augmented Proactive Sketch Construction for Heavy Hitter Detection in Data Streams
Yifan Han, Yang Du, Yu-E. Sun, He Huang, Xiaocan Wu
Abstract
Heavy hitter detection is a fundamental problem in data stream processing with broad applications. State-of-the-art self-adjusting sketches adapt to skewed streams by repeatedly adjusting local memory structures at runtime. However, they largely overlook global sketch-level collisions that persistently map multiple heavy hitters to the same memory regions. Such collisions not only degrade estimation accuracy but also induce frequent structural readjustments, incurring substantial overhead and undermining overall efficiency. We present SketchBuilder, a learning-augmented framework that introduces a new paradigm by shifting from reactive adaptation to proactive sketch construction. By leveraging historical sketches to anticipate stream evolution, SketchBuilder jointly optimizes sketch construction along two coordinated dimensions via complementary modules: (1) a Dispatcher that refines global item mapping to proactively mitigate heavy hitter collisions, and (2) a Constructor that pre-allocates local memory layouts based on predicted demand. The proactive optimization enables SketchBuilder to construct collision-aware, workload-tailored sketches in advance, significantly reducing costly runtime adjustments while providing additional robustness to distribution shifts through a flexible scaling mechanism. Experiments on real-world traces demonstrate that SketchBuilder achieves an F?-score of 0.99 for top-k detection and 99.70% precision for threshold-t detection using only 100 KB of memory. Compared with SOTA work, it reduces average absolute error by up to 99.81%, improving both accuracy and efficiency.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get dfc372ab-214c-45da-ba37-26ea63777a46Related papers
- HeavyLocker: Lock Heavy Hitters in Distributed Data StreamsQilong Shi, Xirui Li, Hanyue Zheng, Tong Yang et al.KDD 2025 · 2 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
- Improved Frequency Estimation Algorithms with and without PredictionsAnders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal et al.NeurIPS 2023 · 16 citations
- BitMatcher: Bit-level Counter Adjustment for SketchesQilong Shi, Chengjun Jia, Wenjun Li, Zaoxing Liu et al.ICDE 2024 · 22 citations
- MicroscopeSketch: Accurate Sliding Estimation Using Adaptive ZoomingYuhan Wu, Shiqi Jiang, Siyuan Dong, Zheng Zhong et al.KDD 2023 · 10 citations
