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

Noah Mitchell, Isaac Gabriel, Alexander WyattNeurIPS 2026

TL;DR

Without positional encodings, a Transformer treats a sentence like a shuffled bag of words—great for generalizing across sequence lengths, terrible for knowing who bit whom. Adding absolute position markers fixes this blindness, but often causes models to fall apart when tested on longer sequences than they saw during training. This paper uncovers the exact geometric price tag of absolute position, proving a fundamental mathematical tradeoff between a model's ability to pinpoint exact token locations and its ability to extrapolate to longer contexts.

What Problem Does This Paper Address?

At its core, bare self-attention is permutation equivariant: if you shuffle the input tokens, you get the exact same output, just shuffled in the same way. Symmetries like this are a gift for machine learning because they prevent models from overfitting to arbitrary quirks, helping them generalize to new, longer sequences.

However, language and reasoning depend on order. To break this symmetry, early Transformers used additive positional encodings (PE)—vectors added directly to token embeddings to stamp each slot with an address (1st, 2nd, 3rd, etc.). While this gives the model "expressivity" (it can now learn rules like "always look at the first token"), it notoriously ruins length generalization (training on short sequences and testing on long ones). Until now, we lacked a crisp, geometric measure explaining why and when injecting absolute position hurts or helps.

Methods

The authors tackle this mathematically and experimentally by introducing three main tools:

  • Positional Spread ($\|\widetilde{E}\|_F^2$): A new geometric metric for additive PE matrices. Formally, it is the unnormalized total variance (sum of squared deviations from the mean) of the positional vectors. Intuitively, it equals half the expected squared "displacement" of the encoding if you randomly shuffle the sequence. It measures how violently the encoding resists permutation.
  • MS-PE (Minimum-Spread PE): Rather than pitching a shiny new universal encoding to beat all benchmarks, the authors build an experimental "tuning knob." They take standard learned additive PEs and add a regularization penalty ($\lambda \|\widetilde{E}\|_F^2$) to the training loss. Cranking up $\lambda$ squeezes the spread down, letting them smoothly trace the boundary between symmetry and expressivity.
  • Score-Space Displacement: Because modern darlings like RoPE and ALiBi modify attention scores rather than adding vectors to tokens, the authors extend their symmetry-breaking math into "score space" to qualitatively compare additive and relative methods on the same conceptual axis.

Datasets

To isolate positional sensitivity without confounding factors, the authors test across three tiers of data:

  • Controlled Synthetic Tasks (trained on lengths 32–128, tested OOD up to 1,024): Set Mean (completely order-invariant), Position-Indexed Retrieval (strictly requires absolute position), and Key–Value Retrieval (relies on content matching, partially order-sensitive).
  • Long-Context Retrieval & Reasoning (RULER-inspired): Token-level tasks trained on 256–2,048 tokens and evaluated out to 16,384 tokens, including Single/Multi-Key Needle-in-a-Haystack (NIAH), Multi-Hop Variable Tracing, and Aggregation.
  • WikiText-103: Used as a supplementary, larger-scale language modeling check (detailed in their appendix).

Key Insights and Ideas

  • There is no free lunch for absolute position: The authors prove a Spread–Expressivity Tradeoff. If you want your Transformer to reliably distinguish every absolute position up to length $n$ (with a minimum separation margin $\delta$), your positional spread must grow at least linearly with sequence length: $\Omega(\delta^2 n)$.
  • Symmetry breaking directly taxes generalization: For tasks that don't care much about exact global order, excess risk (error) is directly upper-bounded by positional spread. High spread forces the model to pay an unnecessary "equivariance-breaking tax," wrecking length extrapolation.
  • Two distinct regimes of tasks: Because of this math, optimal spread depends entirely on the task. Order-insensitive tasks want spread as close to zero as possible. Absolute-position tasks exhibit a "Goldilocks" (non-monotone) curve: too much spread hurts generalization, while too little destroys the positional signal needed to do the job.
  • Why NoPE and Relative PEs shine at long context: Methods like RoPE, ALiBi, and NoPE (no positional encoding) extrapolate well on many benchmarks not by magic, but because they dodge the $\Omega(n)$ absolute-spread tax—trading away global, absolute-address lookup in favor of content matching and local offsets.

