mlsanityData to 7 Oct 2026

The Anxiety of Influence: Bloom Filters in Transformer Attention Heads

arXiv 2602.17526 ↗First posted 19 Feb 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Some transformer attention heads appear to function as membership testers, dedicating themselves to answering the question "has this token appeared before in the context?" We identify these heads across four language models (GPT-2 small, medium, and large; Pythia-160M) and show that they form a spectrum of membership-testing strategies. Two heads (L0H1 and L0H5 in GPT-2 small) function as high-precision membership filters with false positive rates of 0-4% even at 180 unique context tokens -- well above the dhead = 64 bit capacity of a classical Bloom filter. A third head (L1H11) shows the classic Bloom filter capacity curve: its false positive rate follows the theoretical formula p ≈ (1 - e-kn/m)k with R2 = 1.0 and fitted capacity m ≈ 5 bits, saturating by n ≈ 20 unique tokens. A fourth head initially identified as a Bloom filter (L3H0) was reclassified as a general prefix-attention head after confound controls revealed its apparent capacity curve was a sequence-length artifact. Together, the three genuine membership-testing heads form a multi-resolution system concentrated in early layers (0-1), taxonomically distinct from induction and previous-token heads, with false positive rates that decay monotonically with embedding distance -- consistent with distance-sensitive Bloom filters. These heads generalize broadly: they respond to any repeated token type, not just repeated names, with 43% higher generalization than duplicate-token-only heads. Ablation reveals these heads contribute to both repeated and novel token processing, indicating that membership testing coexists with broader computational roles. The reclassification of L3H0 through confound controls strengthens rather than weakens the case: the surviving heads withstand the scrutiny that eliminated a false positive in our own analysis.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 27 references that are in the map. First posted on arXiv 19 Feb 2026.

Builds on

15 of 27 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  3. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  4. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  5. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  6. 2019Are Sixteen Heads Really Better than One?cited by 803
  7. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  8. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  9. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  10. 2017The Case for Learned Index Structurescited by 188
  11. 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
  12. 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 73
3 more
  1. 2019A Model for Learned Bloom Filters, and Optimizing by Sandwichingcited by 64
  2. 2023Understanding Addition in Transformerscited by 34
  3. 2019Meta-Learning Neural Bloom Filterscited by 10

Built on by

Not cited yet.