arXiv:2608.29307cs.CLAug 2026

Manuscript Offprint

arXiv:2608.29307

Detecting and Repairing Hallucinations in Retrieval-Augmented Generation

Sai Krishna Reddy Mulakkayala, Niki van Stein, Aske Plaat

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sai Krishna Reddy Mulakkayala 1^{1}, Niki van Stein 1^{1}, and Aske Plaat 1^{1}

LIACS, Leiden University, Leiden, The Netherlands

mulakkayalasaikrishnareddy@gmail.com

n.van.stein@liacs.leidenuniv.nl

aske.plaat@gmail.com

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.

Keywords: Retrieval-augmented generation · Hallucination detection · Claim-level repair · Parameter-efficient fine-tuning · LLM-based evaluation

1 Introduction

When a language model answers a question about a document, the answer is usually fluent, on topic and mostly correct. The difficulty is the remainder. A date, a figure or a causal link may appear in the answer without appearing in the document, and nothing in the writing marks it out. Retrieval-augmented generation (RAG) was introduced to reduce exactly this [8]: a retrieval component supplies relevant passages and the model writes while looking at them. Grounding lowers the rate of invented content without removing it [13]. As these systems move

S. K. R. Mulakkayala et al.

into search assistants and enterprise tools, that residual rate matters, because the reader cannot audit which sentence came from the source.

Research on this failure has concentrated on finding the unsupported statements. That is necessary but not sufficient: a flagged answer is still a faulty answer until something acts on the flag. What the system should then do is a separate question, and the options are not equivalent. Deleting the offending statement is safe and discards information. Replacing it with source text stays close to the evidence but can read awkwardly. Asking the model to rewrite it keeps most of the answer and creates a fresh opportunity to be wrong. Little evidence exists on how these choices compare, and this paper supplies some.

The repair process studied here operates one claim at a time, where a claim is a single factual statement extracted from the answer, so that a correction can target the unsupported part of a sentence rather than the whole sentence. We work on RAGTruth [13], which provides span-level hallucination annotations across question answering, summarisation and data-to-text generation.

We evaluate detector stability 1^{1} and a claim-level repair pipeline. Flagged answers are decomposed into atomic claims, each claim is checked against the retrieved source, and unsupported claims are either removed, replaced by source text, or rewritten. We measure judged grounding together with claim and text retention.

We ask three research questions.

RQ1 Across repeated same-family adapter training, does the 13B detector reliably outperform the 7B detector?

RQ2 How do removal-only, extractive and generative repair differ in judged hallucination and content retention?

RQ3 How far do the repair conclusions depend on the automatic judge that measures them?