The Missing Positional Story in LLMs: A Case Study of Shift-Invariant Attention
Benjamin Huh, Hak Hyun Kim, Yuting Tian, Jason Peng, Christopher Kang, Soroush Vosoughi
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Transformer In-Context Learning · Type: empirical study · Keywords: shift-invariant attention, large language models, positional embeddings, attention analysis, semantic invariance
Areas: LLM Reasoning › Efficient Reasoning › Attention Mechanisms
Summary
The paper demonstrates that large language models actively exploit a shift-invariant channel in attention, showing that this exploitation varies widely across models and is underused for richer semantic invariances.
Explained to a 5-year-old
Big computer programs called language models try to understand words. They have a special way to notice if a word appears later or earlier in a sentence. The researchers found that these models actually use this special noticing a lot. They also discovered that the models use this noticing more for simple tricks than for understanding deeper meanings. This helps us think about how to make the models smarter in the future.
Explained to a 5-year-old, longer
Language models are computer programs that read and write text. They have a hidden ability to tell if a word is the same no matter where it appears. The researchers looked at many big language models and saw that they use this ability a lot. They found that when they hide this ability, the models make more mistakes. The mistakes happen especially when the model needs to remember things that appear later in a text. Some models, like Llama and Mistral, rely on this ability more than others. The study also showed that the models use this ability mostly for simple tricks, not for deep understanding. This means there might be a way to teach models to use this ability for better thinking. By training models to notice patterns regardless of position, they could become more useful. The research gives clues about how to make future language models smarter. It also tells us that the way models are trained changes how they use this special skill. Overall, the work helps us understand how computers can learn to see patterns anywhere in text.
For a technical reader
The paper investigates how large language models exploit a shift-invariant channel in attention, which allows head logits to depend on token offset rather than absolute position. By systematically ablating this channel across eleven models from seven families, the authors quantify per-head SI amplitude and observe systematic degradation in tasks that require offset-structured retrieval. The results show that SI exploitation varies over sixfold, is most pronounced in Llama and Mistral, and appears even when absolute positional encodings are used, indicating learned computation. The analysis suggests that current models underutilize SI for richer semantic invariances and proposes that pretraining toward semantic invariance tasks could steer models to use SI more effectively. This work provides empirical evidence that the degree of SI usage is a trainable property, offering a practical direction for improving long-context reasoning in LLMs.
Problem
It is unclear how much LLMs utilize the shift-invariant channel inherent in attention mechanisms and whether this channel is used for broader semantic invariance tasks.
Method
The authors conduct shift-invariant (SI) ablations across eleven models from seven architecture families, quantify per-head SI amplitude, and compare degradation patterns to assess how shift-invariant channels are exploited.
Results
The analysis finds that SI exploitation amplitude varies over sixfold across models, that SI ablations cause systematic degradation especially in offset-structured retrieval, and that Llama and Mistral show the strongest effects, indicating trainable SI usage.
Contributions
A systematic analysis revealing that LLMs actively exploit shift-invariant attention channels, that this exploitation is trainable and varies widely, and that current models underutilize SI for richer semantic invariances.
Practical relevance
The findings suggest a direction for improving LLMs by encouraging semantic invariance during pretraining, potentially enhancing long-context reasoning.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction