mlsanityData to 14 Oct 2026

AdaRoPE: Not All Attention Heads Should Rotate and Scale Equally

arXiv 2607.19363 ↗First posted 5 Jun 2026cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Rotary Position Embedding (RoPE) is widely adopted in Transformers to encode positional information, yet standard implementations enforce a uniform frequency schedule and scaling across all attention heads. Using simplified retrieval tasks and length generalization scenarios, we show -- both empirically and theoretically -- that heads with different functional roles require distinct frequency ranges and attention scaling factors to operate effectively. Ignoring this structure leads to suboptimal utilization of embedding dimensions and degraded performance, particularly under long-context settings. To address these limitations, we propose AdaRoPE, which equips each attention head with learnable rotation frequencies and attention scaling factors. Pretrained LLMs with AdaRoPE consistently outperform existing RoPE variants, including partial RoPE and NoPE baselines. For context extension, we further show that uniform frequency and attention scaling, used in methods such as YaRN, are suboptimal. By applying head-specific scaling, AdaRoPE enables better context extension while better preserving short-context performance in both the extrapolation setting and the long-context continued pretraining setting. These results highlight the importance of optimizing rotary position embedding at the level of individual attention heads.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 13 of its 66 references that are in the map. First posted on arXiv 5 Jun 2026.

Builds on

13 of 66 references.

References · 13

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  4. 2025Gemma 3 Technical Reportcited by 1,824
  5. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  6. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  7. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  8. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  9. 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 301
  10. 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
  11. 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
  12. 2025The Rotary Position Embedding May Cause Dimension Inefficiency in Attention Heads for Long-Distance Retrievalcited by 5
1 more
  1. 2026Demystifying the Slash Pattern in Attention: The Role of RoPEcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.