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

M, Basavaraj R, Kumar, Aryan Bharat

–arXiv.org Artificial Intelligence 

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 headvalue 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.11to 0.19across-group). Split-half reliability demonstrates that the per-head intervention effect is resolvable in GPT-2 (r = 0.80) but attenuated in Pythia-160M (0.42) and Pythia410M (0.53), whereas structural self-cosine reliability is near-perfect in all three (rstat > 0.99); which statistic predicts its own intervention is model-dependent. 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. 1 INTRODUCTION Multi-head self-attention (Vaswani et al., 2017) forms each head's output as a weighted sum of value vectors. In a causal model, position ican attend to its own value vector as well as to earlier positions. Exclusive self attention (XSA) removes the output component aligned with that value (Zhai, 2026). We examine whether this component is redundant and whether its cosine alignment identifies heads whose removal changes language-modelling loss. This is a question about a direction within a head, distinct from the whole-head pruning studied by Michel et al. (2019); Voita et al. (2019). Two measurements are needed to interpret such an intervention.