English

Fine-tune the Entire RAG Architecture (including DPR retriever) for Question-Answering

Information Retrieval 2024-10-08 v1 Artificial Intelligence Computation and Language

Abstract

In this paper, we illustrate how to fine-tune the entire Retrieval Augment Generation (RAG) architecture in an end-to-end manner. We highlighted the main engineering challenges that needed to be addressed to achieve this objective. We also compare how end-to-end RAG architecture outperforms the original RAG architecture for the task of question answering. We have open-sourced our implementation in the HuggingFace Transformers library.

Keywords

Cite

@article{arxiv.2106.11517,
  title  = {Fine-tune the Entire RAG Architecture (including DPR retriever) for Question-Answering},
  author = {Shamane Siriwardhana and Rivindu Weerasekera and Elliott Wen and Suranga Nanayakkara},
  journal= {arXiv preprint arXiv:2106.11517},
  year   = {2024}
}

Comments

for associated code, see https://github.com/huggingface/transformers/tree/master/examples/research_projects/rag-end2end-retriever