Decoupling Positional and Symbolic Attention Behavior in Transformers
Not on the map. Why?
Abstract (arXiv)
An important aspect subtending language understanding and production is the ability to independently encode positional and symbolic information of the words within a sentence. In Transformers, positional information is typically encoded using Positional Encodings (PEs). One such popular PE, namely Rotary PE (RoPE), has been widely used due to its empirical success. Recently, it has been argued that part of RoPE's success emerges from its ability to encode robust positional and semantic information using large and small frequencies, respectively. In this work, we perform a deeper dive into the positional versus symbolic dichotomy of attention heads behavior, both at the theoretical and empirical level. We provide general definitions of what it means for a head to behave positionally or symbolically, prove that these are two mutually exclusive behaviors and develop a metric to quantify them. We apply our framework to analyze Transformer-based LLMs using RoPE and find that all heads exhibit a strong correspondence between behavior and frequency use. Finally, we introduce canonical tasks designed to be either purely positional or symbolic, and demonstrate that the Transformer performance causally relates to the ability of attention heads to leverage the appropriate frequencies. In particular, we show that we can control the Transformer performance by controlling which frequencies the attention heads can access. Altogether, our work provides a detailed understanding of RoPE, and how its properties relate to model behavior.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 27 of its 36 references that are in the map. First posted on arXiv 3 Oct 2025.
Builds on
27 of 36 references.
References · 27
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2018Invariant and Equivariant Graph Networkscited by 346
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
- 2023Effective Long-Context Scaling of Foundation Modelscited by 303
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 2023Scaling Laws of RoPE-based Extrapolationcited by 125
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2023How do Language Models Bind Entities in Context?cited by 108
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
15 more
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 74
- 2024Base of RoPE Bounds Context Lengthcited by 52
- 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47
- 2023Approximation-Generalization Trade-offs under (Approximate) Group Equivariancecited by 46
- 2023Explaining How Transformers Use Context to Build Predictionscited by 43
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 38
- 2023Understanding Addition in Transformerscited by 34
- 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
- 2024One-layer transformers fail to solve the induction heads taskcited by 32
- 2022On the Strong Correlation Between Model Invariance and Generalizationcited by 23
- 2023Attention Lens: A Tool for Mechanistically Interpreting the Attention Head Information Retrieval Mechanismcited by 22
- 2024One-Layer Transformer Provably Learns One-Nearest Neighbor In Contextcited by 16
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
- 2024Local to Global: Learning Dynamics and Effect of Initialization for Transformerscited by 11
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Seeing to Generalize: How Visual Data Corrects Binding Shortcutscited by 4
- 2026Modern Transformers Are Implicit Hybrids: From Functional Differentiation to Principled Hybrid Architecture Designcited by 3
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalizationcited by 1
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoderscited by 0
- 2026Fingerprint, Not Blueprint: How Positional Schemes Set the Default Spectral Algebra of Attentioncited by 0
- 2026Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrievalcited by 0
- 2026Shifting Mechanisms: How Positional Encoding Choice Shapes In-Context Retrieval29 Sep 2026
- 2026Modern Transformers Are Implicit Hybrids: From Functional Differentiation to Principled Hybrid Architecture Design2 Sep 2026
- 2026Fingerprint, Not Blueprint: How Positional Schemes Set the Default Spectral Algebra of Attention7 Jul 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders28 May 2026
- 2026Seeing to Generalize: How Visual Data Corrects Binding Shortcuts16 Feb 2026