Stable Bloom filter
A stable Bloom filter is an approximate stream-history filter that ages counter cells to bound memory while allowing both false positives and forgotten duplicates.
Each arrival is queried before selected distinct cells are decremented and its hash cells are reset to Max. The update runs even when the query reports a duplicate. Aging advances with arrivals, not wall-clock time. [1]
When each cell loses at most one per update, a just-inserted key remains positive after fewer than Max intervening updates. Its cells cannot fall below Max minus that update count. With Max=3, two intervening updates cannot erase it, but three can; shared-cell refreshes can retain it longer. [1]
Stable refers to limiting expected occupancy under an unchanged input distribution, not permanent membership or a fixed expiry time. False negatives depend on duplicate gaps and cell refreshes, so a false-positive target is not a same-rate recall guarantee. [1]
Sliding-window contract: A sliding Bloom filter instead guarantees positive answers for the last n arrivals, permits arbitrary answers in an older slack region, and bounds positives outside both. This is an arrival-count window, not a time duration. [3]
Implementation scope: The pinned PowerDNS version uses Max=1 and clears adjacent cells. The Max=3 example is not its configuration. For Max=1, the bound protects an immediate repeat with zero intervening updates; it does not guarantee survival through even one intervening update. [5]
Relations
- related
- Bloom filter, Counting Bloom filter, Cuckoo filter, Invertible Bloom lookup table, Scalable Bloom filter
Limitations
- A negative answer may reject an earlier item, so an aging filter cannot safely skip reads of arbitrary authoritative data. [2]
Citations
- Deng and Rafiei. Approximately Detecting Duplicates for Streaming Data using Stable Bloom Filters. SIGMOD 2006. DOI: 10.1145/1142473.1142477.
- Hesela. Filter retention and counting: fixed-address counterexamples.
- Naor and Yogev. Tight Bounds for Sliding Bloom Filters. Author manuscript, 7 November 2013, section 1.1.
- PowerDNS Recursor documentation. Newly Observed Domain Tracking: stable-filter use and error definitions.
- PowerDNS stableBF implementation at commit 60be7ecb53c4715c8b8d832ec2268b100b827cd3: bit cells, testAndAdd and decrement.
Sources & caveats
- The linked examples use explicit addresses and decay schedules; they do not estimate production error rates. [2]
- The SIGMOD author manuscript was recovered from its 2026-01-24 archive capture after the former endpoint redirected to HTTP 404; Algorithm 1 and sections 3.3, 3.6 and 5.2 were reviewed. [1]
- Shipping status reflects documented use in PowerDNS Recursor, not a claim that all implementations share parameters. Its novelty-detection FP/FN labels invert the duplicate-membership labels used here. [4]