On-Off Sketch: A Fast and Accurate Sketch on Persistence
Yinda Zhang, Jinyang Li, Yutian Lei, Tong Yang, Zhetao Li, Gong Zhang, Bin Cui
Abstract
Approximate stream processing has attracted much attention recently. Prior art mostly focuses on characteristics like frequency, cardinality, and quantile. Persistence, as a new characteristic, is getting increasing attention. Unlike frequency, persistence highlights behaviors where an item appears recurrently in many time windows of a data stream. There are two typical problems with persistence - persistence estimation and finding persistent items. In this paper, we propose the On-Off sketch to address both problems. For persistence estimation, using the characteristic that the persistence of an item is increased periodically, we compress increments when multiple items are mapped to the same counter, which significantly reduces the error. Compared with the Count-Min sketch, 1) in theory, we prove that the error of the On-Off sketch is always smaller; 2) in experiments, the On-Off sketch achieves around 6.17 times smaller error and 2.2 times higher throughput. For finding persistent items, we propose a technique to separate persistent and non-persistent items, further improving the accuracy. We show that the space complexity of our On-Off sketch is much better than the state-of-the-art (PIE), and it reduces the error up to 4 orders of magnitude and achieves 2.84 times higher throughput than prior algorithms in experiments.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d47f6b60-df4d-4bc8-b0c2-1ef19ce7f330Cited by top-tier papers14
- CocoSketch: high-performance sketch-based measurement over arbitrary partial key queryYinda Zhang, Zaoxing Liu, Ruixin Wang, Tong Yang et al.SIGCOMM 2021 · 146 citations
- FlyMon: enabling on-the-fly task reconfiguration for network measurementHao Zheng, Chen Tian, Tong Yang, Huiping Lin et al.SIGCOMM 2022 · 52 citations
- μMon: Empowering Microsecond-level Network Monitoring with WaveletsHao Zheng, Chengyuan Huang, Xiangyu Han, Jiaqi Zheng et al.SIGCOMM 2024 · 26 citations
- PeriodicSketch: Finding Periodic Items in Data StreamsZhuochen Fan, Yinda Zhang, Tong Yang, Mingyi Yan et al.ICDE 2022 · 25 citations
- Stable-Sketch: A Versatile Sketch for Accurate, Fast, Web-Scale Data Stream ProcessingWeihe Li, Paul PatrasWWW 2024 · 23 citations
Builds on1
Related papers
- Hypersistent Sketch: Enhanced Persistence Estimation via Fast Item SeparationLu Cao, Qilong Shi, Weiqiang Xiao, Nianfu Wang et al.ICDE 2025 · 8 citations
- Out of Many We are One: Measuring Item Batch with Clock-SketchPeiqing Chen, Dong Chen, Lingxiao Zheng, Jizhou Li et al.SIGMOD 2021 · 35 citations
- Pandora: An Efficient and Rapid Solution for Persistence-Based Tasks in High-Speed Data StreamsWeihe LiSIGMOD 2025 · 6 citations
- 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
- 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
