Lune

KDD2026Top-tier venue

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 Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. HeavyLocker: Lock Heavy Hitters in Distributed Data StreamsQilong Shi, Xirui Li, Hanyue Zheng, Tong Yang et al.KDD 2025 · 2 citations
  2. 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
  3. Improved Frequency Estimation Algorithms with and without PredictionsAnders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal et al.NeurIPS 2023 · 16 citations
  4. BitMatcher: Bit-level Counter Adjustment for SketchesQilong Shi, Chengjun Jia, Wenjun Li, Zaoxing Liu et al.ICDE 2024 · 22 citations
  5. MicroscopeSketch: Accurate Sliding Estimation Using Adaptive ZoomingYuhan Wu, Shiqi Jiang, Siyuan Dong, Zheng Zhong et al.KDD 2023 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines