mlsanityData to 7 Oct 2026

Eliciting In-context Retrieval and Reasoning for Long-context Large Language Models

arXiv 2501.08248 ↗First posted 14 Jan 2025cs.CL cs.AI cs.IRcited by 11

On the map: LLM reasoning → Reasoning benchmarks and evaluation

also in 1 more
Abstract (arXiv)

Recent advancements in long-context language models (LCLMs) promise to transform Retrieval-Augmented Generation (RAG) by simplifying pipelines. With their expanded context windows, LCLMs can process entire knowledge bases and perform retrieval and reasoning directly -- a capability we define as In-Context Retrieval and Reasoning (ICR^2). However, existing benchmarks like LOFT often overestimate LCLM performance by providing overly simplified contexts. To address this, we introduce ICR^2, a benchmark that evaluates LCLMs in more realistic scenarios by including confounding passages retrieved with strong retrievers. We then propose three methods to enhance LCLM performance: (1) retrieve-then-generate fine-tuning, (2) retrieval-attention-probing, which uses attention heads to filter and de-noise long contexts during decoding, and (3) joint retrieval head training alongside the generation head. Our evaluation of five well-known LCLMs on LOFT and ICR^2 demonstrates significant gains with our best approach applied to Mistral-7B: +17 and +15 points by Exact Match on LOFT, and +13 and +2 points on ICR^2, compared to vanilla RAG and supervised fine-tuning, respectively. It even outperforms GPT-4-Turbo on most tasks despite being a much smaller model.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 42 of its 52 references that are in the map. First posted on arXiv 14 Jan 2025.

Builds on

42 of 52 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answering4 Oct

Other references · 41

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  4. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  5. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2024Qwen2 Technical Reportcited by 2,076
  9. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  11. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
  12. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
29 more
  1. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  2. 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
  3. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
  4. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  5. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  6. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
  7. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
  8. 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
  9. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
  10. 2024LongVILA: Scaling Long-Context Visual Language Models for Long Videoscited by 303
  11. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  12. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  13. 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
  14. 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 258
  15. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  16. 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
  17. 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
  18. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
  19. 2023A Simple LLM Framework for Long-Range Video Question-Answeringcited by 176
  20. 2022Distilling Reasoning Capabilities into Smaller Language Modelscited by 155
  21. 2023Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answeringcited by 150
  22. 2023VideoDirectorGPT: Consistent Multi-scene Video Generation via LLM-Guided Planningcited by 138
  23. 2024Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QAcited by 121
  24. 2024Loong: Generating Minute-level Long Videos with Autoregressive Language Modelscited by 99
  25. 2019Scalable Zero-shot Entity Linking with Dense Entity Retrievalcited by 85
  26. 2024FABLES: Evaluating faithfulness and content selection in book-length summarizationcited by 65
  27. 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
  28. 2023Detecting and Mitigating Hallucinations in Multilingual Summarisationcited by 48
  29. 2024LongAgent: Scaling Language Models to 128k Context through Multi-Agent Collaborationcited by 38

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 5.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Long-context Language Models Fail in Basic Retrieval Tasks Without Sufficient Reasoning Steps
  2. 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
  3. 2024LongRAG: A Dual-Perspective Retrieval-Augmented Generation Paradigm for Long-Context Question Answering
  4. 2023Retrieval meets Long Context Large Language Models
  5. 2025Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding
  6. 2024ACER: Automatic Language Model Context Extension via Retrieval
  7. 2024Retrieval Meets Reasoning: Dynamic In-Context Editing for Long-Text Understanding
  8. 2025Can LLMs reason over extended multilingual contexts? Towards long-context evaluation beyond retrieval and haystacks