Decomposing Attention To Find Context-Sensitive Neurons

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Gibson, Alex
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912626778308608
author Gibson, Alex
author_facet Gibson, Alex
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_03315
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Decomposing Attention To Find Context-Sensitive Neurons
Gibson, Alex
Computation and Language
Artificial Intelligence
Machine Learning
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. 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.
title Decomposing Attention To Find Context-Sensitive Neurons
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2510.03315