Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMs
Not on the map. Why?
Abstract (arXiv)
The performance of Large Language Models (LLMs) often degrades when crucial information is in the middle of a long context, a "lost-in-the-middle" phenomenon that mirrors the primacy and recency effects in human memory. We propose that this behavior is not simply a flaw indicative of information loss but an adaptation to different information retrieval demands during pre-training: some tasks require uniform recall across the entire input (a long-term memory demand), while others prioritize the most recent information (a short-term memory demand). Consistent with this view, we show that this U-shaped performance curve emerges when LLMs (GPT-2 and Llama variants) are trained from scratch on two simple human memory paradigms simulating long-term and short-term memory demands. Our analysis reveals that while the recency effect directly aligns with short-term memory demand in the training data, the primacy effect is induced by the uniform long-term memory demand and is additionally influenced by the model's autoregressive properties and the formation of attention sinks. Our main findings from simple human memory paradigms also generalize to a sequence completion task, which more closely resembles the next-token prediction process in LLM pre-training. Together, our findings reveal how information retrieval demands, model architecture, and structural attention dynamics during model training can jointly produce positional bias observed in LLMs.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 16 of its 31 references that are in the map. First posted on arXiv 11 Oct 2025.
Builds on
16 of 31 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
- 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
- 2025On the Emergence of Position Bias in Transformerscited by 59
4 more
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 56
- 2024Serial Position Effects of Large Language Modelscited by 30
- 2023Aspects of human memory and Large Language Modelscited by 12
- 2025Positional Biases Shift as Inputs Approach Context Window Limitscited by 9
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026Attention Sink in Transformers: A Survey on Utilization, Interpretation, and Mitigationcited by 11
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 9
- 2026A Structural Theory of Position Bias in Transformerscited by 5
- 2026Robust Reasoning Benchmarkcited by 3
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 2
- 2026Layer-wise Positional Bias in Short-Context Language Modelingcited by 1
- 2026Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigationcited by 1
- 2026Reducing Redundancy in Retrieval-Augmented Generation through Chunk Filteringcited by 1
- 2026It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attentioncited by 0
- 2026It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attention8 Sep 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026Reducing Redundancy in Retrieval-Augmented Generation through Chunk Filtering27 Apr 2026
- 2026Attention Sink in Transformers: A Survey on Utilization, Interpretation, and Mitigation11 Apr 2026
- 2026Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigation28 Mar 2026
- 2026Robust Reasoning Benchmark26 Mar 2026
- 2026A Structural Theory of Position Bias in Transformers18 Feb 2026
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agent2 Feb 2026
- 2026Layer-wise Positional Bias in Short-Context Language Modeling7 Jan 2026