New Wine in an Old Bottle: Data-aware Hash Functions for Bloom Filters
Arindam Bhattacharya, Chathur Gudesa, Amitabha Bagchi, Srikanta Bedathur
Abstract
In many applications of Bloom filters, it is possible to exploit the patterns present in the inserted and non-inserted keys to achieve more compression than the standard Bloom filter. A new class of Bloom filters called Learned Bloom filters use machine learning models to exploit these patterns in the data. In practice, these methods and their variants raise many questions: the choice of machine learning models, the training paradigm to achieve the desired results, the choice of thresholds, the number of partitions in case multiple partitions are used, and other such design decisions. In this paper, we present a simple partitioned Bloom filter that works as follows: we partition the Bloom filter into segments, each of which uses a simple projection-based hash function computed using the data. We also provide a theoretical analysis that provides a principled way to select the design parameters of our method: number of hash functions and number of bits per partition. We perform empirical evaluations of our methods on various real-world datasets spanning several applications. We show that it can achieve an improvement in false positive rates of up to two orders of magnitude over standard Bloom filters for the same memory usage, and upto 50% better compression (bytes used per key) for same FPR, and, consistently beats the existing variants of learned Bloom filters.
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.
Builds on6
- Kitsune: An Ensemble of Autoencoders for Online Network Intrusion DetectionYisroel Mirsky, Tomer Doitshman, Yuval Elovici, Asaf ShabtaiNDSS 2018 · 945 citations
- Stable Learned Bloom Filters for Data StreamsQiyu Liu, Libin Zheng, Yanyan Shen, Lei ChenVLDB 2020 · 45 citations
- Hash Adaptive Bloom FilterRongbiao Xie, Meng Li, Zheyu Miao, Rong Gu et al.ICDE 2021 · 23 citations
- Fast Processing and Querying of 170TB of Genomics Data via a Repeated And Merged BloOm Filter (RAMBO)Gaurav Gupta, Minghao Yan, Benjamin Coleman, Bryce Kille et al.SIGMOD 2021 · 19 citations
- Fast One-class Classification using Class Boundary-preserving Random ProjectionsArindam Bhattacharya, Sumanth Varambally, Amitabha Bagchi, Srikanta BedathurKDD 2021 · 9 citations
Related papers
- Adaptive Learned Bloom Filter (Ada-BF): Efficient Utilization of the Classifier with Application to Real-Time Information Filtering on the WebZhenwei Dai, Anshumali ShrivastavaNeurIPS 2020 · 7 citations
- Fast Partitioned Learned Bloom FilterAtsuki Sato, Yusuke MatsuiNeurIPS 2023 · 13 citations
- Partitioned Learned Bloom FiltersKapil Vaidya, Eric Knorr, Michael Mitzenmacher, Tim KraskaICLR 2021 · 2 citations
- Ensemble Learned Bloom Filters: Two Oracles are Better than OneMing Lin, Lin ChenICML 2025
- Oasis: An Optimal Disjoint Segmented Learned Range FilterGuanduo Chen, Meng Li, Siqiang Luo, Zhenying HeVLDB 2024 · 17 citations
