Skip to main content
QUICK REVIEW

[Paper Review] A Model for Learned Bloom Filters and Related Structures

Michael Mitzenmacher|arXiv (Cornell University)|Feb 3, 2018
Machine Learning and ELMComputer Science4 references14 citations
TL;DR

This paper introduces a formal model for learned Bloom filters, which use machine learning to predict set membership and reduce space usage by replacing part of the standard Bloom filter with a learned function. The key contribution is clarifying that false positive rates depend on query distribution, making performance application-specific and limiting guarantees compared to standard Bloom filters.

ABSTRACT

Recent work has suggested enhancing Bloom filters by using a pre-filter, based on applying machine learning to model the data set the Bloom filter is meant to represent. Here we model such learned Bloom filters, clarifying what guarantees can and cannot be associated with such a structure.

Motivation & Objective

  • To formalize the behavior of learned Bloom filters, which use machine learning to predict membership and reduce space usage.
  • To clarify that false positive rates in learned Bloom filters are not uniform but depend on the query distribution, unlike standard Bloom filters.
  • To identify conditions under which learned Bloom filters offer advantages, particularly when queries follow a fixed, sampleable distribution.
  • To highlight limitations, such as sensitivity to distribution shifts and lack of strong theoretical guarantees independent of query patterns.
  • To provide a theoretical foundation for evaluating learned index structures and guide practical deployment.

Proposed method

  • Proposes a two-component structure: a learned function f(y) that predicts membership, and a backup Bloom filter for elements where f(y) ≥ τ.
  • Models the false positive rate as dependent on the distribution of queries, not just filter parameters.
  • Uses the L1 distance between query and training distributions to assess stability of false positive rates.
  • Analyzes performance using probabilistic concentration bounds, showing ρ (fraction of set bits) is tightly concentrated around its expectation.
  • Introduces a framework to evaluate empirical false positive rates based on sampled query distributions during construction.
  • Considers practical extensions such as insertions (via backup filter updates) and retraining when data changes significantly.

Experimental results

Research questions

  • RQ1How does the false positive rate of a learned Bloom filter depend on the distribution of queries, rather than being a fixed property?
  • RQ2Under what conditions can learned Bloom filters outperform standard Bloom filters in terms of space and accuracy?
  • RQ3What theoretical guarantees can be made about false positive rates when the query distribution differs from the training distribution?
  • RQ4How do insertions and deletions affect the performance and maintenance cost of learned Bloom filters?
  • RQ5Can the performance of the learned function f be formally bounded using learning theory concepts like VC dimension or Rademacher complexity?

Key findings

  • The false positive rate of a learned Bloom filter is not a fixed value but depends on the query distribution, making it application-specific.
  • If queries are drawn from a distribution close to the training set (e.g., in L1 distance), the false positive rate remains stable and predictable.
  • When query distribution shifts—e.g., from uniform over [0,1000000) to [0,10000)—false positive rates can increase dramatically, from 0.0004 to 0.0022.
  • The backup filter in a learned Bloom filter must store roughly 1.5 extra bits per element compared to a standard Bloom filter to achieve the same false positive rate, due to its smaller size and higher sensitivity.
  • Learned Bloom filters support insertions by adding elements to the backup filter, but deletions are not natively supported and may require additional structures.
  • Re-training the function f is possible if data changes substantially, but requires access to the original dataset and a set of negative examples.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.