Key Results

  • Spread predicts OOD length extrapolation: Across PE families on low-position-sensitivity synthetic tasks, positional spread is a near-perfect negative predictor of out-of-distribution accuracy, hitting a Spearman correlation of $\rho = -0.981$ on Set Mean and $\rho = -0.900$ on Key–Value Retrieval.
  • Tracing the Goldilocks curve: On Position Retrieval (where exact index matters), the monotone correlation vanishes ($\rho = -0.121$). Sweeping $\lambda$ with MS-PE reveals a sharp accuracy peak at intermediate regularization ($\lambda \approx 10^{-3}$ to $10^{-2}$), confirming the predicted tradeoff.
  • Graceful long-context scaling: On 4k–16k RULER-inspired tasks (which mostly reward content matching), NoPE achieves the highest raw accuracy, while MS-PE achieves the flattest degradation slope among all position-encoded models—losing just 1.4 percentage points of accuracy per context-length doubling, outlasting sharper drops in RoPE and ALiBi.

Limitations and Future Work

The authors are refreshingly candid about the boundaries of their theory:

  • Fixed-length math vs. dynamic extrapolation: Their core risk bounds are proven for fixed sequence lengths; using them to predict train-short/test-long behavior is an empirical extrapolation, and their Lipschitz constants represent worst-case scaling trends rather than calibrated numerical forecasts.
  • Causal masking and locality: Real autoregressive LLMs use causal masks (which already break full permutation symmetry) and rely heavily on local word order, which full symmetric-group math doesn't capture.
  • Cross-family limits: For score-based methods like RoPE and ALiBi, the paper provides only a one-sided upper bound and qualitative comparison—extending the strict expressivity lower bounds to relative encodings remains an open problem.
  • Practical takeaway: Rather than blindly picking a PE, practitioners can diagnose a task's positional sensitivity by comparing NoPE against position-aware models on held-out data, tuning positional regularization on longer validation contexts rather than training loss alone.

Summary updated

Abstract

Self-attention without positional information is permutation equivariant, therefore positional encodings are required whenever a transformer must distinguish input order. However, injecting absolute position can also weaken length generalization. We formalize this tension for additive positional encodings by introducing positional spread, the unnormalized centered variance of the positional embedding matrix. For additive PE in softmax attention with mean pooling, we prove an upper bound demonstrating that the equivariance breaking component of risk is controlled by $\|\widetilde E\|_F^2$, along with a worst-case lower-bound construction for self-separable additive PEs. We finally prove a spread-expressivity tradeoff: any additive PE that distinguishes absolute positions with minimum separation $\delta$ must have spread $\Omega(\delta^2 n)$. The fixed-length analysis suggests two regimes for length extrapolation: when the target is near permutation invariant, lower spread may help; when the task requires absolute position, additional spread reduction destroys expressivity. We test this prediction using controlled synthetic tasks, spread-regularized additive PE, and long context retrieval and reasoning tasks. Across low positional sensitivity tasks, spread strongly predicts OOD accuracy; on absolute position tasks, performance demonstrates the predicted non-monotone tradeoff. For score-based methods such as RoPE and ALiBi, we give a one-sided score-space displacement bound and a qualitative comparison, without extending the additive lower bound.
BibTeX
@inproceedings{mitchell2026cost,
  author = {Noah Mitchell and Isaac Gabriel and Alexander Wyatt},
  title = {{The Cost of Absolute Position: A Spread-Expressivity Tradeoff for Additive Positional Encodings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cR4hyys307},
}
Figure