Skip to main content
QUICK REVIEW

[Paper Review] Improving the Domain Adaptation of Retrieval Augmented Generation (RAG) Models for Open Domain Question Answering

Shamane Siriwardhana, Rivindu Weerasekera|arXiv (Cornell University)|Oct 6, 2022
Topic ModelingComputer Science10 citations
TL;DR

This paper proposes RAG-end2end, a joint training framework that fine-tunes both the retriever and generator components of Retrieval-Augmented Generation (RAG) models using domain-specific knowledge bases, along with an auxiliary reconstruction signal to inject domain-specific knowledge. The method significantly improves performance across three domains—COVID-19, news, and conversations—outperforming the original RAG model in both retrieval and answer generation tasks.

ABSTRACT

Retrieval Augment Generation (RAG) is a recent advancement in Open-Domain Question Answering (ODQA). RAG has only been trained and explored with a Wikipedia-based external knowledge base and is not optimized for use in other specialized domains such as healthcare and news. In this paper, we evaluate the impact of joint training of the retriever and generator components of RAG for the task of domain adaptation in ODQA. We propose extit{RAG-end2end}, an extension to RAG, that can adapt to a domain-specific knowledge base by updating all components of the external knowledge base during training. In addition, we introduce an auxiliary training signal to inject more domain-specific knowledge. This auxiliary signal forces extit{RAG-end2end} to reconstruct a given sentence by accessing the relevant information from the external knowledge base. Our novel contribution is unlike RAG, RAG-end2end does joint training of the retriever and generator for the end QA task and domain adaptation. We evaluate our approach with datasets from three domains: COVID-19, News, and Conversations, and achieve significant performance improvements compared to the original RAG model. Our work has been open-sourced through the Huggingface Transformers library, attesting to our work's credibility and technical consistency.

Motivation & Objective

  • To address the limited domain adaptability of RAG models, which are primarily trained on Wikipedia and underperform on specialized domains like healthcare and news.
  • To investigate whether joint fine-tuning of the retriever and generator components improves performance in domain-specific open-domain question answering (ODQA).
  • To evaluate the impact of an auxiliary training signal that forces the model to reconstruct sentences from retrieved domain-specific passages.
  • To demonstrate that updating the external knowledge base embeddings during training leads to better generalization and reduced performance degradation compared to fixed encodings.

Proposed method

  • Proposes RAG-end2end, an end-to-end training framework that jointly fine-tunes the dense passage retriever (DPR), the generator (BART), and the external knowledge base embeddings during training.
  • Introduces a reconstruction auxiliary signal that trains the model to generate a factual sentence from a set of retrieved passages, enhancing domain-specific knowledge learning.
  • Uses domain-specific knowledge bases (e.g., COVID-19 research papers, news articles, conversational data) and splits them into 100-word passages for retrieval.
  • Employs asynchronous updates to the knowledge base encodings during training, avoiding the need for re-encoding the entire corpus after each update.
  • Trains the model end-to-end using question-answer pairs and retrieved passages, eliminating the need for synthetic QA pairs.
  • Leverages the Hugging Face Transformers library for open-source implementation, ensuring reproducibility and community adoption.

Experimental results

Research questions

  • RQ1Does joint fine-tuning of the retriever and generator components improve domain adaptation in RAG models for non-Wikipedia domains?
  • RQ2How does the inclusion of a sentence reconstruction auxiliary signal affect the performance of the retriever and generator in domain-specific ODQA?
  • RQ3What is the impact of updating the knowledge base encodings during training compared to keeping them frozen?
  • RQ4Can RAG-end2end generalize across diverse domains such as news, conversational data, and scientific research (e.g., COVID-19) with consistent performance gains?
  • RQ5Does end-to-end training improve performance even on in-domain datasets like SQuAD, where the original RAG is already pre-trained on Wikipedia?

Key findings

  • RAG-end2end achieves a 11.9-point absolute improvement in exact match (EM) score (from 28.12 to 40.02) and a 13.21-point increase in F1 score (from 39.42 to 52.63) on the SQuAD dataset compared to the original RAG.
  • On the COVID-19 dataset, RAG-end2end significantly outperforms the original RAG, demonstrating superior performance in scientific question answering with domain-specific knowledge.
  • The auxiliary reconstruction signal improves both retriever performance and final answer generation accuracy across all evaluated domains.
  • Joint training of the retriever and generator leads to better performance than fine-tuning the DPR retriever independently, highlighting the importance of end-to-end optimization.
  • Updating the knowledge base encodings during training prevents performance degradation and enhances domain adaptation, especially when the knowledge base is not Wikipedia-based.
  • The method generalizes well across diverse domains, showing consistent improvements in retrieval (Top-5 and Top-20) and generation (EM, F1) metrics on news, conversations, and biomedical datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.