Lune

SIGMOD2024Top-tier venue

A Learned Cuckoo Filter for Approximate Membership Queries over Variable-sized Sliding Windows on Data Streams

Yao Tian, Tingyun Yan, Ruiyuan Zhang, Kai Huang, Bolong Zheng, Xiaofang Zhou

Abstract

Designing a space-efficient data structure to answer membership queries while ensuring high accuracy and real-time response is a challenging task in the field of stream processing. Many techniques have been developed to answer these queries in a sliding windows manner. However, assuming the user will conduct the query with the presupposed window size is not always practical. In this paper, we introduce a novel data structure called Learned Cuckoo Filter (LCF). It can provide satisfactory results for the approximate membership query on data streams, regardless of the user-defined query windows. LCF operates by adaptively maintaining cuckoo filters with the assistance of a well-trained oracle that learned the frequency feature of the data within the stream. To further enhance memory utilization, we develop a compact version of LCF (denoted by LCF_C), which selectively removes redundant information to reduce space consumption without compromising query accuracy. Furthermore, we conduct a thorough theoretical analysis of query accuracy and provide detailed guidelines for optimal parameter selection (denoted by LCF_O). Extensive experimental studies on synthetic and real-world datasets demonstrate the superiority of the proposed methods in terms of both space consumption and accuracy. Compared to the state-of-the-art algorithms, LCF_O can reduce up to 61% of space cost at the same error level, and achieve up to 12× improved accuracy with the same space cost.

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.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Measuring Item Freshness in Data StreamsZirui Liu, Zihan Jiang, An Zhang, Zhouran Shi et al.KDD 2025

Related papers

  1. The Logarithmic Dynamic Cuckoo FilterFan Zhang, Hanhua Chen, Hai Jin, Pedro ReviriegoICDE 2021 · 23 citations
  2. Vacuum Filters: More Space-Efficient and Faster Replacement for Bloom and Cuckoo FiltersMinmei Wang, Mingxun Zhou, Shouqian Shi, Chen QianVLDB 2020 · 58 citations
  3. Stable Learned Bloom Filters for Data StreamsQiyu Liu, Libin Zheng, Yanyan Shen, Lei ChenVLDB 2020 · 45 citations
  4. Bamboo Filters: Make Resizing SmoothHancheng Wang, Haipeng Dai, Meng Li, Jun Yu et al.ICDE 2022 · 18 citations
  5. SWIX: A Memory-efficient Sliding Window Learned IndexLiang Liang, Guang Yang, Ali Hadian, Luis Alberto Croquevielle et al.SIGMOD 2024 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines