{
  "slug": "cuckoo-filter",
  "term": "Cuckoo filter",
  "aliases": [
    "Cuckoo membership filter"
  ],
  "definition": "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.",
  "note": "A positive lookup does not prove an outstanding insertion. Deleting an absent or already-deleted key can remove another key's fingerprint. [redis-cf-delete] One fingerprint per successful insertion preserves a colliding live key after a legitimate deletion. [cuckoo-paper] Suppressing insertion after a positive lookup is unsafe if later deletions must preserve distinct keys. [redis-cf-addnx] The pinned-library experiment forces collisions, not a measured frequency or paper-benchmark reproduction. [hesela-cuckoo]\n\nRelocation 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. [cuckoo-code] 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. [cuckoo-bucket-study]\n\nAdaptive 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. [acf-design]\n\nAdaptation 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. [acf-privacy]",
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "related": [
    "vacuum-filter",
    "bloom-filter",
    "ribbon-filter",
    "lsm-tree",
    "stable-bloom-filter",
    "counting-bloom-filter",
    "blocked-bloom-filter",
    "binary-fuse-filter"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "citations": [
    {
      "id": "cuckoo-paper",
      "title": "Fan, Andersen, Kaminsky and Mitzenmacher. Cuckoo Filter: Practically Better Than Bloom. CoNEXT 2014, section 3. DOI: 10.1145/2674005.2674994.",
      "url": "https://www.cs.cmu.edu/~binfan/papers/conext14_cuckoofilter.pdf",
      "accessed": "2026-10-16"
    },
    {
      "id": "cuckoo-code",
      "title": "efficient/cuckoofilter, commit 917583d6abef692dfa8e14453bd77d6e0b61eef3. CuckooFilter Add, Contain, Delete and victim-cache accounting.",
      "url": "https://github.com/efficient/cuckoofilter/blob/917583d6abef692dfa8e14453bd77d6e0b61eef3/src/cuckoofilter.h",
      "accessed": "2026-10-16"
    },
    {
      "id": "redis-cf-delete",
      "title": "Redis command reference. CF.DEL: deletion precondition and false-negative warning. Documentation review, not a Redis execution test.",
      "url": "https://redis.io/docs/latest/commands/cf.del/",
      "accessed": "2026-10-16"
    },
    {
      "id": "redis-cf-addnx",
      "title": "Redis command reference. CF.ADDNX: fingerprint matches can suppress insertion. Documentation review, not a Redis execution test.",
      "url": "https://redis.io/docs/latest/commands/cf.addnx/",
      "accessed": "2026-10-16"
    },
    {
      "id": "hesela-cuckoo",
      "title": "Hesela. Cuckoo deletion contracts, controlled-collision experiment and reproduction instructions.",
      "url": "https://hesela.com/analyses/bloom-filters-lsm-read-cost/#cuckoo-deletion",
      "accessed": "2026-10-16"
    },
    {
      "id": "cuckoo-bucket-study",
      "title": "Boskov, Trachtenberg and Starobinski. Birdwatching: False Negatives In Cuckoo Filters. CoNEXT 2020 Student Workshop, sections 3-4. DOI: 10.1145/3426746.3434063.",
      "url": "https://people.bu.edu/staro/cuckoo_filter_workshop_paper.pdf",
      "accessed": "2026-11-05"
    },
    {
      "id": "acf-design",
      "title": "Mitzenmacher, Pontarelli and Reviriego. Adaptive Cuckoo Filters. ACM JEA 25 (2020), article 1.1, section 3. DOI: 10.1145/3339504.",
      "url": "https://iris.uniroma1.it/retrieve/e383532c-7015-15e8-e053-a505fe0a3de9/3339504.pdf",
      "accessed": "2026-11-05"
    },
    {
      "id": "acf-privacy",
      "title": "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.",
      "url": "https://oa.upm.es/81968/1/ACF_Privacy-T-IFS-14693-2022-final.pdf",
      "accessed": "2026-11-05"
    }
  ]
}
