TRAQ: Trustworthy Retrieval Augmented Question Answering via Conformal Prediction
Shuo Li, Sangdon Park, Insup Lee, Osbert Bastani
TL;DR
TRAQ addresses hallucinations in open-domain QA by pairing retrieval-augmented generation with conformal prediction to yield end-to-end probabilistic guarantees. It builds separate conformal prediction sets for retrieval and for the LLM, then aggregates them into a final output whose semantically correct answer lies in the set with probability at least $1-\alpha$, where $\alpha = \alpha_{Ret}+\alpha_{LLM}$. A novel semantic-clustering nonconformity measure enables robust uncertainty quantification across paraphrase variants and supports black-box LLMs; Bayesian optimization reduces the average prediction-set size without compromising coverage. Empirical results across Natural Questions, TriviaQA, SQuAD-1, and BioASQ show TRAQ achieves the desired coverage and reduces set size by about $16.2\%$ on average, indicating practical improvements for trustworthy RAG QA. The work delivers a principled, scalable approach to uncertainty in open-domain QA with provable guarantees and broad applicability to API-based LLMs.
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. 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}$.
