NeurIPS 2026QuestionsPapersAreasAboutMarkdown

The Cost of Absolute Position: A Spread-Expressivity Tradeoff for Additive Positional Encodings

Noah Mitchell, Isaac Gabriel, Alexander Wyatt

NeurIPS page · OpenReview · Open on the map

Category: Interpretability & Model Adaptation › Transformer In-Context Reasoning · Type: theory · Keywords: positional encoding, spread-expressivity tradeoff, length generalization, transformer, theoretical analysis

Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Attention Geometry

Summary

The paper defines positional spread as a measure of additive positional encodings and proves a spread-expressivity tradeoff, showing how spread affects length generalization and absolute position discrimination in transformers.

Explained to a 5-year-old

When a computer reads words, it needs to know the order. If we give it a number for each position, too big numbers can make it forget how to handle longer sentences. The paper finds a rule that tells us how big those numbers should be so the computer can still remember order and handle new lengths. It checks this rule with simple games. And also with big puzzles.

Explained to a 5-year-old, longer

A computer program that reads sentences needs to know which word comes first, second, and so on. 2) Without any numbers, the program treats all words the same, so it cannot tell the difference between "the cat chased the dog" and "the dog chased the cat." 3) To fix this, researchers add a special number for each position in the sentence. 4) However, if those numbers are too large, the program can become confused when it sees a longer sentence it has never seen before. 5) The paper introduces a new idea called positional spread, which measures how varied those position numbers are. 6) By studying how spread changes, the authors discover a rule that explains when the program will remember order well and when it will struggle with new lengths. 7) They prove mathematically that a certain amount of spread is needed to tell apart positions, but too much spread hurts the ability to handle longer sequences. 8) The team tests this rule using simple made-up tasks that act like tiny puzzles. 9) They also run experiments on harder tasks that involve retrieving information from long passages and answering questions about them. 10) The experiments show that when the spread is low, the program works better on new, longer sentences if the task does not care much about exact positions. 11) When the task really needs to know exact positions, the same low spread actually makes the program worse, confirming the predicted trade-off. 12) Finally, they compare the findings to other popular position methods like RoPE and ALiBi, showing where the new theory works and where it has limits.

For a technical reader

We quantify positional spread in additive PE and derive theoretical bounds linking spread to equivariance breaking risk. Empirical results on synthetic and long-context tasks confirm that spread predicts OOD accuracy for low-sensitivity tasks and exhibits a non-monotonic effect for absolute-position tasks. The analysis also extends to score-based PE, highlighting the reach and limits of the spread theory.

Problem

How does the amount of spread in additive positional encodings affect a transformer’s ability to generalize to new sequence lengths while still distinguishing absolute positions?

Method

We formalize positional spread, derive upper and lower bounds linking spread to equivariance breaking risk, and prove a spread-expressivity tradeoff. We then evaluate additive PE under varying spread levels on synthetic tasks and long-context retrieval and reasoning benchmarks, and extend the analysis to score-based PE such as RoPE and ALiBi.

Results

The results confirm that spread predicts OOD accuracy on low-sensitivity tasks and reveals a non-monotonic tradeoff on absolute-position tasks, matching the theoretical predictions.

Contributions

We introduce positional spread, prove upper and lower bounds for additive PE, establish a spread-expressivity tradeoff, and empirically validate the theory on synthetic and long-context tasks, also extending the analysis to score-based PE.

Limitations and assumptions

The theoretical bounds apply to additive PE with mean pooling and may not directly extend to all PE variants; the empirical validation is limited to synthetic and long-context tasks.

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