Decomposing Query-Key Feature Interactions Using Contrastive Covariances
Not on the map. Why?
Abstract (arXiv)
Despite the central role of attention heads in Transformers, we lack tools to understand why a model attends to a particular token. To address this, we study the query-key (QK) space -- the bilinear joint embedding space between queries and keys. We present a contrastive covariance method to decompose the QK space into low-rank, human-interpretable components. It is when features in keys and queries align in these low-rank subspaces that high attention scores are produced. We first study our method both analytically and empirically in a simplified setting. We then apply our method to large language models to identify human-interpretable QK subspaces for categorical semantic features and binding features. Finally, we demonstrate how attention scores can be attributed to our identified features.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 31 of its 40 references that are in the map. First posted on arXiv 4 Feb 2026.
Builds on
31 of 40 references.
References · 31
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2025Qwen3 Technical Reportcited by 8,195
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
- 2022Toy Models of Superpositioncited by 928
- 2019Attention is not Explanationcited by 916
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2016Understanding Neural Networks through Representation Erasurecited by 223
- 2024Not All Language Model Features Are One-Dimensionally Linearcited by 201
19 more
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 111
- 2023How do Language Models Bind Entities in Context?cited by 102
- 2018Seq2Seq-Vis: A Visual Debugging Tool for Sequence-to-Sequence Modelscited by 69
- 2022VL-InterpreT: An Interactive Visualization Tool for Interpreting Vision-Language Transformerscited by 53
- 2023AttentionViz: A Global View of Transformer Attentioncited by 50
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 43
- 2024Talking Heads: Understanding Inter-layer Communication in Transformer Language Modelscited by 39
- 2025Language Models use Lookbacks to Track Beliefscited by 36
- 2024Representational Analysis of Binding in Language Modelscited by 27
- 2025Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Contextcited by 24
- 2024Automatically Identifying Local and Global Circuits with Linear Computation Graphscited by 22
- 2025Does Object Binding Naturally Emerge in Large Pretrained Vision Transformers?cited by 19
- 2024Dissecting Query-Key Interaction in Vision Transformerscited by 12
- 2025The Geometry of Self-Verification in a Task-Specific Reasoning Modelcited by 12
- 2025Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learningcited by 7
- 2025LLMs Process Lists With General Filter Headscited by 7
- 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuitscited by 6
- 2026Bi-Orthogonal Factor Decomposition for Vision Transformerscited by 4
- 2025Extracting Rule-based Descriptions of Attention Features in Transformerscited by 2
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Using OCR Heads to Verbalize Image Semantics16 Sep 2026
- 2026MAxBench: A Multinomial Concept Recovery Benchmark11 Sep 2026
- 2026Tensor Product Representation Probes Reveal Shared Structure Across Linear Directions11 May 2026