mlsanityData to 7 Oct 2026

Can't Remember Details in Long Documents? You Need Some R&R

arXiv 2403.05004 ↗First posted 8 Mar 2024cs.CL cs.AI cs.IRcited by 10

Not on the map. Why?

Abstract (arXiv)

Long-context large language models (LLMs) hold promise for tasks such as question-answering (QA) over long documents, but they tend to miss important information in the middle of context documents (arXiv:2307.03172v3). Here, we introduce textitR&R -- a combination of two novel prompt-based methods called textitreprompting and textitin-context retrieval (ICR) -- to alleviate this effect in document-based QA. In reprompting, we repeat the prompt instructions periodically throughout the context document to remind the LLM of its original task. In ICR, rather than instructing the LLM to answer the question directly, we instruct it to retrieve the top k passage numbers most relevant to the given question, which are then used as an abbreviated context in a second QA prompt. We test R&R with GPT-4 Turbo and Claude-2.1 on documents up to 80k tokens in length and observe a 16-point boost in QA accuracy on average. Our further analysis suggests that R&R improves performance on long document-based QA because it reduces the distance between relevant context and the instructions. Finally, we show that compared to short-context chunkwise methods, R&R enables the use of larger chunks that cost fewer LLM calls and output tokens, while minimizing the drop in accuracy.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 16 of its 25 references that are in the map. First posted on arXiv 8 Mar 2024.

Builds on

16 of 25 references.

References · 16

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  7. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  9. 2020Recipes for building an open-domain chatbotcited by 593
  10. 2019Neural Text Generation with Unlikelihood Trainingcited by 489
  11. 2020Pretrained Transformers for Text Ranking: BERT and Beyondcited by 266
  12. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
4 more
  1. 2024A Human-Inspired Reading Agent with Gist Memory of Very Long Contextscited by 140
  2. 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
  3. 2023System 2 Attention (is something you might need too)cited by 85
  4. 2023PEARL: Prompting Large Language Models to Plan and Execute Actions Over Long Documentscited by 61

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 2; 2026: 2.

10 papers.