Post-training an LLM for RAG? Train on Self-Generated Demonstrations

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Finlayson, Matthew, Kulikov, Ilia, Bikel, Daniel M., Oguz, Barlas, Chen, Xilun, Pappu, Aasish
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910851555917824
author Finlayson, Matthew
Kulikov, Ilia
Bikel, Daniel M.
Oguz, Barlas
Chen, Xilun
Pappu, Aasish
author_facet Finlayson, Matthew
Kulikov, Ilia
Bikel, Daniel M.
Oguz, Barlas
Chen, Xilun
Pappu, Aasish
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_10596
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Post-training an LLM for RAG? Train on Self-Generated Demonstrations
Finlayson, Matthew
Kulikov, Ilia
Bikel, Daniel M.
Oguz, Barlas
Chen, Xilun
Pappu, Aasish
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Post-training an LLM for RAG? Train on Self-Generated Demonstrations
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.10596