mlsanityData to 14 Oct 2026

Faster Query-Key Learning Sharpens Attention in Self-Attention Models

arXiv 2608.06776 ↗First posted 7 Aug 2026cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

A standard self-attention layer consists of two interacting circuits: the query-key circuit that governs attention allocation, and the output-value circuit that maps attended representations to predictions. Collapsed and factorized parameterizations of the query-key and output-value circuits lead to qualitatively different attention patterns. In particular, some parameterizations give sharper attention to task-relevant tokens, at a similar training loss. We analyze how the parameterizations of these circuits shape the parameter trajectories in single-layer self-attention models trained for next-token prediction. Through gradient-flow analysis, we show that factorization induces implicit rescaling of the two circuits' learning rates. We derive closed-form dynamics showing that output-value and query-key parameters move along a line, with relative speeds determined by their learning rates. Faster query-key learning relative to output-value learning thus produces sharper attention, as the model compensates for slower output-value learning by increasing attention mass on relevant tokens. Experiments show that differences in the relative learning rates of the two circuits govern attention concentration. This improves attention interpretability proxies while maintaining comparable predictive performance.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 27 of its 31 references that are in the map. First posted on arXiv 7 Aug 2026.

Builds on

27 of 31 references.

References · 27

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  5. 2022In-context Learning and Induction Headscited by 964
  6. 2019Attention is not Explanationcited by 929
  7. 2020Quantifying Attention Flow in Transformerscited by 775
  8. 2018Universal Transformerscited by 647
  9. 2019Attention is not not Explanationcited by 636
  10. 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 530
  11. 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 407
  12. 2019Is Attention Interpretable?cited by 389
15 more
  1. 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 354
  2. 2018On the Optimization of Deep Networks: Implicit Acceleration by Overparameterizationcited by 284
  3. 2018Algorithmic Regularization in Learning Deep Homogeneous Models: Layers are Automatically Balancedcited by 177
  4. 2023Birth of a Transformer: A Memory Viewpointcited by 161
  5. 2023The emergence of clusters in self-attention dynamicscited by 140
  6. 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
  7. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 86
  8. 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
  9. 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
  10. 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
  11. 2024Clustering in Causal Attention Maskingcited by 32
  12. 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
  13. 2020On the Dynamics of Training Attention Modelscited by 8
  14. 2022On the Interpretability of Attention Networkscited by 5
  15. 2023On the Learning Dynamics of Attention Networkscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.