mlsanityData to 14 Oct 2026

DoubleDipper: Improving Long-Context LLMs via Context Recycling

arXiv 2406.13632 ↗First posted 19 Jun 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Despite recent advancements in Large Language Models (LLMs), their performance on tasks involving long contexts remains sub-optimal. In this work, we propose DoubleDipper, a novel In-Context-Learning method that automatically generates few-shot examples for long context QA tasks by recycling contexts. Specifically, given a long input context (1-3k tokens) and a query, we generate additional query-output pairs from the given context as few-shot examples, while introducing the context only once. This ensures that the demonstrations are leveraging the same context as the target query while only adding a small number of tokens to the prompt. We further enhance each demonstration by instructing the model to explicitly identify the relevant paragraphs before the answer, which improves performance while providing fine-grained attribution to the answer source. We apply our method on multiple LLMs and obtain substantial improvements (+16 absolute points on average across models) on various QA datasets with long context. Surprisingly, despite introducing only single-hop ICL examples, LLMs successfully generalize to multi-hop long-context QA using our approach.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 32 of its 47 references that are in the map. First posted on arXiv 19 Jun 2024.

Builds on

32 of 47 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  5. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  7. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  8. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  9. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  10. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  11. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
  12. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
20 more
  1. 2023Enabling Large Language Models to Generate Text with Citationscited by 595
  2. 2023Evaluating Verifiability in Generative Search Enginescited by 303
  3. 2022Teaching language models to support answers with verified quotescited by 292
  4. 2020Transformers as Soft Reasoners over Languagecited by 270
  5. 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
  6. 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 202
  7. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 176
  8. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  9. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
  10. 2023Large Language Models as Analogical Reasonerscited by 107
  11. 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 70
  12. 2023Large Language Models Can be Lazy Learners: Analyze Shortcuts in In-Context Learningcited by 69
  13. 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
  14. 2024Attribute First, then Generate: Locally-attributable Grounded Text Generationcited by 54
  15. 2023Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrationscited by 42
  16. 2023Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Trainingcited by 32
  17. 2024Learning to Plan and Generate Text with Citationscited by 28
  18. 2021Long Context Question Answering via Supervised Contrastive Learningcited by 17
  19. 2023LongDocFACTScore: Evaluating the Factuality of Long Document Abstractive Summarisationcited by 16
  20. 2023Are Human-generated Demonstrations Necessary for In-context Learning?cited by 11

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.