Detecting and Repairing Hallucinations in Retrieval-Augmented Generation

Computation and LanguageArtificial Intelligence

Summary

The authors studied how language models that answer questions using retrieved documents sometimes include unsupported or incorrect facts. They tested three ways to fix these problems: deleting the wrong facts, replacing them with accurate source text, or rewriting the whole answer. All three methods helped reduce unsupported content, but deletion removed the most incorrect info while rewriting kept more of the original answer. Interestingly, even answers deemed correct were often edited, showing these fixes trade off between accuracy and keeping the original text. The authors note that choosing the best fix depends on how useful the answer is, which current automated methods can’t fully measure.

Authors

Sai Krishna Reddy Mulakkayala, Niki van Stein, Aske Plaat

Abstract

Language models increasingly answer questions by consulting retrieved documents rather than memory alone, a design now common in search assistants and enterprise knowledge tools. Grounding a model in retrieved text reduces unsupported statements but does not eliminate them, and a reader cannot tell a grounded sentence from an invented one. Most research on this problem stops at detection, yet flagging a faulty answer changes nothing for the person reading it, and little is known about which action should follow. Using RAGTruth, a benchmark whose unsupported passages are annotated by hand, we split each flagged answer into individual factual claims, check each against the retrieved source, and compare leaving the answer untouched with three repair strategies of increasing richness: deleting an unsupported claim, replacing it with source text, and rewriting it. Three language models from different families judge the 916 repaired answers. Every strategy reduces the proportion of answers judged to contain unsupported content, and all three judges agree on the ordering. Deletion achieves the largest reduction while retaining least of the original answer, at 64.3% of the text, whereas rewriting retains 80.1% and reduces least. Repair is not confined to faulty answers: 83.5% of answers annotated clean are edited too. The strategies occupy different points on a grounding preservation trade-off rather than forming a quality ranking, and choosing between them needs evidence about answer usefulness that automatic metrics cannot supply.