counting-bloom-filter · shipping

Counting Bloom filter

A counting Bloom filter tracks approximate set membership with counters that support insertions and deletions through matched increments and decrements.

Correct deletion requires an outstanding insertion, not merely a positive lookup. Exact counters preserve colliding live keys, but clipping overflow loses multiplicity and can later yield false negatives. In the original cache-sharing design, only counter transitions between 0 and 1 change the bit array that peers receive. [1]

Counter width and overflow policy are part of the contract. With 4 bits per counter, overflow requires some counter to reach 16, and with k at most (ln 2)m/n the probability is at most 1.37 × 10^-15 × m for m counters. A counter left at its maximum after overflow can cause a later false negative only if deletions bring it to 0 while a live key still maps to it. [3]

In one scaling example, a 2 MB filter for about 1 million pages needed another 8 MB for its local counters, so the counters can outweigh the bit array that is shared. [1]

Relations

related
Bloom filter, Stable Bloom filter, Cuckoo filter, Blocked Bloom filter, Counting quotient filter

Advantages

  • Deletion support lets a filter follow a changing set without periodic rebuilding from the full key list. [3]

Limitations

  • The overflow bound assumes near-random hashing and bounded set size, and it grows to 1.37 × 10^-15 × mt over a history of t sets. [3]

Citations

  1. Fan, Cao, Almeida and Broder. Summary Cache: A Scalable Wide-Area Web Cache Sharing Protocol. ToN 8(3), 2000. DOI: 10.1109/90.851975. (accessed 2026-10-23)
  2. Broder and Mitzenmacher. Network Applications of Bloom Filters: A Survey. Internet Mathematics 1(4), 485-509, section 2.5. (accessed 2026-10-23)

Further reading

  1. Hesela. Filter retention and counting: fixed-address counterexamples. (accessed 2026-10-17)
Sources & caveats
  • summary-cache read 2026-10-23 from an open university mirror, sections on counters, scalability and prototype, for the 4-bit analysis and the 2 MB and 8 MB example.
  • bloom-survey read 2026-10-23, section 2.5, for the overflow bound and the saturating-counter behaviour.
  • A companion analysis with fixed-address retention examples is listed but not used in prose.

JSON: /data/terms/counting-bloom-filter.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Counting Bloom filter. Hesela. 2026-10-23. https://hesela.dev/terms/counting-bloom-filter/