Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Learned Bloom Filter (Ada-BF): Efficient Utilization of the Classifier

Zhenwei Dai, Anshumali Shrivastava|arXiv (Cornell University)|Oct 21, 2019
Caching and Content DeliveryComputer Science12 references14 citations
TL;DR

This paper proposes Ada-BF and disjoint Ada-BF, adaptive learned Bloom filter variants that dynamically tune Bloom filter parameters—specifically the number of hash functions or memory allocation—across multiple score regions derived from a machine learning classifier’s output. By leveraging the full spectrum of predicted scores instead of relying on a single threshold, the methods achieve significantly lower false positive rates and up to 50% memory reduction compared to prior learned Bloom filter approaches.

ABSTRACT

Recent work suggests improving the performance of Bloom filter by incorporating a machine learning model as a binary classifier. However, such learned Bloom filter does not take full advantage of the predicted probability scores. We proposed new algorithms that generalize the learned Bloom filter by using the complete spectrum of the scores regions. We proved our algorithms have lower False Positive Rate (FPR) and memory usage compared with the existing approaches to learned Bloom filter. We also demonstrated the improved performance of our algorithms on real-world datasets.

Motivation & Objective

  • Address the inefficiency of existing learned Bloom filters that waste classifier score information by only using a single threshold for high-confidence predictions.
  • Overcome the strong dependency on classifier confidence thresholds, which can fail under distribution shifts or adversarial examples in streaming or networked environments.
  • Develop a method that exploits the full distribution of classifier scores to achieve a better trade-off between false positive rate (FPR) and memory usage.
  • Provide a robust, hyper-parameter-tolerant framework that maintains low FPR even with suboptimal tuning of score partitioning parameters.
  • Demonstrate that adaptive tuning based on score density trends leads to superior performance on real-world datasets like malicious URL detection and virus scanning.

Proposed method

  • Propose Ada-BF, which adaptively adjusts the number of hash functions in different score regions based on the local false positive rate (FPR) characteristics of each region.
  • Use a score partitioning strategy that divides the classifier’s output into K regions, where each region is assigned a distinct number of hash functions to minimize overall FPR.
  • Introduce disjoint Ada-BF, which allocates variable-sized Bloom filters to different score regions, allowing memory to be prioritized in regions with higher non-member density.
  • Formulate the optimization problem to minimize total FPR by modeling the FPR contribution of each score region using the classifier’s score density and the number of hash functions.
  • Apply a two-parameter tuning strategy (K, c) to determine score thresholds, where c controls the minimum ratio of positive to negative density in each region to ensure effective partitioning.
  • Leverage the observation that non-members tend to have decreasing score density with increasing score, while members show increasing density, enabling region-specific FPR optimization.

Experimental results

Research questions

  • RQ1Can we improve the false positive rate (FPR) and memory efficiency of learned Bloom filters by utilizing the full spectrum of classifier score outputs instead of relying on a single threshold?
  • RQ2How does adaptive tuning of Bloom filter parameters (e.g., number of hash functions) across score regions affect the overall FPR and memory usage?
  • RQ3To what extent can the proposed methods reduce FPR and memory usage compared to standard learned Bloom filters and sandwiched learned Bloom filters?
  • RQ4How robust are the proposed methods to hyper-parameter misconfiguration, particularly in the choice of number of score regions or thresholding parameters?
  • RQ5Can the methods maintain low FPR on real-world datasets with non-smooth or discontinuous score distributions, such as in virus scanning or URL filtering?

Key findings

  • Ada-BF and disjoint Ada-BF reduce the false positive rate (FPR) by over 80% compared to the standard learned Bloom filter (LBF) on real-world datasets, including malicious URL detection and virus scanning.
  • To achieve a 0.2% FPR, Ada-BF requires only 150Kb of memory, representing a 50% reduction compared to LBF and sandwiched LBF, which require about 300Kb.
  • The methods maintain strong performance even with non-smooth score distributions, as seen in the virus scan dataset where the classifier score distribution is discontinuous and skewed.
  • Tuning only the parameter c (density ratio threshold) while fixing the number of regions K yields FPR performance nearly identical to the optimal case of tuning both K and c, indicating robustness to hyper-parameter misconfiguration.
  • The sandwiched learned Bloom filter does not consistently outperform the standard LBF, as its optimal configuration often reduces to the standard LBF when the threshold is set for low FPR and high FNR.
  • On the virus scan dataset, the machine learning model achieved 98% accuracy, and the proposed methods significantly outperformed all baselines, confirming the effectiveness of adaptive score-region-based filtering.

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.