paper-with-me

홈 › Papers

Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization

2026-05-29 · Felipe Urrutia, Juan José Alegría, Cinthia Sanchez Macias, Jorge Salas, Cristian B. Calderon, Cristobal Rojas arxiv

Transformer-based language models are widespread in today's society. As such, understanding the mechanisms by which they solve structured tasks and predicting how they may behave in novel scenarios is of great importance for safe deployment. We study the learning dynamics of attention heads in a controlled setting by training a decoder-only Transformer (GPT-J) on two structurally equivalent multi-hop reasoning tasks: a number task requiring positional reasoning and a letter task requiring symbolic reasoning. Using a recently introduced metric that classifies attention-head behavior as positional or symbolic for a given prompt, we show that successful learning is associated with the emergence of pure heads, i.e., heads that express themselves as either positional or symbolic. Despite the tasks' structural equivalence, they impose different mechanistic demands: the number task requires both positional and symbolic heads, whereas the letter task requires only symbolic heads. We then identify the computational roles of these heads, characterize the basic functions they implement, and give theoretical constructions showing how single-layer RoPE-based attention can realize these functions through geometrically interpretable query, key, and value operations. This analysis yields a quantitative separation between positional and symbolic mechanisms in their robustness to longer sequences, formalized through a novel notion of discrepancy. We empirically validate the resulting predictions in both controlled and real-world models, showing that symbolic mechanisms extrapolate more reliably to longer sequences while positional mechanisms face sharper limitations.

📄 PDF Abstract BibTeX arXiv:2605.31558

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Decoupling Positional and Symbolic Attention Behavior in Transformers

2025-10-03 · Felipe Urrutia, Jorge Salas, Alexander Kozachinskiy, Cristian Buc Calderon 외 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 t…

Interpretable-by-Design Transformers via Architectural Stream Independence

2026-03-08 · Clayton Kerce, Alexis Fox arxiv

While transformers achieve strong performance, their internal decision-making processes remain opaque. We investigate whether architectural constraints can enforce interpretability by design through architectural stream …

Dynamic MOdularized Reasoning for Compositional Structured Explanation Generation

2023-09-14 · Xiyan Fu, Anette Frank

Despite the success of neural models in solving reasoning tasks, their compositional generalization capabilities remain unclear. In this work, we propose a new setting of the structured explanation generation task to fac…

Explanation Generation

Attention as Binding: A Vector-Symbolic Perspective on Transformer Reasoning

2025-12-08 · Sahil Rajesh Dhayalkar arxiv

Transformer-based language models display impressive reasoning-like behavior, yet remain brittle on tasks that require stable symbolic manipulation. This paper develops a unified perspective on these phenomena by interpr…

Scaling Laws for State Dynamics in Large Language Models

2025-05-20 · Jacob X Li, Shreyas S Raman, Jessica Wan, Fahad Samman 외

Large Language Models (LLMs) are increasingly used in tasks requiring internal state tracking, yet their ability to model state transition dynamics remains poorly understood. We evaluate how well LLMs capture determinist…