Cuckoo filter
A cuckoo filter is an approximate-membership structure that stores short fingerprints in candidate buckets and supports insertion, lookup and deletion subject to its update contract.
A positive lookup does not prove an outstanding insertion. Deleting an absent or already-deleted key can remove another key's fingerprint. [3] One fingerprint per successful insertion preserves a colliding live key after a legitimate deletion. [1] Suppressing insertion after a positive lookup is unsafe if later deletions must preserve distinct keys. [4] The pinned-library experiment forces collisions, not a measured frequency or paper-benchmark reproduction. [5]
Relocation needs a reversible alternate-bucket calculation: applying it twice with the same fingerprint must return to the starting bucket. The pinned reference library maintains this round trip with a power-of-two bucket count. [2] Boskov and colleagues study a modified implementation that permits other counts; XOR followed by modulo can then relocate a fingerprint outside its lookup pair. This is construction-specific, not a universal false-negative rate. [6]
Adaptive variants can change fingerprints after an exact backing-set check detects a false positive; the original keys are kept separately. This is not the fixed-fingerprint library tested above. The JEA construction uses full-key bucket locations independent of the selected fingerprint, avoiding partial-key addressing because changing that fingerprint could change the alternate bucket. [7]
Adaptation can expose membership information through changing answers. Persistent false positives remain possible, so repeated positives alone are not proof of membership. The privacy study distinguishes known-hash extraction from weaker probabilistic inference and excludes insertions during extraction. Its findings are not a universal extraction rate. [8]
Relations
- related
- Vacuum filter, Bloom filter, Ribbon filter, Log-structured merge-tree, Stable Bloom filter, Counting Bloom filter, Blocked Bloom filter, Binary fuse filter
Citations
- Fan, Andersen, Kaminsky and Mitzenmacher. Cuckoo Filter: Practically Better Than Bloom. CoNEXT 2014, section 3. DOI: 10.1145/2674005.2674994.
- efficient/cuckoofilter, commit 917583d6abef692dfa8e14453bd77d6e0b61eef3. CuckooFilter Add, Contain, Delete and victim-cache accounting.
- Redis command reference. CF.DEL: deletion precondition and false-negative warning. Documentation review, not a Redis execution test.
- Redis command reference. CF.ADDNX: fingerprint matches can suppress insertion. Documentation review, not a Redis execution test.
- Hesela. Cuckoo deletion contracts, controlled-collision experiment and reproduction instructions.
- Boskov, Trachtenberg and Starobinski. Birdwatching: False Negatives In Cuckoo Filters. CoNEXT 2020 Student Workshop, sections 3-4. DOI: 10.1145/3426746.3434063.
- Mitzenmacher, Pontarelli and Reviriego. Adaptive Cuckoo Filters. ACM JEA 25 (2020), article 1.1, section 3. DOI: 10.1145/3339504.
- Reviriego et al. On the Privacy of Adaptive Cuckoo Filters: Analysis and Protection. IEEE TIFS 19 (2024), sections III-V. DOI: 10.1109/TIFS.2024.3404868.