Eliciting In-context Retrieval and Reasoning for Long-context Large Language Models
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
Other references · 41
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2024Qwen2 Technical Reportcited by 2,076
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
29 more
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
- 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
- 2024LongVILA: Scaling Long-Context Visual Language Models for Long Videoscited by 303
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 258
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
- 2023A Simple LLM Framework for Long-Range Video Question-Answeringcited by 176
- 2022Distilling Reasoning Capabilities into Smaller Language Modelscited by 155
- 2023Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answeringcited by 150
- 2023VideoDirectorGPT: Consistent Multi-scene Video Generation via LLM-Guided Planningcited by 138
- 2024Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QAcited by 121
- 2024Loong: Generating Minute-level Long Videos with Autoregressive Language Modelscited by 99
- 2019Scalable Zero-shot Entity Linking with Dense Entity Retrievalcited by 85
- 2024FABLES: Evaluating faithfulness and content selection in book-length summarizationcited by 65
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
- 2023Detecting and Mitigating Hallucinations in Multilingual Summarisationcited by 48
- 2024LongAgent: Scaling Language Models to 128k Context through Multi-Agent Collaborationcited by 38
Built on by
Citing papers per year: 2025: 6; 2026: 5.
11 papers.
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2025Positional Biases Shift as Inputs Approach Context Window Limitscited by 9
- 2025A Controllable Examination for Long-Context Language Modelscited by 7
- 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capabilitycited by 4
- 2025PERK: Long-Context Reasoning as Test-Time Learningcited by 4
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scalecited by 2
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understandingcited by 1
- 2026Exploring Fine-Tuning for In-Context Retrieval and Efficient KV-Caching in Long-Context Language Modelscited by 1
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answeringcited by 0
- 2026Rethinking Contextualization by Reinterpreting Attention Head Channelscited by 0
- 2026Rethinking Contextualization by Reinterpreting Attention Head Channels27 Sep 2026
- 2026Can Language Models Actually Retrieve In-Context? Drowning in Documents at Million Token Scale1 Jul 2026
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answering5 Jun 2026
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models25 Feb 2026
- 2026Exploring Fine-Tuning for In-Context Retrieval and Efficient KV-Caching in Long-Context Language Models26 Jan 2026
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrieval6 Oct 2025
- 2025Positional Biases Shift as Inputs Approach Context Window Limits10 Aug 2025
- 2025Beyond Isolated Capabilities: Bridging Long CoT Reasoning and Long-Context Understanding20 Jul 2025
- 2025PERK: Long-Context Reasoning as Test-Time Learning8 Jul 2025
- 2025A Controllable Examination for Long-Context Language Models3 Jun 2025
- 2025CAFE: Retrieval Head-based Coarse-to-Fine Information Seeking to Enhance Multi-Document QA Capability15 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Long-context Language Models Fail in Basic Retrieval Tasks Without Sufficient Reasoning Steps
- 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
- 2024LongRAG: A Dual-Perspective Retrieval-Augmented Generation Paradigm for Long-Context Question Answering
- 2023Retrieval meets Long Context Large Language Models
- 2025Beyond RAG vs. Long-Context: Learning Distraction-Aware Retrieval for Efficient Knowledge Grounding
- 2024ACER: Automatic Language Model Context Extension via Retrieval
- 2024Retrieval Meets Reasoning: Dynamic In-Context Editing for Long-Text Understanding
- 2025Can LLMs reason over extended multilingual contexts? Towards long-context evaluation beyond retrieval and haystacks