mlsanityData to 14 Oct 2026

Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Study

arXiv 2304.06762 ↗First posted 13 Apr 2023cs.CL cs.AI cs.IRcited by 63

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

  1. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Models5 Aug
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks22 May
  3. 2020REALM: Retrieval-Augmented Language Model Pre-Training10 Feb

Other references · 44

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2023GPT-4 Technical Reportcited by 18,396
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  7. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  9. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  10. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  11. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  12. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
32 more
  1. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  2. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  3. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  4. 2017Billion-scale similarity search with GPUscited by 2,497
  5. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  6. 2019Language Models as Knowledge Bases?cited by 1,936
  7. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
  8. 2021Improving language models by retrieving from trillions of tokenscited by 1,293
  9. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  10. 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
  11. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
  12. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
  13. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  14. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  15. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 861
  16. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  17. 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
  18. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  19. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
  20. 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 692
  21. 2019ELI5: Long Form Question Answeringcited by 575
  22. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
  23. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
  24. 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 397
  25. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
  26. 2021Internet-Augmented Dialogue Generationcited by 217
  27. 2022Factuality Enhanced Language Models for Open-Ended Text Generationcited by 202
  28. 2021Challenges in Detoxifying Language Modelscited by 169
  29. 2022SODA: Million-scale Dialogue Distillation with Social Commonsense Contextualizationcited by 168
  30. 2021Adaptive Semiparametric Language Modelscited by 83
  31. 2018Guiding Neural Machine Translation with Retrieved Translation Piecescited by 63
  32. 2021Investigating the Effect of Natural Language Explanations on Out-of-Distribution Generalization in Few-shot NLIcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 13; 2024: 32; 2025: 11; 2026: 7.

63 papers.

Sort:

By area:

  1. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  2. 2023A Comprehensive Overview of Large Language Modelscited by 648
  3. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
  4. 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 452
  5. 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 365
  6. 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 206
  7. 2023Retrieval meets Long Context Large Language Modelscited by 115
  8. 2023Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Surveycited by 92
  9. 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 86
  10. 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
  11. 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 71
  12. 2024Factuality of Large Language Models: A Surveycited by 66
38 more
  1. 2024Scaling Retrieval-Based Language Models with a Trillion-Token Datastorecited by 56
  2. 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 55
  3. 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
  4. 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
  5. 2024Memory3: Language Modeling with Explicit Memorycited by 40
  6. 2023RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Modelscited by 37
  7. 2023Interactive Natural Language Processingcited by 31
  8. 2023Information Retrieval Meets Large Language Models: A Strategic Report from Chinese IR Communitycited by 29
  9. 2023A Comprehensive Evaluation of Large Language Models on Legal Judgment Predictioncited by 28
  10. 2024Privacy Preserving Prompt Engineering: A Surveycited by 25
  11. 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attributioncited by 25
  12. 2024Retrieval Augmented Fact Verification by Synthesizing Contrastive Argumentscited by 25
  13. 2024Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMscited by 24
  14. 2024RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Recordscited by 21
  15. 2024On Mitigating Code LLM Hallucinations with API Documentationcited by 21
  16. 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
  17. 2023Citation: A Key to Building Responsible and Accountable Large Language Modelscited by 20
  18. 2023Trainable Transformer in Transformercited by 17
  19. 2024EVEDIT: Event-based Knowledge Editing with Deductive Editing Boundariescited by 16
  20. 2024RichRAG: Crafting Rich Responses for Multi-faceted Queries in Retrieval-Augmented Generationcited by 16
  21. 2025Shifting from Ranking to Set Selection for Retrieval Augmented Generationcited by 15
  22. 2024XC-Cache: Cross-Attending to Cached Context for Efficient LLM Inferencecited by 12
  23. 2024On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Modelscited by 10
  24. 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
  25. 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
  26. 2025Single-Pass Document Scanning for Question Answeringcited by 6
  27. 2024GPT vs RETRO: Exploring the Intersection of Retrieval and Parameter-Efficient Fine-Tuningcited by 5
  28. 2025ImpRAG: Retrieval-Augmented Generation with Implicit Queriescited by 5
  29. 2026MemoryLLM: Plug-n-Play Interpretable Feed-Forward Memory for Transformerscited by 5
  30. 2024Supportiveness-based Knowledge Rewriting for Retrieval-augmented Language Modelingcited by 4
  31. 2024Multi-Modal Retrieval For Large Language Model Based Speech Recognitioncited by 4
  32. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compressioncited by 4
  33. 2025DYNAMAX: Dynamic computing for Transformers and Mamba based architecturescited by 3
  34. 2026Experience as a Compass: Multi-agent RAG with Evolving Orchestration and Agent Promptscited by 3
  35. 2024More Room for Language: Investigating the Effect of Retrieval on Language Modelscited by 2
  36. 2024Data-Centric AI in the Age of Large Language Modelscited by 2
  37. 2024FlashBack: Efficient Retrieval-Augmented Language Modeling for Fast Inferencecited by 1
  38. 2024Retrieval-augmented code completion for local projects using large language modelscited by 1

50 most cited of 63 All 63 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024A Comprehensive Survey of Accelerated Generation Techniques in Large Language Models
  2. 2024Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding
  3. 2024When Linear Attention Meets Autoregressive Decoding: Towards More Effective and Efficient Linearized Large Language Models
  4. 2023On the Generalization Ability of Retrieval-Enhanced Transformers
  5. 2024RetroLLM: Empowering Large Language Models to Retrieve Fine-grained Evidence within Generation
  6. 2025Machine-generated text detection prevents language model collapse
  7. 2026To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrieval
  8. 2023Benchmarking Large Language Models in Retrieval-Augmented Generation