Preprint · 2025 · Open access

Context Length Alone Hurts LLM Performance Despite Perfect Retrieval

Yufeng Du, Minyang Tian, Srikanth Ronanki, Subendhu Rongali, Sravan Bodapati, Aram Galstyan, Wells, Azton, Roy Schwartz, Eliu A. Huerta, Peng, Hao

arXiv · Published 6 October 2025 · DOI 10.48550/arxiv.2510.05381

Open PDFView at the publisherCite this paper

In brief

“Context Length Alone Hurts LLM Performance Despite Perfect Retrieval” is a 2025 preprint by Yufeng Du and 9 co-authors, published in arXiv. OpenAlex counts 131 citations as of 25 November 2026. It is open access under a CC BY licence: the full text is free to read at arXiv.

Citations
131
Most cited in
2026 (123)
References
62
Authors
10

Abstract

Large language models (LLMs) often fail to scale their performance on long-context tasks performance in line with the context lengths they support. This gap is commonly attributed to retrieval failures -- the models' inability to identify relevant information in the long inputs. Accordingly, recent efforts often focus on evaluating and improving LLMs' retrieval performance: if retrieval is perfect, a model should, in principle, perform just as well on a long input as it does on a short one -- or should it? This paper presents findings that the answer to this question may be negative. Our systematic experiments across 5 open- and closed-source LLMs on math, question answering, and coding tasks reveal that, even when models can perfectly retrieve all relevant information, their performance still degrades substantially (13.9%--85%) as input length increases but remains well within the models' claimed lengths. This failure occurs even when the irrelevant tokens are replaced with minimally distracting whitespace, and, more surprisingly, when they are all masked and the models are forced to attend only to the relevant tokens. A similar performance drop is observed when all relevant evidence is placed immediately before the question. Our findings reveal a previously-unrealized limitation: the sheer length of the input alone can hurt LLM performance, independent of retrieval quality and without any distraction. They motivate our simple, model-agnostic mitigation strategy that transforms a long-context task into a short-context one by prompting the model to recite the retrieved evidence before attempting to solve the problem. On RULER, we observe a consistent improvement of GPT-4o up to 4% on an already strong baseline.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Du, Y., Tian, M., Ronanki, S., Rongali, S., Bodapati, S., Galstyan, A., Azton, W., Schwartz, R., Huerta, E. A., & Hao, P. (2025). Context Length Alone Hurts LLM Performance Despite Perfect Retrieval. arXiv. https://doi.org/10.48550/arxiv.2510.05381

MLA 9

Du, Yufeng, et al. “Context Length Alone Hurts LLM Performance Despite Perfect Retrieval.” arXiv, 2025. https://doi.org/10.48550/arxiv.2510.05381.

Chicago

Du, Yufeng, Minyang Tian, Srikanth Ronanki, Subendhu Rongali, Sravan Bodapati, Aram Galstyan, Wells, Azton, Roy Schwartz, Eliu A. Huerta, and Peng, Hao. 2025. “Context Length Alone Hurts LLM Performance Despite Perfect Retrieval.” arXiv. https://doi.org/10.48550/arxiv.2510.05381.

Harvard

Du, Y. et al. (2025) ‘Context Length Alone Hurts LLM Performance Despite Perfect Retrieval’, arXiv. doi:10.48550/arxiv.2510.05381.

IEEE

Y. Du et al., “Context Length Alone Hurts LLM Performance Despite Perfect Retrieval,” arXiv, 2025, doi: 10.48550/arxiv.2510.05381.

BibTeX

@misc{du2025context,
  title     = {{Context Length Alone Hurts LLM Performance Despite Perfect Retrieval}},
  author    = {Du, Yufeng and Tian, Minyang and Ronanki, Srikanth and Rongali, Subendhu and Bodapati, Sravan and Galstyan, Aram and Azton, Wells, and Schwartz, Roy and Huerta, Eliu A. and Hao, Peng,},
  howpublished = {arXiv},
  year      = {2025},
  doi       = {10.48550/arxiv.2510.05381},
  url       = {https://doi.org/10.48550/arxiv.2510.05381}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling

  • large language models
  • context length
  • retrieval-augmented generation
  • prompt engineering
  • mathematical problem solving
  • question answering
  • code generation
  • GPT-4o

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Du, Y., Tian, M., Ronanki, S., Rongali, S., Bodapati, S., Galstyan, A., Azton, W., Schwartz, R., Huerta, E. A., & Hao, P. (2025). Context Length Alone Hurts LLM Performance Despite Perfect Retrieval. arXiv. https://doi.org/10.48550/arxiv.2510.05381

How many times has this paper been cited?

131 times, according to OpenAlex on 25 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Yufeng Du, Minyang Tian, Srikanth Ronanki, Subendhu Rongali, Sravan Bodapati, Aram Galstyan, Wells, Azton, Roy Schwartz, Eliu A. Huerta, Peng, Hao.

What is the DOI of this paper?

10.48550/arxiv.2510.05381, permanently at https://doi.org/10.48550/arxiv.2510.05381. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 25 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.