mlsanityData to 14 Oct 2026

Lost in the Middle: An Emergent Property from Information Retrieval Demands in LLMs

arXiv 2510.10276 ↗First posted 11 Oct 2025cs.LG q-bio.NCcited by 9

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  5. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  6. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
  7. 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
  8. 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
  9. 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
  10. 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
  11. 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 65
  12. 2025On the Emergence of Position Bias in Transformerscited by 59
4 more
  1. 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 56
  2. 2024Serial Position Effects of Large Language Modelscited by 30
  3. 2023Aspects of human memory and Large Language Modelscited by 12
  4. 2025Positional Biases Shift as Inputs Approach Context Window Limitscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 9.

9 papers.