DISCO: A Dynamically Configurable Sketch Framework in Skewed Data Streams
Jiaqian Liu, Ran Ben Basat, Louis De Wardt, Haipeng Dai, Guihai Chen
Abstract
Sketches have gained popularity as effective methods for estimating frequency in data streams, and optimizing their accuracy is critical in many applications. However, while sketches are backed by a standard guarantee under the worst-case analysis, their actual errors can vary significantly with real-world skewed data streams. Therefore, it is challenging to configure sketches to optimize accuracy without prior knowledge of the input. Moreover, even with a new configuration, it is unclear when to apply it. This paper presents a novel sketch framework that can be dy-namically configured to optimize the accuracy given a processed data stream. Specifically, we provide a precise guarantee and derive an optimal number of hash functions under the Zipfian distribution, which is an appropriate way to model skewed data streams in practice. We then propose a dynamically configurable sketch framework, namely DISCO, that can estimate the distri-bution parameter and adjust the number of hash functions on the fly to optimize accuracy. We provide rigorous mathematical analysis and apply DISCO to three classical solutions, including the Count-min, Conservative Update, and Count sketches. Experimental results, using synthetic and real datasets, show that DISCO can achieve the optimal configuration for the metric (i.e., FP) related to the sketch guarantee, while achieving near-optimal accuracy for other common metrics (e.g., ARE) compared with state-of-the-art methods.
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 2e500bbb-c910-4887-8fea-2290e5c90664Cited by top-tier papers2
- Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data StreamsYuan Feng, Yukun Cao, Hairu Wang, Xike Xie et al.ICML 2025
- JitterSketch: Finding Jittery Flows in Network StreamsZhongxian Liang, Qilong Shi, Xiyan Liang, Zihan Li et al.WWW 2026
Related papers
- Sublime: Sublinear Error & Space for Unbounded Skewed StreamsNavid Eslami, Ioana O. Bercea, Rasmus Pagh, Niv DayanSIGMOD 2026
- SketchConf: A Framework for Automatic Sketch ConfigurationRuijie Miao, Fenghao Dong, Yikai Zhao, Yiming Zhao et al.ICDE 2023 · 11 citations
- MicroscopeSketch: Accurate Sliding Estimation Using Adaptive ZoomingYuhan Wu, Shiqi Jiang, Siyuan Dong, Zheng Zhong et al.KDD 2023 · 10 citations
- MimoSketch: A Framework to Mine Item Frequency on Multiple Nodes with SketchesYuchen Xu, Wenfei Wu, Bohan Zhao, Tong Yang et al.KDD 2023 · 5 citations
- Evolving Sketch: Time-Decaying Frequency Estimation for Evolving StreamsGe Gao, Yang Du, He Huang, Yu-E Sun et al.ICDE 2026
