Round and Round We Go! What makes Rotary Positional Encodings useful?
Not on the map. Why?
Abstract (arXiv)
Positional Encodings (PEs) are a critical component of Transformer-based Large Language Models (LLMs), providing the attention mechanism with important sequence-position information. One of the most popular types of encoding used today in LLMs are Rotary Positional Encodings (RoPE), that rotate the queries and keys based on their relative distance. A common belief is that RoPE is useful because it helps to decay token dependency as relative distance increases. In this work, we argue that this is unlikely to be the core reason. We study the internals of a trained Gemma 7B model to understand how RoPE is being used at a mechanical level. We find that Gemma learns to use RoPE to construct robust "positional" attention patterns by exploiting the highest frequencies. We also find that, in general, Gemma greatly prefers to use the lowest frequencies of RoPE, which we suspect are used to carry semantic information. We mathematically prove interesting behaviours of RoPE and conduct experiments to verify our findings, proposing a modification of RoPE that fixes some highlighted issues and improves performance. We believe that this work represents an interesting step in better understanding PEs in LLMs, which we believe holds crucial value for scaling LLMs to large sizes and context lengths.
Key facts. Cited by 111 papers in the map (data through 7 Oct 2026). Builds on 29 of its 40 references that are in the map. First posted on arXiv 8 Oct 2024.
Builds on
29 of 40 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2023Vision Transformers Need Registerscited by 844
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
17 more
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 145
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2024Transformers need glasses! Information over-squashing in language taskscited by 87
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2024How to think step-by-step: A mechanistic understanding of chain-of-thought reasoningcited by 53
- 2021Lower Perplexity is Not Always Human-Likecited by 52
- 2024Base of RoPE Bounds Context Lengthcited by 49
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 46
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
- 2024Exploring Context Window of Large Language Models via Decomposed Positional Vectorscited by 18
Built on by
Citing papers per year: 2024: 3; 2025: 57; 2026: 51.
111 papers.
Sort:
By area:
- 2024LTX-Video: Realtime Video Latent Diffusioncited by 549
- 2025TabICL: A Tabular Foundation Model for In-Context Learning on Large Datacited by 267
- 2026Gemma 4 Technical Reportcited by 187
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2025Why do LLMs attend to the first token?cited by 122
- 2025VideoRoPE: What Makes for Good Video Rotary Position Embedding?cited by 63
- 2025On the Emergence of Position Bias in Transformerscited by 57
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
- 2025Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMscited by 27
38 more
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
- 2025HELM: Hyperbolic Large Language Models via Mixture-of-Curvature Expertscited by 22
- 2025Hyperbolic Deep Learning for Foundation Models: A Surveycited by 20
- 2025Learning the RoPEs: Better 2D and 3D Position Encodings with STRINGcited by 19
- 2025Long-Context Generalization with Sparse Attentioncited by 18
- 2026TriAttention: Efficient Long Reasoning with Trigonometric KV Compressioncited by 18
- 2025Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddingscited by 16
- 2025Interpreting the Repeated Token Phenomenon in Large Language Modelscited by 15
- 2025RoPECraft: Training-Free Motion Transfer with Trajectory-Guided RoPE Optimization on Diffusion Transformerscited by 14
- 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
- 2025Panda: A pretrained forecast model for chaotic dynamicscited by 12
- 2026ReRoPE: Repurposing RoPE for Relative Camera Controlcited by 12
- 2026Addressable Memory for Video World Modelscited by 11
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025HoPE: Hyperbolic Rotary Positional Encoding for Stable Long-Range Dependency Modeling in Large Language Modelscited by 10
- 2025Decoupling the "What" and "Where" With Polar Coordinate Positional Embeddingscited by 10
- 2025ReDirector: Creating Any-Length Video Retakes with Rotary Camera Encodingcited by 10
- 2025AttentionPredictor: Temporal Patterns Matter for KV Cache Compressioncited by 7
- 2025A3 : an Analytical Low-Rank Approximation Framework for Attentioncited by 7
- 2025LLMs Process Lists With General Filter Headscited by 7
- 2025Synthesis of discrete-continuous quantum circuits with multimodal diffusion modelscited by 6
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformerscited by 6
- 2026FASA: Frequency-aware Sparse Attentioncited by 6
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provablycited by 6
- 2025Scale-invariant Attentioncited by 5
- 2025LeanK: Learnable K Cache Channel Pruning for Efficient Decodingcited by 5
- 2025Group Representational Position Encodingcited by 5
- 2025Deconstructing Positional Information: From Attention Logits to Training Biasescited by 4
- 2025HoPE: Hybrid of Position Embedding for Long Context Vision-Language Modelscited by 4
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysiscited by 4
- 2025RePo: Language Models with Context Re-Positioningcited by 3
- 2026MrRoPE: Mixed-radix Rotary Position Embeddingcited by 3
- 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariancescited by 3
- 2026Fractional Rotation, Full Potential? Investigating Performance and Convergence of Partial RoPEcited by 3
- 2026Frayed RoPE and Long Inputs: A Geometric Perspectivecited by 3
- 2026Generalizable Foundation Models for Calorimetry via Mixtures-of-Experts and Parameter Efficient Fine Tuningcited by 3
- 2026When Attention Closes: How LLMs Lose the Thread in Multi-Turn Interactioncited by 3
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformerscited by 3
50 most cited of 111 All 111 (JSON)
- 2026SPIN: Shadow Predictive Indexer for Sparse Attention6 Oct 2026
- 2026Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval29 Sep 2026
- 2026How Local Mixing Encodes Relative Position in Global NoPE Attention29 Sep 2026
- 2026When Can Attention Heads Be Statically Defined?28 Sep 2026
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026A Mesoscopic View of Transformer Weights Through Row and Column Scale Fields25 Sep 2026
- 2026MoSAR: Mixture of Semantic Attention Regimes for Learning Adaptive and Approximable Attention Geometries25 Sep 2026
- 2026SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterization13 Sep 2026
- 2026Modern Transformers Are Implicit Hybrids: From Functional Differentiation to Principled Hybrid Architecture Design2 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Addressable Memory for Video World Models7 Aug 2026
- 2026When Attention Goes Blind: Numerical Failure in ALiBi Positional Encodings4 Aug 2026
38 more
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformers30 Jul 2026
- 2026Phase Structure in Rotary Attention: A Spectral Framework for Semantic Continuity and Execution-Boundary Governance28 Jul 2026
- 2026Out-of-Length Scene Text Recognition: A Two-Axis Diagnosis and a Training-Free Fix25 Jul 2026
- 2026Relative Positions Generalize, Absolute Positions Memorize: An Implicit-Bias Account of Length Generalization in Attention21 Jul 2026
- 20262D Rotary Position Embedding for Scene Text Recognition with Transformers15 Jul 2026
- 2026LeRoPE: Learnable RoPE Frequencies Improve Language Modeling11 Jul 2026
- 2026How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization8 Jul 2026
- 2026Fingerprint, Not Blueprint: How Positional Schemes Set the Default Spectral Algebra of Attention7 Jul 2026
- 2026Gemma 4 Technical Report2 Jul 2026
- 2026Does RoPE Prevent or Degrade Retrieval Heads? A Mechanistic Analysis Across Model Families19 Jun 2026
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernels12 Jun 2026
- 2026SHERPA: Seam-aware Harmonized ERP Adaptation for Open-Domain 360^circ Panorama Generation10 Jun 2026
- 2026RoVE: Rotary Value Embeddings Attention for Relative Position-dependent Value Pathways9 Jun 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026Rotation-Aligned Key Channel Pruning for Efficient Vision-Language Model Inference19 May 2026
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably15 May 2026
- 2026Stateful Reasoning via Insight Replay14 May 2026
- 2026When Attention Closes: How LLMs Lose the Thread in Multi-Turn Interaction13 May 2026
- 2026Remember to Forget: Gated Adaptive Positional Encoding11 May 2026
- 2026Adaptive 3D-RoPE: Physics-Aligned Rotary Positional Encoding for Wireless Foundation Models1 May 2026
- 2026Learning Long-term Motion Embeddings for Efficient Kinematics Generation13 Apr 2026
- 2026Envisioning the Future, One Step at a Time10 Apr 2026
- 2026Dual Triangle Attention: Effective Bidirectional Attention Without Positional Embeddings9 Apr 2026
- 2026TriAttention: Efficient Long Reasoning with Trigonometric KV Compression6 Apr 2026
- 2026Generalizable Foundation Models for Calorimetry via Mixtures-of-Experts and Parameter Efficient Fine Tuning27 Mar 2026
- 2026Fractional Rotation, Full Potential? Investigating Performance and Convergence of Partial RoPE12 Mar 2026
- 2026Whisper-MLA: Reducing GPU Memory Consumption of ASR Models based on MHA2MLA Conversion28 Feb 2026
- 2026Frayed RoPE and Long Inputs: A Geometric Perspective24 Feb 2026
- 2026ReRoPE: Repurposing RoPE for Relative Camera Control8 Feb 2026
- 2026AlertBERT: A noise-robust alert grouping framework for simultaneous cyber attacks6 Feb 2026
- 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMs5 Feb 2026
- 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariances4 Feb 2026
- 2026FASA: Frequency-aware Sparse Attention3 Feb 2026
- 2026No Generation without Representation: Efficient Causal Protein Language Models Enable Zero-Shot Fitness Estimation2 Feb 2026
- 2026Parabolic Position Encoding: Vision-Centric, Principled, Extrapolatable, General1 Feb 2026
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysis29 Jan 2026
- 2026MrRoPE: Mixed-radix Rotary Position Embedding28 Jan 2026
- 2026On the Runway Cascade of Transformers for Language Modeling20 Jan 2026
50 newest of 111 All 111 (JSON)
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2025AttentionPredictor: Temporal Patterns Matter for KV Cache Compressioncited by 7
- 2025A3 : an Analytical Low-Rank Approximation Framework for Attentioncited by 7
- 2026FASA: Frequency-aware Sparse Attentioncited by 6
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysiscited by 4
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernelscited by 0
- 2026SPIN: Shadow Predictive Indexer for Sparse Attentioncited by 0
- 2026SPIN: Shadow Predictive Indexer for Sparse Attention6 Oct 2026
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernels12 Jun 2026
- 2026FASA: Frequency-aware Sparse Attention3 Feb 2026
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysis29 Jan 2026
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025A3 : an Analytical Low-Rank Approximation Framework for Attention19 May 2025
- 2025AttentionPredictor: Temporal Patterns Matter for KV Cache Compression6 Feb 2025
- 2024LTX-Video: Realtime Video Latent Diffusioncited by 549
- 2025RoPECraft: Training-Free Motion Transfer with Trajectory-Guided RoPE Optimization on Diffusion Transformerscited by 14
- 2026ReRoPE: Repurposing RoPE for Relative Camera Controlcited by 12
- 2025Synthesis of discrete-continuous quantum circuits with multimodal diffusion modelscited by 6
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformerscited by 3
- 2026Chimera: Designing and Chinchilla-Scaling Hybrid Visual Diffusion Transformers30 Jul 2026
- 2026ReRoPE: Repurposing RoPE for Relative Camera Control8 Feb 2026
- 2025Synthesis of discrete-continuous quantum circuits with multimodal diffusion models2 Jun 2025
- 2025RoPECraft: Training-Free Motion Transfer with Trajectory-Guided RoPE Optimization on Diffusion Transformers19 May 2025
- 2024LTX-Video: Realtime Video Latent Diffusion30 Dec 2024
- 2026Gemma 4 Technical Reportcited by 187
- 2025Hyperbolic Deep Learning for Foundation Models: A Surveycited by 20
- 2025HoPE: Hybrid of Position Embedding for Long Context Vision-Language Modelscited by 4
- 2025ID-Align: RoPE-Conscious Position Remapping for Dynamic High-Resolution Adaptation in Vision-Language Modelscited by 2
- 2026Rotation-Aligned Key Channel Pruning for Efficient Vision-Language Model Inferencecited by 0
- 2026Gemma 4 Technical Report2 Jul 2026
- 2026Rotation-Aligned Key Channel Pruning for Efficient Vision-Language Model Inference19 May 2026
- 2025Hyperbolic Deep Learning for Foundation Models: A Survey23 Jul 2025
- 2025ID-Align: RoPE-Conscious Position Remapping for Dynamic High-Resolution Adaptation in Vision-Language Models27 May 2025
- 2025HoPE: Hybrid of Position Embedding for Long Context Vision-Language Models26 May 2025
- 2025Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMscited by 27
- 2026TriAttention: Efficient Long Reasoning with Trigonometric KV Compressioncited by 18
- 2025RPM-MCTS: Knowledge-Retrieval as Process Reward Model with Monte Carlo Tree Search for Code Generationcited by 1
- 2026Stateful Reasoning via Insight Replaycited by 0
- 2026Stateful Reasoning via Insight Replay14 May 2026
- 2026TriAttention: Efficient Long Reasoning with Trigonometric KV Compression6 Apr 2026
- 2025RPM-MCTS: Knowledge-Retrieval as Process Reward Model with Monte Carlo Tree Search for Code Generation25 Nov 2025
- 2025Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMs20 Feb 2025
- 2026Addressable Memory for Video World Modelscited by 11
- 2026Addressable Memory for Video World Models7 Aug 2026
- 2025TabICL: A Tabular Foundation Model for In-Context Learning on Large Datacited by 267
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2025Why do LLMs attend to the first token?cited by 122
- 2025VideoRoPE: What Makes for Good Video Rotary Position Embedding?cited by 63
- 2025On the Emergence of Position Bias in Transformerscited by 57
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 46
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
- 2025HELM: Hyperbolic Large Language Models via Mixture-of-Curvature Expertscited by 22
- 2025Learning the RoPEs: Better 2D and 3D Position Encodings with STRINGcited by 19
12 most cited of 87 All 87 (JSON)
- 2026Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval29 Sep 2026
- 2026How Local Mixing Encodes Relative Position in Global NoPE Attention29 Sep 2026
- 2026When Can Attention Heads Be Statically Defined?28 Sep 2026
- 2026RoPE is Dead, Long Live RoPE: Towards Scalable Data-aware Positional Encodings28 Sep 2026
- 2026A Mesoscopic View of Transformer Weights Through Row and Column Scale Fields25 Sep 2026
- 2026MoSAR: Mixture of Semantic Attention Regimes for Learning Adaptive and Approximable Attention Geometries25 Sep 2026
- 2026SpectralShift: Effective Context Window Extension of Gated DeltaNet via Spectral Reparameterization13 Sep 2026
- 2026Modern Transformers Are Implicit Hybrids: From Functional Differentiation to Principled Hybrid Architecture Design2 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026When Attention Goes Blind: Numerical Failure in ALiBi Positional Encodings4 Aug 2026
- 2026Phase Structure in Rotary Attention: A Spectral Framework for Semantic Continuity and Execution-Boundary Governance28 Jul 2026
- 2026Out-of-Length Scene Text Recognition: A Two-Axis Diagnosis and a Training-Free Fix25 Jul 2026
12 newest of 87 All 87 (JSON)