Saved in:
Bibliographic Details
Main Authors: Urrutia, Felipe, Salas, Jorge, Kozachinskiy, Alexander, Calderon, Cristian Buc, Pasten, Hector, Rojas, Cristobal
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.11579
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917080551391232
author Urrutia, Felipe
Salas, Jorge
Kozachinskiy, Alexander
Calderon, Cristian Buc
Pasten, Hector
Rojas, Cristobal
author_facet Urrutia, Felipe
Salas, Jorge
Kozachinskiy, Alexander
Calderon, Cristian Buc
Pasten, Hector
Rojas, Cristobal
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2511_11579
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Decoupling Positional and Symbolic Attention Behavior in Transformers
Urrutia, Felipe
Salas, Jorge
Kozachinskiy, Alexander
Calderon, Cristian Buc
Pasten, Hector
Rojas, Cristobal
Machine Learning
Artificial Intelligence
Computation and Language
03D78
I.2.0; F.1.0
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.
title Decoupling Positional and Symbolic Attention Behavior in Transformers
topic Machine Learning
Artificial Intelligence
Computation and Language
03D78
I.2.0; F.1.0
url https://arxiv.org/abs/2511.11579