Lune

SIGMOD2024Top-tier venue

Grafite: Taming Adversarial Queries with Optimal Range Filters

Marco Costa, Paolo Ferragina, Giorgio Vinciguerra

Abstract

Range filters allow checking whether a query range intersects a given set of keys with a chance of returning a false positive answer, thus generalising the functionality of Bloom filters from point to range queries. Existing practical range filters have addressed this problem heuristically, resulting in high false positive rates and query times when dealing with adversarial inputs, such as in the common scenario where queries are correlated with the keys.

We introduce Grafite, a novel range filter that solves these issues with a simple design and clear theoretical guarantees that hold regardless of the input data and query distribution: given a fixed space budget of 𝐵 bits per key, the query time is 𝑂 (1), and the false positive probability is upper bounded by ℓ/2 𝐵-2 , where ℓ is the query range size. Our experimental evaluation shows that Grafite is the only range filter to date to achieve robust and predictable false positive rates across all combinations of datasets, query workloads, and range sizes, while providing faster queries and construction times, and dominating all competitors in the case of correlated queries.

As a further contribution, we introduce a very simple heuristic range filter whose performance on uncorrelated queries is very close to or better than the one achieved by the best heuristic range filters proposed in the literature so far.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads cites Rethinking The Compaction Policies in LSM-trees
  • ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic Workloads cites Proteus: A Self-Designing Range Filter
  • Rethinking The Compaction Policies in LSM-trees cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • Rethinking The Compaction Policies in LSM-trees cites SNARF: A Learning-Enhanced Range Filter
  • Rethinking The Compaction Policies in LSM-trees cites Proteus: A Self-Designing Range Filter
  • Rethinking The Compaction Policies in LSM-trees cites REncoder: A Space-Time Efficient Range Filter with Local Encoder
  • Memento Filter: A Fast, Dynamic, and Robust Range Filter cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • Memento Filter: A Fast, Dynamic, and Robust Range Filter cites SNARF: A Learning-Enhanced Range Filter
  • Memento Filter: A Fast, Dynamic, and Robust Range Filter cites InfiniFilter: Expanding Filters to Infinity and Beyond
  • Memento Filter: A Fast, Dynamic, and Robust Range Filter cites Aleph Filter: To Infinity in Constant Time
  • Memento Filter: A Fast, Dynamic, and Robust Range Filter cites Proteus: A Self-Designing Range Filter
  • Memento Filter: A Fast, Dynamic, and Robust Range Filter cites REncoder: A Space-Time Efficient Range Filter with Local Encoder
  • SNARF: A Learning-Enhanced Range Filter cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • InfiniFilter: Expanding Filters to Infinity and Beyond cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • InfiniFilter: Expanding Filters to Infinity and Beyond cites SNARF: A Learning-Enhanced Range Filter
  • InfiniFilter: Expanding Filters to Infinity and Beyond cites Proteus: A Self-Designing Range Filter
  • Aleph Filter: To Infinity in Constant Time cites SNARF: A Learning-Enhanced Range Filter
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites Memento Filter: A Fast, Dynamic, and Robust Range Filter
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites SNARF: A Learning-Enhanced Range Filter
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites InfiniFilter: Expanding Filters to Infinity and Beyond
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites Aleph Filter: To Infinity in Constant Time
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites Proteus: A Self-Designing Range Filter
  • Diva: Dynamic Range Filter for Var-Length Keys and Queries cites REncoder: A Space-Time Efficient Range Filter with Local Encoder
  • Proteus: A Self-Designing Range Filter cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • REncoder: A Space-Time Efficient Range Filter with Local Encoder cites Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value Stores
  • REncoder: A Space-Time Efficient Range Filter with Local Encoder cites SNARF: A Learning-Enhanced Range Filter
  • REncoder: A Space-Time Efficient Range Filter with Local Encoder cites Proteus: A Self-Designing Range Filter
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Memento Filter: A Fast, Dynamic, and Robust Range FilterNavid Eslami, Niv DayanSIGMOD 2025 · 13 citations
  2. Aleph Filter: To Infinity in Constant TimeNiv Dayan, Ioana Oriana Bercea, Rasmus PaghVLDB 2024 · 13 citations
  3. Rethinking The Compaction Policies in LSM-treesHengrui Wang, Jiansheng Qiu, Fangzhou Yuan, Huanchen ZhangSIGMOD 2025 · 9 citations
  4. Diva: Dynamic Range Filter for Var-Length Keys and QueriesNavid Eslami, Ioana O. Bercea, Niv DayanVLDB 2025 · 6 citations
  5. ArceKV: Towards Workload-driven LSM-compactions for Key-Value Store Under Dynamic WorkloadsJunfeng Liu, Haoxuan Xie, Siqiang LuoVLDB 2026

Builds on6

  1. Rosetta: A Robust Space-Time Optimized Range Filter for Key-Value StoresSiqiang Luo, Subarna Chatterjee, Rafael Ketsetsidis, Niv Dayan et al.SIGMOD 2020 · 91 citations
  2. SNARF: A Learning-Enhanced Range FilterKapil Vaidya, Tim Kraska, Subarna Chatterjee, Eric R. Knorr et al.VLDB 2022 · 39 citations
  3. Proteus: A Self-Designing Range FilterEric R. Knorr, Baptiste Lemaire, Andrew Lim, Siqiang Luo et al.SIGMOD 2022 · 30 citations
  4. InfiniFilter: Expanding Filters to Infinity and BeyondNiv Dayan, Ioana O. Bercea, Pedro Reviriego, Rasmus PaghSIGMOD 2023 · 27 citations
  5. REncoder: A Space-Time Efficient Range Filter with Local EncoderZiwei Wang, Zheng Zhong, Jiarui Guo, Yuhan Wu et al.ICDE 2023 · 18 citations

Related papers

  1. Hourglass: An Adaptive Range Filter with Lightweight Hybrid EncodingFeifan Liu, Rong Gu, Meng Li, Haipeng Dai et al.SIGMOD 2026 · 1 citation
  2. Oasis: An Optimal Disjoint Segmented Learned Range FilterGuanduo Chen, Meng Li, Siqiang Luo, Zhenying HeVLDB 2024 · 17 citations
  3. Aeris Filter: A Strongly and Monotonically Adaptive Range FilterYuvaraj Chesetti, Navid Eslami, Huanchen Zhang, Niv Dayan et al.SIGMOD 2026 · 4 citations
  4. A four-dimensional Analysis of Partitioned Approximate FiltersTobias Schmidt, Maximilian Bandle, Jana GicevaVLDB 2021 · 6 citations
  5. Space Lower Bounds for Dynamic Filters and Value-Dynamic RetrievalWilliam Kuszmaul, Stefan WalzerSTOC 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines