Head Dimension Matters in Language Models for Long-Context Retrieval
Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi
Key points
From the paper's conclusion- We find that models with wider heads have a higher proportion of retrieval heads, associating more parameters with retrieval.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Broader Look into MLLM's Retrieval HeadsarXiv · 2026
- Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in RetrievalarXiv · 2026
- The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging TrendsarXiv · 2026
- Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time TrainingarXiv · 2026
- MoSAR: Mixture of Semantic Attention Regimes for Learning Adaptive and Approximable Attention GeometriesarXiv · 2026
- Query-Guided RoPE Modulation for Lost-in-the-Middle Mitigation in Long-Context LLMsarXiv · 2026