mlsanityData to 26 Nov 2026

Head Dimension Matters in Language Models for Long-Context Retrieval

arXiv 2610.32213 ↗Submitted 23 Oct 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Multi-head attention retrieves and combines context representations through query--key interactions and value aggregation, with head dimension constraining the per-head representation space. In long-context processing, it remains unclear whether allocating a fixed parameter budget to fewer, wider heads improves information retrieval. In this paper, we investigate how head dimension affects the performance of long-context retrieval tasks. Our empirical studies reveal that pretraining loss and short-context non-retrieval task performance are not affected much by head dimension, while long-context retrieval performance improves with wider heads at fixed model sizes. We find that models with wider heads have a higher proportion of retrieval heads, associating more parameters with retrieval. Our ablation studies also show that the retrieval performance improves with wider heads even when the projection weights in attention modules are frozen during long-context continual pretraining, suggesting that wider heads not only benefit updates in attention modules but lead to more effective adaptation of components such as embeddings and MLPs.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 30 of its 35 references that are in the map. Submitted 23 Oct 2026.

Builds on

30 of 35 references.

References · 30

  1. 2017Attention Is All You Needcited by 62,125
  2. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,337
  3. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,389
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
  5. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 3,053
  6. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,284
  7. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,893
  8. 2019Root Mean Square Layer Normalizationcited by 1,624
  9. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
  10. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
  11. 2025s1: Simple test-time scalingcited by 1,456
  12. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 898
18 more
  1. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 272
  2. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 199
  3. 2024How to Train Long-Context Language Models (Effectively)cited by 168
  4. 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 99
  5. 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 81
  6. 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 60
  7. 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 47
  8. 2024Can Perplexity Reflect Large Language Model's Ability in Long Text Understanding?cited by 46
  9. 2025Query-Focused Retrieval Heads Improve Long-Context Reasoning and Re-rankingcited by 40
  10. 2024A Controlled Study on Long Context Extension and Generalization in LLMscited by 28
  11. 2024Superiority of Multi-Head Attention in In-Context Linear Regressioncited by 21
  12. 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modelingcited by 20
  13. 2024Long Context is Not Long at All: A Prospector of Long-Dependency Data for Large Language Modelscited by 19
  14. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Modelscited by 18
  15. 2025The Effect of Attention Head Count on Transformer Approximationcited by 6
  16. 2026Revealing the Learning Dynamics of Long-Context Continual Pre-trainingcited by 4
  17. 2026Attention-based representations for multi-task computationcited by 4
  18. 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extensioncited by 3

Built on by

Not cited yet.