mlsanityData to 14 Oct 2026

Lost in the Evidence? Reproducing Document Position and Context Size Effects in RAG

arXiv 2605.27105 ↗First posted 26 May 2026cs.IRcited by 1

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

Retrieval-Augmented Generation (RAG) systems rely on retrieved documents being concatenated into a model's input context, making both document ordering and context size critical yet controversial design choices. Prior work reports position-based effects such as lost in the middle and related long-context phenomena. However, empirical findings remain inconsistent and hard to reproduce across models, datasets, and evaluation protocols. In this paper, we present a systematic reproducibility study that revisits these claims and examines how they evolve with contemporary LLMs under a controlled evaluation framework. We first show that topic sampling is a major source of variance: small topic sets can mask or exaggerate ordering effects. Based on repeated subset sampling across multiple topic budgets, we provide a practical calibration procedure that identifies topic counts yielding stable trends at feasible cost. Using these fixed topic sets, we then reproduce and extend results on position sensitivity, re-evaluating lost in the middle and positional biases in modern LLMs. Then, we also study a more realistic RAG scenario in which relevance is mediated by a retriever rather than oracle access to ground-truth documents. In this setting, we re-examine a recent industry study and identify discrepancies to evaluation choices such as limited topic coverage and reliance on LLM-based judges. Finally, we conduct an analysis of how retrieval order and context size affect downstream LLM performance under imperfect retrieval. Our results demonstrate that both factors interact strongly with retrieval quality and model choice, and that conclusions drawn from idealised setups do not always transfer to real-world RAG pipelines. We release all code and configurations to support reproducibility and future work on robust RAG evaluation.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 13 of its 21 references that are in the map. First posted on arXiv 26 May 2026.

Builds on

13 of 21 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Is Relevance Propagated from Retriever to Generator in RAG?20 Feb
  2. 2024Evaluation of Retrieval-Augmented Generation: A Survey13 May

Other references · 11

  1. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  2. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
  5. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
  6. 2019Passage Re-ranking with BERTcited by 645
  7. 2019Quantifying the Carbon Emissions of Machine Learningcited by 521
  8. 2020AmbigQA: Answering Ambiguous Open-domain Questionscited by 390
  9. 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 372
  10. 2024In Defense of RAG in the Era of Long-Context Language Modelscited by 53
  11. 2025The Distracting Effect: Understanding Irrelevant Passages in RAGcited by 33

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Do RAG Systems Really Suffer From Positional Bias?
  2. 2024Long Context RAG Performance of Large Language Models
  3. 2025Less LLM, More Documents: Searching for Improved RAG
  4. 2025Grounding Long-Context Reasoning with Contextual Normalization for Retrieval-Augmented Generation
  5. 2025Stronger Baselines for Retrieval-Augmented Generation with Long-Context Language Models
  6. 2025Dynamic Context Selection for Retrieval-Augmented Generation: Mitigating Distractors and Positional Bias
  7. 2025More Documents, Same Length: Isolating the Challenge of Multiple Documents in RAG
  8. 2025Are We on the Right Way for Assessing Document Retrieval-Augmented Generation?