Preprint
Large Language Models

Retrieval-augmented generation for knowledge-intensive nlp tasks

January 1, 2020

0

Citations

0

Influential Citations

Venue

2020

Year

Abstract

… pre-trained, parametric-memory generation models with a non-parametric memory through a general-purpose fine-tuning approach which we refer to as retrieval-augmented generation …

Analysis

Why This Paper Matters

This paper, published in 2020, addresses a critical limitation of pre-trained language models: their reliance on parametric memory alone, which is fixed at training time and can become outdated or incomplete. By introducing retrieval-augmented generation (RAG), the authors propose a hybrid architecture that combines a parametric generator with a non-parametric memory (a dense retriever). This allows the model to access and incorporate external knowledge at inference time, significantly improving performance on knowledge-intensive tasks such as open-domain question answering.

The significance of RAG lies in its generality and simplicity. It provides a single fine-tuning approach that can be applied to a variety of NLP tasks without task-specific architectural changes. This contrasts with prior work that often required specialized models for each task. RAG's success demonstrated that retrieval and generation can be effectively integrated into a single trainable system, paving the way for a new class of models that are more adaptable and knowledge-rich.

Technical Contributions

  • Hybrid Memory Architecture: RAG combines a pre-trained seq2seq model (BART) as the parametric generator with a dense retriever (DPR) as the non-parametric memory. The retriever is trained to fetch relevant documents, and the generator conditions on both the input and the retrieved documents.
  • End-to-End Fine-Tuning: The entire system is fine-tuned jointly, allowing the retriever and generator to adapt to each other and the target task. This is a key innovation over prior pipeline approaches.
  • Two Decoding Strategies: The paper explores two methods for generating output with retrieved documents: (1) marginalizing over all retrieved documents (RAG-Sequence) and (2) using a single document per token (RAG-Token). These strategies offer trade-offs between performance and computational cost.
  • General-Purpose Framework: RAG is not limited to a single task; it is evaluated on open-domain QA, abstractive QA, and fact verification, showing broad applicability.

Results

While the abstract does not provide specific numbers, the paper reports state-of-the-art results on several knowledge-intensive benchmarks. For open-domain question answering, RAG outperforms parametric-only models (e.g., T5) and prior retrieval-based methods. On the Natural Questions and TriviaQA datasets, RAG achieves higher exact match scores than previous models. Additionally, RAG shows strong performance on abstractive QA and fact verification tasks, demonstrating its versatility.

The key result is that combining retrieval with generation yields substantial gains over purely parametric models, especially when the knowledge required is not well-covered in the model's parameters. This highlights the importance of non-parametric memory for knowledge-intensive tasks.

Significance

RAG has had a profound impact on the field of NLP. It introduced a practical and effective way to augment language models with external knowledge, addressing a major weakness of pre-trained models. The approach has inspired numerous follow-up works, including retrieval-augmented models for dialogue, code generation, and multimodal tasks. RAG also laid the groundwork for later developments like Atlas, REALM, and RETRO, which further refined the integration of retrieval and generation.

Moreover, RAG's design has influenced how practitioners build AI systems that require up-to-date or domain-specific knowledge, as it allows models to be updated without retraining by simply changing the retrieval corpus. This has implications for real-world applications where knowledge changes frequently. Overall, RAG is a seminal paper that has shaped the trajectory of research in knowledge-intensive NLP and remains highly relevant today.