Attention probes match or exceed mean and last-token probes, especially with more heads
Attention probes perform comparably to or better than mean and last-token probes across datasets, and that adding more heads improves their performance.
AI/ML EleutherAI 1 Aug 2025 Method Prototype evidence
Published as “Attention Probes”
Why it matters
Attention probes provide a flexible alternative to pooling-based probes that can match or exceed existing methods without extra architectural complexity.
Summary
The authors introduce attention probes, which replace pooling in linear probes with a learned attention layer that aggregates hidden states. They evaluate single- and multi-head variants on a wide range of probing datasets (MOSAIC and Neurons-In-A-Haystack) using Gemma 2B models. Results show that an 8-head probe trained with AdamW usually outperforms mean probes, while a single-head probe still beats mean probes on NiAH but is inconsistent on other sets. Performance varies by dataset, and more heads increase attention entropy.
What they found 5
- 8-head attention probes trained with AdamW mostly outperform mean probes and always beat mean probes trained with AdamW.
“The 8-head attention probe, trained with AdamW, mostly outperforms mean probes, and always outpeforms mean probes trained with AdamW.”
- A single-head attention probe improves over mean probes on the Neurons-In-A-Haystack datasets.
“Even a single-head attention probe is an improvement over mean probes on Neurons In A Haystack.”
- Mean probes beat last-token probes on MOSAIC datasets, but the reverse holds on NiAH datasets.
“On the MOSAIC datasets, mean probes outperform last-token probes, as in Costa et al. (2025). However, on the Neurons-In-A-Haystack (NiAH) datasets, the opposite is true.”
- Attention weight entropy rises with the number of heads and varies by dataset.
“Entropy generally increases with the number of heads, and very much depends on the dataset.”
- Overall, attention probes are comparable to mean or last-token probes, with the better method depending on the dataset.
“Attention probes are mostly comparable to mean- or last-token probes, depending on which is better for a given dataset.”
Caveats 3
- On Neurons In A Haystack, attention probes do not seem clearly better than last-token probes, and the performance is noisy.
- We use a different set of datasets, so our results are not directly comparable.
- The single-head attention probe attains mixed results, even when compared to an AdamW-trained mean probe.
What’s new here 4
- Adds a learnable position bias to probe attention logits.
- Supports multiple attention heads to weight token contributions.
- Provides an open-source library for training and evaluating attention probes.
- Shows that head count influences both accuracy and attention entropy.