The Missing Positional Story in LLMs: A Case Study of Shift-Invariant Attention
Abstract
Rotary positional embeddings (RoPE) are now the dominant positional mechanism in modern large language models. By construction, RoPE provides a channel for shift-invariant (SI) attention: head logits can depend purely on token offset rather than absolute position. We show that trained models exploit this SI structure in ways that matter for their predictions. This exploitation is load-bearing under intervention: kernel ablations produce systematic degradation that tracks group-average SI strength under converging controls, including when kernels and rankings are frozen before evaluation on another corpus. SI structure also appears in models trained with absolute positional encodings, establishing that it is not exclusive to RoPE without identifying its causal origins. SI-related structure is also functionally meaningful: removing high-SI head outputs strongly disrupts offset-structured retrieval, while kernel subtraction produces model-dependent target-probability changes in natural-text contexts, most consistently in Llama and Mistral. These natural-text results measure probability sensitivity rather than successful long-context retrieval. At the same time, our results motivate a deeper question: is the SI channel currently underutilized? Many computations are position-invariant by nature—recognizing that a pattern holds regardless of where it appears in context—yet our evidence primarily characterizes narrow positional and surface tasks, leaving richer semantic invariances open. Strikingly, mean SI scores vary 6.5-fold across the three primary models and approximately 140-fold across eleven models spanning seven architecture families under the stated scoring conventions. These descriptive differences motivate testing how training shapes SI use, while architecture, data, and preprocessing remain confounded. This suggests a practical hypothesis for future work: pretraining pressure toward semantic invariance tasks may encourage models to exploit SI channels for richer computation.