Lost in the Middle at Birth: An Exact Theory of Transformer Position Bias
Not on the map. Why?
Abstract (arXiv)
The ``Lost in the Middle'' phenomenon -- a U-shaped performance curve where LLMs retrieve well from the beginning and end of a context but fail in the middle -- is widely attributed to learned Softmax artifacts or the distance-decay of positional encodings like RoPE. This paper makes a single, precise claim: the U-shape is already present at initialization, before any training or positional encoding takes effect. It is an inherent geometric property of the causal decoder with residual connections. We model multi-layer causal attention as iterated powers of the Ces`aro matrix and derive the exact closed-form influence density in the continuous limit. Causal masking forces a logarithmic divergence of gradient influence at the start of the prompt (the Primacy Tail), while residual connections create an isolated O(1) anchor at the final token (the Recency Delta). Between these extremes lies a factorial dead zone of order O(1/(H-1)!), where H is the network depth, making middle-context retrieval and training structurally hostile. We validate empirically that untrained Qwen2 and GPT-2 architectures exhibit this U-shape at Step~0, and that it is identical with or without RoPE. Comparing initialized and pretrained networks, we show that standard training does not overcome the topological valley, confirming that the U-shape persists as an architectural baseline under standard pretraining objectives. We do not claim that this bias is insurmountable, nor that interventions such as RoPE modifications are useless. We establish what the baseline is and where it comes from, so that future efforts to overcome it can be precisely targeted.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 8 of its 11 references that are in the map. First posted on arXiv 10 Mar 2026.
Builds on
8 of 11 references.
References · 8
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2016Exponential expressivity in deep neural networks through transient chaoscited by 261
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
- 2025On the Emergence of Position Bias in Transformerscited by 59
- 2026A Structural Theory of Position Bias in Transformerscited by 5
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026AMEL: Accumulated Message Effects on LLM Judgmentscited by 1
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenoncited by 0
- 2026An Adjoint-Sensitivity Framework for Lost-in-the-Middle Phenomena in Causal Residual Transformerscited by 0
- 2026RIFT: Token Influence Follows the Path of Least Resistancecited by 0
- 2026RIFT: Token Influence Follows the Path of Least Resistance12 Oct 2026
- 2026An Adjoint-Sensitivity Framework for Lost-in-the-Middle Phenomena in Causal Residual Transformers20 Jul 2026
- 2026AMEL: Accumulated Message Effects on LLM Judgments21 May 2026
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenon9 May 2026