# Sanity Checks for Attention Surgery: Null Models and Matched Interventions for Representation-Motivated Design

DevFeed: [Sanity Checks for Attention Surgery: Null Models and Matched Interventions for Representation-Motivated Design](<https://devfeed.tech/articles/sanity-checks-for-attention-surgery-null-models-and-matched-interventions-for-representation-motivated-design-128727.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.13543>)

Author: Basavaraj R M, Aryan Bharat Kumar

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>)

Tags: [alignment](<https://devfeed.tech/tags/alignment.md>), [attention](<https://devfeed.tech/tags/attention.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [grouped-query-attention](<https://devfeed.tech/tags/grouped-query-attention.md>), [models](<https://devfeed.tech/tags/models.md>), [null](<https://devfeed.tech/tags/null.md>), [redundancy](<https://devfeed.tech/tags/redundancy.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [scale](<https://devfeed.tech/tags/scale.md>), [training](<https://devfeed.tech/tags/training.md>), [transformer](<https://devfeed.tech/tags/transformer.md>), [validation](<https://devfeed.tech/tags/validation.md>), [value](<https://devfeed.tech/tags/value.md>)

## AI overview

The paper proposes three checks for representation-motivated architectural changes: test whether a measured statistic exceeds noise, survives a geometric null, and whether the training gain depends on the specific direction removed. Applied to self-attention removal, the earlier-position causal null accounts for 48%-63% of head-value cosine alignment across nine pretrained models, without a monotone scale trend. In grouped-query attention, alignment is positive within a head's own key-value group and negative across groups. Split-half reliability finds intervention effects more resolvable in GPT-2 than in Pythia-160M or Pythia-410M, while structural self-cosine reliability is near-perfect; predictive relationships vary by model. In a preregistered 3-arm, 8-seed experiment at 50.9M scale, self-directed removal lowered validation loss and outperformed a fixed arbitrary rank-one direction, which did not differ significantly from baseline. The authors caution that large cosine alignment alone does not establish redundancy in frozen models.

## Source excerpt

arXiv:2611.13543v1 Announce Type: new Abstract: Transformer architectural modifications frequently measure a statistic on internal representations, observe that it is large, remove it architecturally, and report an improvement. Interpreting that sequence requires evaluating whether the statistic exceeds its noise floor, whether it survives a geometric null, and whether the training gain requires the specific direction removed. We formulate these requirements as three reusable checks and apply them to self-attention removal, which deletes the component of an attention head's output aligned with its own value vector. Across nine multi-head pretrained models (5,408 heads, 124M to 6.9B parameters), an earlier-position causal null accounts for 48% to 63% of the head-value cosine alignment, with no monotone scale trend. Under grouped-query attention, this alignment is specific to each head's own key-value group and reverses across groups (+0.24 to +0.27 within-group, -0.11 to -0.19 across-group). Split-half reliability demonstrates that the per-head intervention effect is resolvable in GPT-2 ($r_\Delta = 0.80$) but attenuated in Pythia-160M (0.42) and Pythia-410M (0.53), whereas structural self-cosine reliability is near-perfect in all three ($r_{\text{stat}} > 0.99$); which statistic predicts its own intervention is model-dependent. In a pre-registered 3-arm by 8-seed paired factorial at $4.0 \times 10^8$ tokens per run (399,900,672 tokens), a fixed arbitrary rank-one direction does not differ from baseline (+0.0011 nats, $p = 0.197$), while self-directed removal lowers validation loss (-0.0029 nats, Holm-corrected $p = 0.0023$) and outperforms the fixed arbitrary control directly (-0.0040 nats, $p = 0.0018$). At 50.9M scale the training benefit requires the own-value direction rather than a fixed arbitrary one, but a large cosine alignment alone does not establish redundancy in frozen models.