Skip to main content
QUICK REVIEW

[Paper Review] Meta-Learning Neural Bloom Filters

Jack W. Rae, Sergey Bartunov|arXiv (Cornell University)|Jun 10, 2019
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes the Neural Bloom Filter, a meta-learned memory-augmented neural network that achieves one-shot approximate set membership with significant compression gains over classical Bloom Filters. By learning to write to and read from external memory using a distributed, hash-like addressing scheme, it adapts to data structure patterns and achieves up to 30× compression on structured datasets like database workloads.

ABSTRACT

There has been a recent trend in training neural networks to replace data structures that have been crafted by hand, with an aim for faster execution, better accuracy, or greater compression. In this setting, a neural data structure is instantiated by training a network over many epochs of its inputs until convergence. In applications where inputs arrive at high throughput, or are ephemeral, training a network from scratch is not practical. This motivates the need for few-shot neural data structures. In this paper we explore the learning of approximate set membership over a set of data in one-shot via meta-learning. We propose a novel memory architecture, the Neural Bloom Filter, which is able to achieve significant compression gains over classical Bloom Filters and existing memory-augmented neural networks.

Motivation & Objective

  • To address the limitation of classical Bloom Filters in handling structured data distributions by learning data-specific representations instead of relying on uniform hashing.
  • To enable fast, one-shot instantiation of neural set membership data structures in high-throughput or ephemeral data environments where retraining from scratch is impractical.
  • To leverage meta-learning to train a single model that generalizes across many similar but distinct set membership tasks, such as those found in large-scale databases.
  • To design a memory architecture that supports efficient, feed-forward writing and multiplicative reading, avoiding backpropagation through time (BPTT) for scalability.
  • To evaluate whether neural networks can outperform classical and existing neural data structures in terms of compression while maintaining low false positive rates.

Proposed method

  • Proposes a novel memory-augmented neural network architecture called the Neural Bloom Filter, which uses a distributed write mechanism to store set elements in external memory.
  • Employs a meta-learning framework where the model is trained on a distribution of set membership tasks, each with a few examples, to enable one-shot adaptation.
  • Uses a feed-forward write scheme that avoids backpropagation through time, enabling efficient training and inference on streaming or high-throughput data.
  • Applies a multiplicative read mechanism to query memory based on input embeddings, mimicking the logical AND operation in Bloom Filters.
  • Leverages a differentiable, attention-like addressing mechanism to select memory locations based on query features, enabling end-to-end training.
  • Trains the model on a dataset of stored elements and queries, using gradient-based optimization to minimize false positives while compressing the representation.

Experimental results

Research questions

  • RQ1Can a neural network be meta-learned to perform one-shot approximate set membership with better compression than classical Bloom Filters?
  • RQ2How does the Neural Bloom Filter perform on structured data distributions where classical Bloom Filters are suboptimal?
  • RQ3Does the use of external memory with a feed-forward write scheme improve scalability and efficiency compared to recurrent or BPTT-based memory models?
  • RQ4Can the model generalize across diverse but related set membership tasks, such as those in database systems with many SSTables?
  • RQ5What is the trade-off between compression and false positive rate when learning from data-dependent distributions versus uniform distributions?

Key findings

  • The Neural Bloom Filter achieves up to 30× compression gain over classical Bloom Filters on structured database workloads, where data exhibits strong distributional patterns.
  • On unstructured or uniformly distributed data, the model learns a solution similar to a Bloom-g filter, a known derivative of the Bloom Filter, indicating robustness in low-structure regimes.
  • The model outperforms existing memory-augmented networks like the Differentiable Neural Computer (DNC) and Memory Networks in both compression and inference efficiency on set membership tasks.
  • Meta-learning enables effective one-shot adaptation: the model can be rapidly instantiated for new sets with minimal data, making it suitable for high-throughput or ephemeral data streams.
  • The feed-forward write mechanism avoids the computational burden of BPTT, enabling faster training and inference, especially when batching writes and queries.
  • The empirical false positive rate is significantly lower than the theoretical bound of classical Bloom Filters when data structure is exploited, demonstrating the advantage of data-dependent learning.

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.