Span-Local Hallucination Repair with Vetoable Explanations

When a language model answers from retrieved documents, it usually gets most of the answer right and invents one or two details. The obvious fix is a two-model pipeline. One model flags the bad phrases and writes a short explanation of why each is unsupported. A second model rewrites the answer. The weak point of this pipeline is not missing errors; it is damaging text that was already correct. In the most direct test on record, a detect-and-repair pipeline edited 83.5% of answers that human annotators had marked as completely clean, because its verifier had a precision of only 0.401 (Detecting and Repairing Hallucinations in Retrieval-Augmented Generation). Every false flag becomes a license for the rewriter to change good text.

We propose to separate the two jobs a correction pipeline does. A flagged span, meaning the exact phrase the detector marks as unsupported, should tell the editor where it may edit; everything outside the flagged spans is frozen. The explanation should be treated as a claim the editor can reject, not as an instruction. The editor first checks the explanation against the source. If the explanation does not hold up, it leaves the span untouched. Only if it does hold up does the editor replace the span, preferably with words taken from the source. The research question is which of these two ingredients does the work, and how that answer changes as the editor grows from 7B to 72B parameters. Our hypothesis is that freezing unflagged text removes most over-repair at every scale. We expect the explanation's value to shift with scale, from telling small editors what to write toward letting large editors throw out false flags.

Core Claim

Current explanation-guided correctors condition a free rewrite on a critique. Examples are the Detect–Critique–Refine pipeline of Learning to Refine with Fine-Grained Natural Language Feedback, Error-Informed Refinement in Localizing and Mitigating Errors in Long-form Question Answering, and Re-Ex. Because the rewrite is unconstrained, a wrong critique can corrupt any part of the answer. The file names this sensitivity to noisy explanations as an open limitation of the area.

Our claim is that factual post-editing is limited mainly by how reliably the pipeline preserves correct text, and that this limit can be measured and raised at the level of individual spans. The self-correction theory of A Probabilistic Inference Scaling Theory for LLM Self-Correction gives the right accounting. We define two span-level quantities. $CL$ is the probability that a span which is correct stays correct after an editing round. $CS$ is the probability that a hallucinated span gets fixed. If a span is correct with probability $Acc_t$ after round $t$, the recursion

$$Acc_{t+1} = CL \cdot Acc_t + CS \cdot (1 - Acc_t)$$

converges at rate $CL - CS$ to the fixed point

$$Acc_\infty = \frac{CS}{1 - CL + CS}.$$

The fixed point follows by setting $Acc_{t+1} = Acc_t$. It shows that a small loss in preservation is costly. For example, $CL = 0.9$ and $CS = 0.6$ cap span accuracy near 0.86, however many editing rounds are run.

Freezing unflagged text pushes $CL$ toward 1 on everything the detector leaves alone. The veto attacks the remaining loss, which comes from false flags. Yang et al. only tested this theory on whole-answer reasoning tasks. Estimating $CL$ and $CS$ per span for each editor size, and checking whether the fixed point predicts multi-round behavior, is the analytical half of this proposal.

Research Program

Detector. The detector is a 7B span detector trained in the style of RL4HS. In Learning to Reason for Hallucination Span Detection, a Qwen2.5-7B model is trained with reinforcement learning to reason about the source before outputting spans, and it reaches 55.9 Span-F1 on RAGTruth. We modify its output format so that each predicted span carries its own short justification. That justification must quote the source passage it relies on, or state that no supporting passage exists. RL4HS supplies the method here. Its open gap, that it stops at detection and never corrects anything, is what we fill. We keep the detector fixed at 7B because the evidence says scaling detectors buys little. RL4HS-7B beat QwQ-32B and o3, and the Llama-2 7B-to-13B gain reported by Mulakkayala et al. was not statistically significant.

Editor. The editor receives three inputs: the source, the answer with flagged spans marked by delimiters, and the per-span explanations. We mark spans with delimiters because CCNU at SemEval-2025 Task 3 found delimiter marking far more precise than numeric offsets. For each span, the editor first gives a verdict on the explanation, either accept or reject. On accept, it fills the span with a replacement. Unflagged text is enforced as frozen at decoding time: the editor generates only span infills, which are spliced back into the original answer. This makes the frozen-text constraint a property of the pipeline, not a request the model might ignore.

For replacements, we add a copy preference. The editor is prompted, and in the trained variant rewarded, to fill the span with a source substring when one exists. This draws on the finding in Copy-Paste to Mitigate Large Language Model Hallucinations that hallucination rate falls as the amount of direct copying from context rises. It also partly resolves the tension the file identifies between copying and explanation: the explanation chooses which source text to copy, and copying keeps the replacement grounded.

Scale study. We run the editor at 7B, 32B and 72B within one model family (Qwen2.5), in three forms. The first is prompted only. The second is supervised on DeFacto, whose human explanations and human edits (On Improving Summarization Factual Consistency from Natural Language Feedback) provide gold accept-and-fill targets. The third is trained with reinforcement learning, rewarded jointly for resolving true hallucinations and for leaving false flags unchanged. The 72B version uses parameter-efficient tuning.

To measure the veto directly, we vary flag quality. We feed every editor gold RAGTruth spans paired with correct explanations, then detector spans, then detector spans mixed with deliberately injected false flags whose explanations sound plausible. Across these conditions we estimate span-level $CL$ and $CS$.

