Post-training an LLM for RAG? Train on Self-Generated Demonstrations
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Large language models (LLMs) often struggle with knowledge intensive NLP tasks, such as answering "Who won the latest World Cup?" because the knowledge they learn during training may be insufficient or outdated. Conditioning generation on retrieved documents -- a technique known as retrieval augmented generation (RAG) -- mitigates these shortcomings by allowing the model to leverage in-context information. Practitioners can improve LLM RAG performance by fine-tuning on retrieval-augmented instructions, but must beware that this can cause undesirable model behaviors like hallucinations. We attribute this degradation to the fact that the training data is likely to be out-of-distribution for the model and may suffer from quality issues, such as misalignment between retrievals and target responses (since retrievals are frequently added post-hoc). We propose a recipe for training RAG-enabled LLMs using self-generated demonstrations, thereby avoiding training on out-of-distribution text and integrating retrievals into the LLM responses. We evaluate our method on knowledge intensive question answering (QA) tasks and show that our method teaches LLMs to properly handle in-context retrievals and abstain from questions it will likely get wrong. Compared to conventional RA-IT methods, our method prevents model degradation in non-RAG settings while exhibiting superior QA performance.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 20 of its 26 references that are in the map. First posted on arXiv 14 Feb 2025.
Builds on
20 of 26 references.
References · 20
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,375
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 792
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2019ELI5: Long Form Question Answeringcited by 575
- 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
8 more
- 2017Zero-Shot Relation Extraction via Reading Comprehensioncited by 426
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 318
- 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 195
- 2024Distilling System 2 into System 1cited by 159
- 2023How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrievalcited by 118
- 2023System 2 Attention (is something you might need too)cited by 89
- 2024Unfamiliar Finetuning Examples Control How Language Models Hallucinatecited by 87
- 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 79
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models
- 2025SKILL-RAG: Self-Knowledge Induced Learning and Filtering for Retrieval-Augmented Generation
- 2024Unsupervised Information Refinement Training of Large Language Models for Retrieval-Augmented Generation
- 2025When Retrieval Succeeds and Fails: Rethinking Retrieval-Augmented Generation for LLMs
- 2025Tuning LLMs by RAG Principles: Towards LLM-native Memory
- 2025Systematic Knowledge Injection into Large Language Models via Diverse Augmentation for Domain-Specific RAG
- 2024A Survey on Retrieval-Augmented Text Generation for Large Language Models