Decomposing Attention To Find Context-Sensitive Neurons

Alex Gibson
10/1/2025
cs.CLcs.AIcs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

We study transformer language models, analyzing attention heads whose attention patterns are spread out, and whose attention scores depend weakly on content. We argue that the softmax denominators of these heads are stable when the underlying token distribution is fixed.

Show full abstract

By sampling softmax denominators from a "calibration text", we can combine together the outputs of multiple such stable heads in the first layer of GPT2-Small, approximating their combined output by a linear summary of the surrounding text. This approximation enables a procedure where from the weights alone - and a single calibration text - we can uncover hundreds of first layer neurons that respond to high-level contextual properties of the surrounding text, including neurons that didn't activate on the calibration text.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gibson2025decomposing,
  title  = {Decomposing Attention To Find Context-Sensitive Neurons},
  author = {Alex Gibson},
  year   = {2025},
  eprint = {2510.03315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.03315v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.03315.svg)](https://codeofpaper.com/paper/2510.03315)

Discussion