Learning to Filter Context for Retrieval-Augmented Generation

Zhiruo Wang, Jun Araki, Zhengbao Jiang, Md Rizwan Parvez, Graham Neubig
11/14/2023
cs.CLcs.AI

No official code found. Best implementation: zorazrw/filco (199 stars, CC-BY-SA-4.0, last commit 2024-04-06).

Abstract

On-the-fly retrieval of relevant knowledge has proven an essential element of reliable systems for tasks such as open-domain question answering and fact verification. However, because retrieval systems are not perfect, generation models are required to generate outputs given partially or entirely irrelevant passages. This can cause over- or under-reliance on context, and result in problems in the generated output such as hallucinations. To alleviate these problems, we propose FILCO, a method that improves the quality of the context provided to the generator by (1) identifying useful context based on lexical and information-theoretic approaches, and (2) training context filtering models that can filter retrieved contexts at test time. We experiment on six knowledge-intensive tasks with FLAN-T5 and LLaMa2, and demonstrate that our method outperforms existing approaches on extractive question answering (QA), complex multi-hop and long-form QA, fact verification, and dialog generation tasks. FILCO effectively improves the quality of context, whether or not it supports the canonical output.

View on arXivView PDF

Code Implementations(1)

zorazrw/filcoCommunity100%
CC-BY-SA-4.0

[Preprint] Learning to Filter Context for Retrieval-Augmented Generaton

19920PythonNov 14, 20232 years agoCC-BY-SA-4.0
dialog-generationfact-verificationflan-t5llama2question-answering+1 more

Cite this paper

@article{wang2023learning,
  title  = {Learning to Filter Context for Retrieval-Augmented Generation},
  author = {Zhiruo Wang and Jun Araki and Zhengbao Jiang and Md Rizwan Parvez and Graham Neubig},
  year   = {2023},
  eprint = {2311.08377},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.08377v1}
}

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/2311.08377.svg)](https://codeofpaper.com/paper/2311.08377)

Discussion