Generator-Retriever-Generator Approach for Open-Domain Question Answering

Abdelrahman Abdallah, Adam Jatowt
7/21/2023
cs.CL

Official code: abdoelsayed2016/GRG (10 stars, last commit 2023-09-25).

Abstract

Open-domain question answering (QA) tasks usually require the retrieval of relevant information from a large corpus to generate accurate answers. We propose a novel approach called Generator-Retriever-Generator (GRG) that combines document retrieval techniques with a large language model (LLM), by first prompting the model to generate contextual documents based on a given question. In parallel, a dual-encoder network retrieves documents that are relevant to the question from an external corpus. The generated and retrieved documents are then passed to the second LLM, which generates the final answer. By combining document retrieval and LLM generation, our approach addresses the challenges of open-domain QA, such as generating informative and contextually relevant answers. GRG outperforms the state-of-the-art generate-then-read and retrieve-then-read pipelines (GENREAD and RFiD) improving their performance by at least by +5.2, +4.2, and +1.6 on TriviaQA, NQ, and WebQ datasets, respectively. We provide code, datasets, and checkpoints at https://github.com/abdoelsayed2016/GRG.

View on arXivView PDF

Code Implementations(1)

Official PyTorch implementation of "Generate-Retrieve-Generate: A Novel Approach to Open-Domain Question Answering"

100PythonJun 16, 20233 years ago

Similar Papers

Cite this paper

@article{abdallah2023generatorretrievergenerator,
  title  = {Generator-Retriever-Generator Approach for Open-Domain Question Answering},
  author = {Abdelrahman Abdallah and Adam Jatowt},
  year   = {2023},
  eprint = {2307.11278},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.11278v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.11278.svg)](https://codeofpaper.com/paper/2307.11278)

Discussion