Work

A Mechanistic Account of Attention Sinks in GPT-2: One Circuit, Broader Implications for Mitigation

Year: 2026
Type: conference-paper
Abstract: Transformers commonly exhibit an attention sink: disproportionately high attention to the first position.We study this behavior in GPT-2-style models with learned query biases and absolute positional embeddings.Combining structural analysis with causal interventions, validated across natural-language, mathematical, and code inputs, we find that the sink arises from the interaction among (i) a learned query bias, (ii) the first-layer MLP transformation of the positional encoding, and (iii) structure in the key projection.Crucially, each component we identify is individually dispensable: architectures omitting each of them robustly exhibit sinks.This indicates that attention sinks may arise through distinct circuits across architectures.These findings inform mitigation of sinks, and motivate broader investigation into why sinks emerge.* Equal contribution. 1 However, some architectures have been reported to have little to no sink (Qiu et al., 2025;Endy et al., 2025).
Institution: Tel Aviv University
Language: English
Open Access status: hybrid
OpenAlex ID: W7166890124
FWCI:
Cites:
Cited by:
Related to: 10