Research
HalluClean: A Unified Framework to Combat Hallucinations in LLMs
Overview Research area: Natural Language Processing — factual reliability and hallucination mitigation in large language models. Technical level: Intermediate. The framework requires no training or re
- arXiv
- 2511.08916
- Published
- 2025-11-12
- Authors
- Yaxin Zhao, Yu Zhang
AI summary
Overview
Research area: Natural Language Processing — factual reliability and hallucination mitigation in large language models.
Technical level: Intermediate. The framework requires no training or retrieval infrastructure, but understanding the evaluation requires familiarity with prompting paradigms (chain-of-thought, plan-and-solve), classification metrics (F1, accuracy), and BERTScore.
Scope: A prompt-based, zero-shot framework that detects and then rewrites hallucinated spans in LLM outputs across five task families, evaluated on ten datasets spanning five backbone models.
What This Paper Is About
LLMs generate confident but factually unsupported text, and existing fixes generally require either an external knowledge base to check against or large sets of human-labeled examples to train a detector — both expensive and brittle when tasks or hallucination types change. The authors propose HalluClean, a single prompt-driven pipeline that first reasons about whether an output is hallucinated, then rewrites only the problematic content, with no fine-tuning, no retrieval, and no task-specific training data.
Key Contributions
- A modular, zero-shot detection-and-correction framework. HalluClean decomposes hallucination handling into structured reasoning steps (plan, execute, judge) followed by a targeted revision stage that is conditioned on the reasoning trace rather than on the raw output alone.
- Task-agnostic generalization via compact routing prompts. Short task descriptions act as adapters, letting the same framework cover question answering, dialogue, summarization, math word problems, and self-contradiction detection without per-task fine-tuning.
- Demonstrated robustness in high-stakes domains and languages. Evaluations on medical and financial QA (HaluBench) and two Chinese benchmarks (HalluQA, CMHE-HD) show gains well beyond the English general-domain setting.
- Full ablation, significance testing, and backbone-agnostic analysis. The paper isolates the contribution of task routing versus structural reasoning, applies McNemar tests to per-instance correctness, and shows the modules transfer across five different LLMs, including open-source ones.
Main Findings
- Detection improves substantially over direct prompting. With a GPT-3.5-turbo backbone, F1 rises from 33.5% to 67.8% on QA, 24.7% to 65.9% on summarization, and 46.0% to 87.0% on self-contradiction detection.
- Structural reasoning is the dominant driver, not task routing. The ablation shows task routing alone brings QA F1 from 33.5% to 39.3%, while adding structural reasoning pushes it to 67.8%; summarization jumps from 24.7% to 60.0% with routing alone and to 65.9% with full reasoning.
- Stronger backbones yield stronger results. Ours-DeepSeek-V3 achieves the best accuracy on all five tasks and the best F1 on QA (71.5%), dialogue (77.1%), and math word problems (89.1%), while Llama-3-70B remains competitive, supporting privacy-preserving local deployment.
- Revision reduces hallucinations markedly but revision quality lags. Reduction rates reach 89.0% on dialogue and 87.3% on self-contradiction, yet revision success rates (BERTScore > 0.85 against gold references) stay low on QA (25.5–37.5%) and math word problems (roughly 34–45%), indicating that corrections are frequent but not always faithful to the reference.
- Gains hold in medicine and finance. Using GPT-3.5-turbo, overall F1 on HaluBench reaches 82.3% with 83.2% accuracy, versus 57.9%/72.2% for the strongest untuned backbone tested; CovidQA alone reaches 91.7% F1.
- The method complements retrieval rather than replacing it. Adding background knowledge lifts QA F1 to 80.4% and accuracy to 82.3%, up from 67.8% and 66.5% without retrieval.
- Cross-lingual transfer works without any target-language tuning. On HalluQA, F1 goes from 7.0% to 41.6%; on CMHE-HD, from 21.9% to 57.3%.
- Statistical significance is established overall but not uniformly. McNemar tests give an aggregate chi-squared of 85.01 (p ≈ 3.0 × 10⁻²⁰), though the dialogue task alone is not significant (p = 0.335).
- Failures fall into three categories. Language misunderstanding, missing background knowledge, and reasoning errors that begin from a correct premise — the last being the most consequential for a prompt-only system.
Methodology in Plain English
The framework converts hallucination checking into a short scripted conversation with the model.
First, a task routing prompt tells the model what kind of thing it is looking at — for example, "you are provided with a document and its corresponding summary; determine whether the summary contains hallucinated content." Five such one-line prompts cover the five task types.
Second, the model runs a three-step reasoning sequence. In Step 1 it writes a plan for how to verify the input, adapted to the task (for contradiction detection, this might mean listing key entities and comparing their relations). In Step 2 it executes that plan step by step, producing an explicit reasoning trace. In Step 3 it emits a binary Yes/No judgment. The reasoning trace is retained, not discarded.
Third, if the judgment is Yes, a revision step regenerates the problematic content, conditioned on both the original input and the analysis explaining what was wrong. The paper argues this is what makes corrections targeted rather than wholesale rewrites.
Evaluation uses three measures: hallucination reduction rate (how many detected hallucinations disappear after revision), revision success rate (the share of revisions whose BERTScore against a gold reference exceeds 0.85, or exact label match for math problems), and standard F1/accuracy for the binary detection decision. Data comes from HaluEval, UMWP, ChatProtect, and HaluBench, plus two Chinese benchmarks, all sampled to keep classes balanced. Five instruction-tuned models serve as backbones, from GPT-3.5-turbo and GPT-4o-mini through Llama-3.1-70B (run in 4-bit) to DeepSeek-V3 and DeepSeek-R1.
Why This Matters
Research impact. The paper argues that hallucination mitigation can be reframed as a reasoning problem rather than a retrieval or classification problem. If that holds, the standard tradeoff — build a retrieval index or pay for annotation — is not mandatory, and the same reasoning traces that drive detection double as human-readable justifications.
Real-world applications:
- Clinical and biomedical question answering, where unsupported claims carry direct risk and where the HaluBench results show the largest margins over untuned baselines.
- Financial document summarization and querying, where the FinanceBench results (76.5% accuracy with GPT-3.5-turbo) show the method works on filings despite the domain's specialized vocabulary.
- Customer-facing dialogue systems, where entity confusion between similar or cross-type entities is the most common failure and the paper reports an 89.0% reduction rate.
- Document summarization pipelines, where fabricated details in generated summaries are hard for downstream readers to spot and where detection F1 nearly tripled in the ablation.
Industry relevance. The framework is prompt-only, so it can be layered onto an existing LLM deployment without retraining, can run against open-weight models for privacy-sensitive environments, and stacks cleanly on top of retrieval-augmented generation that companies may already have. The authors also release code.
Future Directions
- Closing the revision quality gap. Detection has improved far more than correction fidelity; on QA and math word problems, a majority of revisions fail the BERTScore threshold. Improving how revisions are constrained is the most obvious next target.
- Compensating for missing background knowledge. One of the three documented error types is a failure to detect hallucination precisely because the model lacks the facts to check against, which points toward hybrid retrieval-plus-reasoning designs.
- Distilling reasoning traces into smaller models. The authors note that effectiveness depends on the backbone's reasoning strength and suggest fine-tuning smaller models on distilled traces to serve low-resource or cost-constrained deployments.
- Adding lightweight verification modules. A dedicated checker could catch reasoning errors that the model itself cannot recognize, addressing the failure mode where a correct premise leads to an incorrect conclusion.
Target Audience
NLP and LLM reliability researchers will find the ablation and McNemar analysis directly useful for situating prompt-based methods against retrieval and supervised detectors. ML engineers deploying LLMs in regulated or privacy-sensitive settings will benefit from the plug-and-play design and the open-source backbone results. Domain practitioners in medicine and finance — and anyone building summarization, QA, or dialogue systems where factual errors matter — will find the most actionable evidence here, provided they also account for the relatively weak revision success rates on complex tasks.
Authors’ abstract
Large language models (LLMs) have achieved impressive performance across a wide range of natural language processing tasks, yet they often produce hallucinated content that undermines factual reliability. To address this challenge, we introduce HalluClean, a lightweight and task-agnostic framework for detecting and correcting hallucinations in LLM-generated text. HalluClean adopts a reasoning-enhanced paradigm, explicitly decomposing the process into planning, execution, and revision stages to identify and refine unsupported claims. It employs minimal task-routing prompts to enable zero-shot generalization across diverse domains, without relying on external knowledge sources or supervised detectors. We conduct extensive evaluations on five representative tasks-question answering, dialogue, summarization, math word problems, and contradiction detection. Experimental results show that HalluClean significantly improves factual consistency and outperforms competitive baselines, demonstrating its potential to enhance the trustworthiness of LLM outputs in real-world applications.