Baselines

The naive reference point is to leave the answer unedited. This has perfect preservation by construction and zero correction. Any method that edits clean answers must beat it on the clean subset of RAGTruth, or it has only moved errors around.

The strongest prompting competitor is direct whole-answer correction with the largest editor: a 72B model told to identify hallucinations against the source and rewrite the answer. It receives the same source and the same prompt-tuning budget as our editor, which is a fixed number of prompt variants selected on the RAGTruth development split. The file reports no RAGTruth number for this, and DCR's TofuEval one-step baseline gained 0.05 AlignScore against DCR's 0.08. We count it beaten if our 72B pipeline reaches lower residual hallucination at equal or higher preservation of clean answers.

The strongest existing repair systems are the removal-only, extractive and generative-with-gate strategies of Detecting and Repairing Hallucinations in Retrieval-Augmented Generation. We reimplement them on the same RAGTruth splits, with our detector's flags replacing their claim verifier so that detection quality is held constant. The reported reference points are 83.5% of clean answers edited, about 64% of content retained for removal-only, and about 80% for generative repair. Beating these means editing far fewer clean answers while retaining more content, with residual hallucination no worse than generative repair.

The strongest explanation-guided competitor is DCR-style unconstrained refinement (Learning to Refine with Fine-Grained Natural Language Feedback). Its refiner sees our detector's spans and explanations and rewrites freely. It is run at the same three scales with the same training data. Its reported gain is +0.08 AlignScore and a 22.10% factual-correctness improvement on TofuEval with Llama-3-8B, so we also report on TofuEval for direct comparison.

Two ablations isolate our ingredients. The first gives the editor flagged spans with no explanations. It keeps the frozen-text constraint but has no veto and no stated rationale. The second keeps the explanations but removes the veto, forcing a replacement for every flag. The detector is shared across all systems, and its RAGTruth Span-F1 is reported against RL4HS's 55.9. If our reimplementation lands lower, we say so and also report results from gold-span inputs.

Why not just…?

Why not just prompt a 72B model to fix the answer directly? Large models may diagnose well on their own. But whole-answer rewriting gives them unlimited room to change correct text, and the file's evidence on ungated pipelines points to preservation, not diagnosis, as the binding constraint. Our scale study answers this directly. If direct correction at 72B matches our pipeline on both residual hallucination and clean-answer preservation, the constraint and veto are unnecessary at frontier scale, and we will report that.

Why not just mark the spans and skip the explanation? This is the real threat. Freezing unflagged text may provide nearly all of the benefit, especially for large editors that can work out what is wrong from the source alone. Re-Ex's ablation, where removing the explanation dropped correction accuracy from 52.2% to 25.4%, argues against this. However, that result comes from GPT-3.5 with unconstrained rewriting and no span markers. The spans-only ablation settles the question at each scale. Our hypothesis is that the explanation's measurable contribution at 72B will appear mainly in the injected-false-flag condition, where rejecting bad flags is what protects preservation. If that contribution is near zero, the honest conclusion is that span markers suffice, and the proposal becomes a recommendation to drop explanations at scale.

Why not just delete flagged spans or paste in source text? Removal maximizes factuality but, per Mulakkayala et al., discards about a third of the content. Pure copy-pasting assumes the source contains a replacement, an assumption Copy-Paste to Mitigate Large Language Model Hallucinations itself notes fails when context is incomplete. Our copy-preferring infill falls back to deletion when no source text fits. Removal-only and extractive repair are run as baselines on the same flags, so the cost of fluent replacement over deletion is measured directly.

Why not just build a better detector or raise its threshold? Better precision would reduce over-repair. But detector scaling has shown small or insignificant gains, and raising the threshold trades away recall of real hallucinations. We sweep the detector threshold for every system and compare the resulting curves of preservation against residual hallucination. The veto is useful only if it beats threshold tuning at matched recall.

Proposed Experiments

The primary benchmark is RAGTruth (RAGTruth). It has span-level gold annotations and a large set of clean answers, which makes preservation directly measurable. Secondary benchmarks are TofuEval, for comparison with DCR, and DeFacto, whose human explanations provide oracle-explanation conditions. Multilingual transfer on Mu-SHROOM is optional.

We measure the following. Residual hallucination is judged by a detector from a different model family than ours, plus a 300-answer human audit using the RAGTruth guidelines. Clean-answer preservation is the fraction of human-clean answers left byte-identical. We also report content retention, span-level $CL$ and $CS$, and veto accuracy on injected false flags.

The first decisive check is preservation. On clean RAGTruth answers, the full system should edit an order of magnitude fewer answers than the 83.5% reported for ungated repair, while residual hallucination is no worse than generative repair.

The second decisive check is the theory. Span-level $CL$ and $CS$ estimated from a single editing round should predict the three-round residual hallucination rate through the fixed point above. If they do not, the per-span Markov model is wrong for factual editing, which is itself worth reporting.

The third decisive check is the scale crossover, read from the spans-only ablation. We predict the explanation's gain on accepting and filling true flags shrinks from 7B to 72B, while its gain from rejecting false flags persists. If both gains vanish at 72B, the result is a clear negative: large editors need only to be told where to edit.