HyperCalm Sketch: One-Pass Mining Periodic Batches in Data Streams
Zirui Liu, Chaozhe Kong, Kaicheng Yang, Tong Yang, Ruijie Miao, Qizhi Chen, Yikai Zhao, Yaofeng Tu, Bin Cui
Abstract
Batch is an important pattern in data streams, which refers to a group of identical items that arrive closely. We find that some special batches that arrive periodically are of great value. In this paper, we formally define a new pattern, namely periodic batches. A group of periodic batches refers to several batches of the same item, where these batches arrive periodically. Studying periodic batches is important in many applications, such as caches, financial markets, online advertisements, networks, etc. We propose a one-pass sketching algorithm, namely the HyperCalm sketch, which takes two phases to detect periodic batches in real time. In phase 1, we propose a time-aware Bloom filter, namely HyperBloomFilter (HyperBF), to detect the start of batches. In phase 2, we propose an enhanced top-k algorithm, called Calm Space-Saving (CalmSS), to report topk periodic batches. We theoretically derive the error bounds for HyperBF and CalmSS. Extensive experiments show HyperCalm outperforms the strawman solutions 4× in term of average relative error and 13.2× in term of speed. We also apply HyperCalm to a cache system and integrate HyperCalm into Apache Flink. All related codes are open-sourced 1 .
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 2eb3d3a2-9320-4e46-aaa2-c38b6f276312Cited by top-tier papers5
- CAFE: Towards Compact, Adaptive, and Fast Embedding for Large-scale Recommendation ModelsHailin Zhang, Zirui Liu, Boxuan Chen, Yikai Zhao et al.SIGMOD 2024 · 15 citations
- KVSAgg: Secure Aggregation of Distributed Key-Value SetsYuhan Wu, Siyuan Dong, Yi Zhou, Yikai Zhao et al.ICDE 2023 · 8 citations
- ChainedFilter: Combining Membership Filters by Chain RuleHaoyu Li, Liuhui Wang, Qizhi Chen, Jianan Ji et al.SIGMOD 2024 · 5 citations
- FreewayML: An Adaptive and Stable Streaming Learning Framework for Dynamic Data StreamsZheng Qin, Zheheng Liang, Lijie Xu, Wentao Wu et al.ICDE 2025 · 2 citations
- Measuring Item Freshness in Data StreamsZirui Liu, Zihan Jiang, An Zhang, Zhouran Shi et al.KDD 2025
Builds on10
- 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
- SALSA: Self-Adjusting Lean Streaming AnalyticsRan Ben Basat, Gil Einziger, Michael Mitzenmacher, Shay VargaftikICDE 2021 · 45 citations
- A Learned Sketch for Subgraph CountingKangfei Zhao, Jeffrey Xu Yu, Hao Zhang, Qiyan Li et al.SIGMOD 2021 · 43 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
- A Sketch-based Index for Correlated Dataset SearchAécio S. R. Santos, Aline Bessa, Christopher Musco, Juliana FreireICDE 2022 · 31 citations
Related papers
- PeriodicSketch: Finding Periodic Items in Data StreamsZhuochen Fan, Yinda Zhang, Tong Yang, Mingyi Yan et al.ICDE 2022 · 25 citations
- Scout Sketch: Finding Promising Items in Data StreamsTianyu Ma, Guoju Gao, He Huang, Yu-e Sun et al.INFOCOM 2024 · 4 citations
- PBSketch: Finding Periodic Burst Items in Data StreamsZhuochen Fan, Zhongxian Liang, Zirui Liu, Dayu Wang et al.KDD 2026
- BurstSketch: Finding Bursts in Data StreamsZheng Zhong, Shen Yan, Zikun Li, Decheng Tan et al.SIGMOD 2021 · 58 citations
- Finding Simplex Items in Data StreamsZhuochen Fan, Jiarui Guo, Xiaodong Li, Tong Yang et al.ICDE 2023 · 9 citations
