RoPE breaks down in long contexts, formal proof shows position-token indistinguishability
A new preprint proves that Rotary Positional Embeddings lose locality bias and token-relevance consistency as context grows, with failure probability approaching 0.5—no better than chance.

Rotary Positional Embeddings (RoPE), the positional encoding scheme used in most modern long-context language models from Llama to Qwen to Mistral, breaks down mathematically as context length increases. Researchers at Argonne National Laboratory and Amazon have published a formal proof showing that RoPE-based attention loses two core properties central to its effectiveness, with failure probability approaching 0.5—indistinguishable from random guessing.
The proof establishes two collapse modes. First, RoPE loses its locality bias: the attention mechanism stops favoring nearby tokens over distant ones. A model querying position 500 in a 100k-token context becomes no more likely to attend to position 501 than to position 80,000. Second, RoPE loses consistency in token relevance. A key vector that scores higher attention than an alternative at one position may score lower at another position, even though the query and keys haven't changed. The analysis further demonstrates that attention scores can remain unchanged when a key token is moved to a different position or replaced by an entirely different token—a failure mode the authors call "position-token indistinguishability."
Base hyperparameter tradeoff
Increasing the RoPE base hyperparameter—a standard trick for extending context in production models—helps the attention layer distinguish different tokens but sacrifices the ability to distinguish positions. The paper proves this is not a tuning problem but a fundamental constraint: RoPE cannot preserve both properties simultaneously in long contexts. Empirical tests confirm that multi-head and multi-layer architectures do not rescue RoPE from these limits. The findings suggest that Transformer-based long-context models may need a fundamentally different positional encoding mechanism to overcome these intrinsic limitations.