mlsanityData to 7 Oct 2026

ACER: Automatic Language Model Context Extension via Retrieval

arXiv 2410.09141 ↗First posted 11 Oct 2024cs.CL cs.AI cs.IRcited by 0

Not on the map. Why?

Abstract (arXiv)

Long-context modeling is one of the critical capabilities of language AI for digesting and reasoning over complex information pieces. In practice, long-context capabilities are typically built into a pre-trained language model~(LM) through a carefully designed context extension stage, with the goal of producing generalist long-context capabilities. In our preliminary experiments, however, we discovered that the current open-weight generalist long-context models are still lacking in practical long-context processing tasks. While this means perfectly effective long-context modeling demands task-specific data, the cost can be prohibitive. In this paper, we draw inspiration from how humans process a large body of information: a lossy retrieval stage ranks a large set of documents while the reader ends up reading deeply only the top candidates. We build an automatic data synthesis pipeline that mimics this process using short-context LMs. The short-context LMs are further tuned using these self-generated data to obtain task-specific long-context capabilities. Similar to how pre-training learns from imperfect data, we hypothesize and further demonstrate that the short-context model can bootstrap over the synthetic data, outperforming not only long-context generalist models but also the retrieval and read pipeline used to synthesize the training data in real-world tasks such as long-context retrieval augmented generation.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 48 of its 62 references that are in the map. First posted on arXiv 11 Oct 2024.

Builds on

48 of 62 references.

References · 48

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2017Proximal Policy Optimization Algorithmscited by 14,441
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  9. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  10. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  11. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  12. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
36 more
  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2020Longformer: The Long-Document Transformercited by 3,362
  7. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  9. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  11. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  12. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
  13. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  14. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  15. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  16. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  17. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  18. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  19. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
  20. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  21. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
  22. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
  23. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  24. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  25. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
  26. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  27. 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
  28. 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
  29. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
  30. 2020Answering Complex Open-Domain Questions with Multi-Hop Dense Retrievalcited by 160
  31. 2024RQ-RAG: Learning to Refine Queries for Retrieval Augmented Generationcited by 144
  32. 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 109
  33. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
  34. 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 104
  35. 2022Recitation-Augmented Language Modelscited by 65
  36. 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2023Retrieval meets Long Context Large Language Models
  2. 2025Generalizing From Short to Long: Effective Data Synthesis for Long-Context Instruction Tuning
  3. 2025A Survey on Transformer Context Extension: Approaches and Evaluation
  4. 2026Understanding Axes of Difficulty For Long Context Tasks Via PredicateLongBench
  5. 2022Parallel Context Windows for Large Language Models
  6. 2025Eliciting In-context Retrieval and Reasoning for Long-context Large Language Models
  7. 2024Large Language Models Can Self-Improve in Long-context Reasoning
  8. 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing