Saved in:
Bibliographic Details
Main Authors: Huang, Yufei, Han, Xu, Sun, Maosong
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.06333
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911984654483456
author Huang, Yufei
Han, Xu
Sun, Maosong
author_facet Huang, Yufei
Han, Xu
Sun, Maosong
contents Open Domain Question Answering (ODQA) has been advancing rapidly in recent times, driven by significant developments in dense passage retrieval and pretrained language models. Current models typically incorporate the FiD framework, which is composed by a neural retriever alongside an encoder-decoder neural reader. In the answer generation process, the retriever will retrieve numerous passages (around 100 for instance), each of which is then individually encoded by the encoder. Subsequently, the decoder makes predictions based on these encoded passages. Nevertheless, this framework can be relatively time-consuming, particularly due to the extensive length of the gathered passages. To address this, we introduce FastFiD in this paper, a novel approach that executes sentence selection on the encoded passages. This aids in retaining valuable sentences while reducing the context length required for generating answers. Experiments on three commonly used datasets (Natural Questions, TriviaQA and ASQA) demonstrate that our method can enhance the inference speed by 2.3X-5.7X, while simultaneously maintaining the model's performance. Moreover, an in-depth analysis of the model's attention reveals that the selected sentences indeed hold a substantial contribution towards the final answer. The codes are publicly available at https://github.com/thunlp/FastFiD.
format Preprint
id arxiv_https___arxiv_org_abs_2408_06333
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FastFiD: Improve Inference Efficiency of Open Domain Question Answering via Sentence Selection
Huang, Yufei
Han, Xu
Sun, Maosong
Computation and Language
Open Domain Question Answering (ODQA) has been advancing rapidly in recent times, driven by significant developments in dense passage retrieval and pretrained language models. Current models typically incorporate the FiD framework, which is composed by a neural retriever alongside an encoder-decoder neural reader. In the answer generation process, the retriever will retrieve numerous passages (around 100 for instance), each of which is then individually encoded by the encoder. Subsequently, the decoder makes predictions based on these encoded passages. Nevertheless, this framework can be relatively time-consuming, particularly due to the extensive length of the gathered passages. To address this, we introduce FastFiD in this paper, a novel approach that executes sentence selection on the encoded passages. This aids in retaining valuable sentences while reducing the context length required for generating answers. Experiments on three commonly used datasets (Natural Questions, TriviaQA and ASQA) demonstrate that our method can enhance the inference speed by 2.3X-5.7X, while simultaneously maintaining the model's performance. Moreover, an in-depth analysis of the model's attention reveals that the selected sentences indeed hold a substantial contribution towards the final answer. The codes are publicly available at https://github.com/thunlp/FastFiD.
title FastFiD: Improve Inference Efficiency of Open Domain Question Answering via Sentence Selection
topic Computation and Language
url https://arxiv.org/abs/2408.06333