Rotary Offset Features in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Transformer-based Large Language Models (LLMs) rely on positional encodings to provide sequence position information to their attention mechanism. Rotary Positional Encodings (RoPE), which encode relative position by rotating queries and keys, have become widely used in modern LLMs. We study the features and patterns that emerge in queries and keys when using rotary embeddings and introduce the concept of rotary offset features. Our analysis reveals that these features, which frequently exhibit large activations and are often interpreted as outliers, arise consistently across layers, attention heads, and model architectures. We derive bounds predicting which rotary frequencies give rise to rotary offset features and the minimum angle between the query-key pairs for these features. We verify our predictions empirically across models of different sizes and architectures.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 12 of its 16 references that are in the map. First posted on arXiv 3 Mar 2025.
Builds on
12 of 16 references.
References · 12
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
- 2023Scaling Laws of RoPE-based Extrapolationcited by 125
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 47
- 2024HoPE: A Novel Positional Encoding Without Long-Term Decay for Enhanced Context Awareness and Extrapolationcited by 17
Built on by
Citing papers per year: 2026: 1.
1 paper.