TRAQ: Trustworthy Retrieval Augmented Question Answering via Conformal Prediction

Shuo Li, Sangdon Park, Insup Lee, Osbert Bastani
7/7/2023
39 citations
cs.CLcs.AI
rag

Official code: shuoli90/TRAQ (8 stars, Jupyter Notebook, last commit 2024-03-25).

Abstract

When applied to open-domain question answering, large language models (LLMs) frequently generate incorrect responses based on made-up facts, which are called $\textit{hallucinations}$. Retrieval augmented generation (RAG) is a promising strategy to avoid hallucinations, but it does not provide guarantees on its correctness.

Show full abstract

To address this challenge, we propose the Trustworthy Retrieval Augmented Question Answering, or $\textit{TRAQ}$, which provides the first end-to-end statistical correctness guarantee for RAG. TRAQ uses conformal prediction, a statistical technique for constructing prediction sets that are guaranteed to contain the semantically correct response with high probability. Additionally, TRAQ leverages Bayesian optimization to minimize the size of the constructed sets. In an extensive experimental evaluation, we demonstrate that TRAQ provides the desired correctness guarantee while reducing prediction set size by 16.2% on average compared to an ablation. The implementation is available at $\href{https://github.com/shuoli90/TRAQ.git}{TRAQ}$.

View on arXivView PDF

Code Implementations(1)

shuoli90/TRAQOfficial100%
81Jupyter Notebook, PythonSep 7, 20232 years ago

Similar Papers

Cite this paper

@article{li2023traq,
  title  = {TRAQ: Trustworthy Retrieval Augmented Question Answering via Conformal Prediction},
  author = {Shuo Li and Sangdon Park and Insup Lee and Osbert Bastani},
  year   = {2023},
  eprint = {2307.04642},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.04642v2}
}

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

Discussion