Singular Vectors of Attention Heads Align with Features
Gabriel Franco, Carson Loughridge, Mark Crovella
TL;DR
The paper investigates why singular vectors of attention heads align with features in language models and when this alignment occurs. Using a tractable toy autoencoder-plus-attention head, it proves exact or approximate SVF alignment under isotropic or near-isotropic feature distributions and shows orthogonalization of non-target features to minimize interference. It proposes sparse attention decomposition (SAD) as a testable prediction and demonstrates SAD emerging in both toy models and real models (GPT-2 and Pythia), with logits decomposing sparsely in the SVD basis when features are present. These results justify SVF alignment as a sound, scalable approach for identifying feature representations in transformers, with practical implications for mechanistic interpretability and causal analysis.
Abstract
Identifying feature representations in language models is a central task in mechanistic interpretability. Several recent studies have made an implicit assumption that feature representations can be inferred in some cases from singular vectors of attention matrices. However, sound justification for this assumption is lacking. In this paper we address that question, asking: why and when do singular vectors align with features? First, we demonstrate that singular vectors robustly align with features in a model where features can be directly observed. We then show theoretically that such alignment is expected under a range of conditions. We close by asking how, operationally, alignment may be recognized in real models where feature representations are not directly observable. We identify sparse attention decomposition as a testable prediction of alignment, and show evidence that it emerges in a manner consistent with predictions in real models. Together these results suggest that alignment of singular vectors with features can be a sound and theoretically justified basis for feature identification in language models.
