Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Study
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Large decoder-only language models (LMs) can be largely improved in terms of perplexity by retrieval (e.g., RETRO), but its impact on text generation quality and downstream task accuracy is unclear. Thus, it is still an open question: shall we pretrain large autoregressive LMs with retrieval? To answer it, we perform a comprehensive study on a scalable pre-trained retrieval-augmented LM (i.e., RETRO) compared with standard GPT and retrieval-augmented GPT incorporated at fine-tuning or inference stages. We first provide the recipe to reproduce RETRO up to 9.5B parameters while retrieving a text corpus with 330B tokens. Based on that, we have the following novel findings: i) RETRO outperforms GPT on text generation with much less degeneration (i.e., repetition), moderately higher factual accuracy, and slightly lower toxicity with a nontoxic retrieval database. ii) On the LM Evaluation Harness benchmark, RETRO largely outperforms GPT on knowledge-intensive tasks, but is on par with GPT on other tasks. Furthermore, we introduce a simple variant of the model, RETRO++, which largely improves open-domain QA results of original RETRO (e.g., EM score +8.6 on Natural Question) and significantly outperforms retrieval-augmented GPT in both fine-tuning and zero-shot evaluation settings. Our findings highlight the promising direction of pretraining autoregressive LMs with retrieval as future foundation models. We release our code and model at: https://github.com/NVIDIA/Megatron-LM/blob/main/tools/retro/README.md
Key facts. Cited by 63 papers in the map (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 47 of its 70 references that are in the map. First posted on arXiv 13 Apr 2023.
Builds on
47 of 70 references.
Closest ancestors · 3
Same direction, newest first
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Models5 Aug
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
- 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb
Other references · 44
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
32 more
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 692
- 2019ELI5: Long Form Question Answeringcited by 575
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 397
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2021Internet-Augmented Dialogue Generationcited by 217
- 2022Factuality Enhanced Language Models for Open-Ended Text Generationcited by 202
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2022SODA: Million-scale Dialogue Distillation with Social Commonsense Contextualizationcited by 168
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
- 2021Investigating the Effect of Natural Language Explanations on Out-of-Distribution Generalization in Few-shot NLIcited by 7
Built on by
Citing papers per year: 2023: 13; 2024: 32; 2025: 11; 2026: 7.
63 papers.
Sort:
By area:
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 452
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 206
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 86
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 71
- 2024Factuality of Large Language Models: A Surveycited by 66
38 more
- 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 56
- 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 55
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
- 2024Memory3: Language Modeling with Explicit Memorycited by 40
- 2023RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Modelscited by 37
- 2023Interactive Natural Language Processingcited by 31
- 2023Information Retrieval Meets Large Language Models: A Strategic Report from Chinese IR Communitycited by 29
- 2023A Comprehensive Evaluation of Large Language Models on Legal Judgment Predictioncited by 28
- 2024Privacy Preserving Prompt Engineering: A Surveycited by 25
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attributioncited by 25
- 2024Retrieval Augmented Fact Verification by Synthesizing Contrastive Argumentscited by 25
- 2024Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMscited by 24
- 2024RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Recordscited by 21
- 2024On Mitigating Code LLM Hallucinations with API Documentationcited by 21
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
- 2023Citation: A Key to Building Responsible and Accountable Large Language Modelscited by 20
- 2023Trainable Transformer in Transformercited by 17
- 2024EVEDIT: Event-based Knowledge Editing with Deductive Editing Boundariescited by 16
- 2024RichRAG: Crafting Rich Responses for Multi-faceted Queries in Retrieval-Augmented Generationcited by 16
- 2025Shifting from Ranking to Set Selection for Retrieval Augmented Generationcited by 15
- 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inferencecited by 12
- 2024On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Modelscited by 10
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2025Single-Pass Document Scanning for Question Answeringcited by 6
- 2024GPT vs RETRO: Exploring the Intersection of Retrieval and Parameter-Efficient Fine-Tuningcited by 5
- 2025ImpRAG: Retrieval-Augmented Generation with Implicit Queriescited by 5
- 2026MemoryLLM: Plug-n-Play Interpretable Feed-Forward Memory for Transformerscited by 5
- 2024Supportiveness-based Knowledge Rewriting for Retrieval-augmented Language Modelingcited by 4
- 2024Multi-Modal Retrieval For Large Language Model Based Speech Recognitioncited by 4
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compressioncited by 4
- 2025DYNAMAX: Dynamic computing for Transformers and Mamba based architecturescited by 3
- 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Promptscited by 3
- 2024More Room for Language: Investigating the Effect of Retrieval on Language Modelscited by 2
- 2024Data-Centric AI in the Age of Large Language Modelscited by 2
- 2024FlashBack: Efficient Retrieval-Augmented Language Modeling for Fast Inferencecited by 1
- 2024Retrieval-augmented code completion for local projects using large language modelscited by 1
50 most cited of 63 All 63 (JSON)
- 2026Same Agent, Different Answers: A Repeat-Aware Audit of Corpus-Induced Answer Churn in Retrieval-Augmented QA24 Aug 2026
- 2026Conditional Memory Enhanced Item Representation for Generative Recommendation12 May 2026
- 2026TIDE: Every Layer Knows the Token Beneath the Context7 May 2026
- 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Prompts1 Apr 2026
- 2026RAG without Forgetting: Continual Query-Infused Key Memory5 Feb 2026
- 2026MemoryLLM: Plug-n-Play Interpretable Feed-Forward Memory for Transformers30 Jan 2026
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models12 Jan 2026
- 2025Laser: Governing Long-Horizon Agentic Search via Structured Protocol and Context Register23 Dec 2025
- 2025Memory as Resonance: A Biomimetic Architecture for Infinite Context Memory on Ergodic Phonetic Manifolds23 Dec 2025
- 2025The Road of Adaptive AI for Precision in Cybersecurity5 Dec 2025
- 2025Retrieval-Constrained Decoding Reveals Underestimated Parametric Knowledge in Language Models27 Sep 2025
- 2025Depth-Sequence Transformer (DST) for Segment-Specific ICA Calcification Mapping on Non-Contrast CT10 Jul 2025
38 more
- 2025Shifting from Ranking to Set Selection for Retrieval Augmented Generation9 Jul 2025
- 2025ImpRAG: Retrieval-Augmented Generation with Implicit Queries2 Jun 2025
- 2025Studying the Role of Input-Neighbor Overlap in Retrieval-Augmented Language Models Training Efficiency20 May 2025
- 2025DYNAMAX: Dynamic computing for Transformers and Mamba based architectures29 Apr 2025
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2024PECAN: LLM-Guided Dynamic Progress Control with Attention-Guided Hierarchical Weighted Graph for Long-Document QA7 Oct 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024Retro-li: Small-Scale Retrieval Augmented Generation Supporting Noisy Similarity Searches and Domain Shift Generalization12 Sep 2024
- 2024You Only Use Reactive Attention Slice For Long Context Retrieval3 Sep 2024
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression28 Aug 2024
- 2024Retrieval-augmented code completion for local projects using large language models9 Aug 2024
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilities19 Jul 2024
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Survey18 Jul 2024
- 2024On Mitigating Code LLM Hallucinations with API Documentation13 Jul 2024
- 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastore9 Jul 2024
- 2024GPT vs RETRO: Exploring the Intersection of Retrieval and Parameter-Efficient Fine-Tuning5 Jul 2024
- 2024Memory3: Language Modeling with Explicit Memory1 Jul 2024
- 2024On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Models24 Jun 2024
- 2024Data-Centric AI in the Age of Large Language Models20 Jun 2024
- 2024RichRAG: Crafting Rich Responses for Multi-faceted Queries in Retrieval-Augmented Generation18 Jun 2024
- 2024Retrieval Augmented Fact Verification by Synthesizing Contrastive Arguments14 Jun 2024
- 2024Multi-Modal Retrieval For Large Language Model Based Speech Recognition13 Jun 2024
- 2024Supportiveness-based Knowledge Rewriting for Retrieval-augmented Language Modeling12 Jun 2024
- 2024Chain of Agents: Large Language Models Collaborating on Long-Context Tasks4 Jun 2024
- 2024Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMs4 Jun 2024
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution29 May 2024
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models10 May 2024
- 2024FlashBack: Efficient Retrieval-Augmented Language Modeling for Fast Inference7 May 2024
- 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inference23 Apr 2024
- 2024More Room for Language: Investigating the Effect of Retrieval on Language Models16 Apr 2024
- 2024Privacy Preserving Prompt Engineering: A Survey9 Apr 2024
- 2024Reliable, Adaptable, and Attributable Language Models with Retrieval5 Mar 2024
- 2024RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Records25 Feb 2024
- 2024Instruction-tuned Language Models are Better Knowledge Learners20 Feb 2024
- 2024EVEDIT: Event-based Knowledge Editing with Deductive Editing Boundaries17 Feb 2024
- 2024Factuality of Large Language Models: A Survey4 Feb 2024
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval31 Jan 2024
50 newest of 63 All 63 (JSON)
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 452
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 71
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
- 2024Memory3: Language Modeling with Explicit Memorycited by 40
- 2023RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Modelscited by 37
- 2024Retrieval Augmented Fact Verification by Synthesizing Contrastive Argumentscited by 25
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
- 2024RichRAG: Crafting Rich Responses for Multi-faceted Queries in Retrieval-Augmented Generationcited by 16
- 2025Shifting from Ranking to Set Selection for Retrieval Augmented Generationcited by 15
12 most cited of 27 All 27 (JSON)
- 2026Same Agent, Different Answers: A Repeat-Aware Audit of Corpus-Induced Answer Churn in Retrieval-Augmented QA24 Aug 2026
- 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Prompts1 Apr 2026
- 2026RAG without Forgetting: Continual Query-Infused Key Memory5 Feb 2026
- 2025Shifting from Ranking to Set Selection for Retrieval Augmented Generation9 Jul 2025
- 2025ImpRAG: Retrieval-Augmented Generation with Implicit Queries2 Jun 2025
- 2025Studying the Role of Input-Neighbor Overlap in Retrieval-Augmented Language Models Training Efficiency20 May 2025
- 2024PECAN: LLM-Guided Dynamic Progress Control with Attention-Guided Hierarchical Weighted Graph for Long-Document QA7 Oct 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024Retro-li: Small-Scale Retrieval Augmented Generation Supporting Noisy Similarity Searches and Domain Shift Generalization12 Sep 2024
- 2024You Only Use Reactive Attention Slice For Long Context Retrieval3 Sep 2024
- 2024Retrieval-augmented code completion for local projects using large language models9 Aug 2024
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilities19 Jul 2024
12 newest of 27 All 27 (JSON)
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
- 2024Factuality of Large Language Models: A Surveycited by 66
- 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 56
- 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 55
- 2023Interactive Natural Language Processingcited by 31
- 2023Information Retrieval Meets Large Language Models: A Strategic Report from Chinese IR Communitycited by 29
- 2023A Comprehensive Evaluation of Large Language Models on Legal Judgment Predictioncited by 28
- 2024Privacy Preserving Prompt Engineering: A Surveycited by 25
- 2024RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Recordscited by 21
12 most cited of 26 All 26 (JSON)
- 2026Conditional Memory Enhanced Item Representation for Generative Recommendation12 May 2026
- 2026TIDE: Every Layer Knows the Token Beneath the Context7 May 2026
- 2026MemoryLLM: Plug-n-Play Interpretable Feed-Forward Memory for Transformers30 Jan 2026
- 2025Memory as Resonance: A Biomimetic Architecture for Infinite Context Memory on Ergodic Phonetic Manifolds23 Dec 2025
- 2025The Road of Adaptive AI for Precision in Cybersecurity5 Dec 2025
- 2025Retrieval-Constrained Decoding Reveals Underestimated Parametric Knowledge in Language Models27 Sep 2025
- 2025Depth-Sequence Transformer (DST) for Segment-Specific ICA Calcification Mapping on Non-Contrast CT10 Jul 2025
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression28 Aug 2024
- 2024On Mitigating Code LLM Hallucinations with API Documentation13 Jul 2024
- 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastore9 Jul 2024
- 2024Data-Centric AI in the Age of Large Language Models20 Jun 2024
12 newest of 26 All 26 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024A Comprehensive Survey of Accelerated Generation Techniques in Large Language Models
- 2024Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding
- 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models
- 2023On the Generalization Ability of Retrieval-Enhanced Transformers
- 2024RetroLLM: Empowering Large Language Models to Retrieve Fine-grained Evidence within Generation
- 2025Machine-generated text detection prevents language model collapse
- 2026To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrieval
- 2023Benchmarking Large Language Models in Retrieval-Augmented Generation