KnowHalu: Hallucination Detection via Multi-Form Knowledge Based Factual Checking

Jiawei Zhang, Chejian Xu, Yu Gai, Freddy Lecue, Shuang Yang, Dawn Song, Bo Li

TL;DR

This paper introduces KnowHalu, a novel two-phase framework for detecting hallucinations in LLM-generated text. It tackles both factual inaccuracies and "off-target" hallucinations (correct but irrelevant answers) by employing multi-form knowledge-based fact-checking and step-wise reasoning, significantly outperforming existing methods.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly powerful but prone to "hallucinations" – generating incorrect, irrelevant, or nonsensical information. This is a critical issue for applications requiring factual accuracy, like medical analysis or finance. Existing methods often rely on self-consistency checks or basic post-hoc fact-checking, which struggle with the nuanced structure of queries and the diverse forms of knowledge needed for robust verification. A key gap identified is the underrepresentation of "off-target" hallucinations, where an answer is factually correct but doesn't actually answer the question (e.g., answering "What's the primary language in Barcelona?" with "European languages").

Methods

KnowHalu employs a two-phase approach:

  1. Off-Target Hallucination Checking: This initial phase aims to identify irrelevant or overly general answers. It uses an extraction task where an LLM is prompted to extract specific entities or details requested by the query from the answer. If the model fails to extract these specifics, the answer is flagged as an off-target hallucination.
  2. Factual Checking: For answers not flagged as off-target, this phase performs a rigorous multi-form knowledge-based fact-checking. It involves:
  3. Step-wise Reasoning and Query Decomposition: Breaking down complex queries into simpler, one-hop sub-queries to facilitate targeted knowledge retrieval.
  4. Knowledge Retrieval: Fetching relevant information using RAG (Retrieval-Augmented Generation) from sources like Wikipedia, in both unstructured (text passages) and structured (object-predicate-object triplets) forms.
  5. Knowledge Optimization: Summarizing and refining retrieved knowledge into these distinct forms.
  6. Judgment Based on Multi-form Knowledge: Using LLMs to assess each sub-query's answer against the retrieved knowledge.
  7. Aggregation: Combining judgments from different knowledge forms to produce a final, more robust decision.

Datasets

The paper evaluates KnowHalu on the HaluEval dataset, which includes question-answering (QA) and text summarization tasks. For QA, it uses HotpotQA questions with hallucinated answers generated by ChatGPT. For summarization, it uses CNN/Daily Mail documents with hallucinated summaries.

Key Insights and Ideas

  • Defining "Off-Target Hallucinations": The paper formally introduces and addresses "off-target hallucinations," a crucial category of LLM errors that existing methods often overlook.
  • Multi-Form Knowledge is Key: Combining both structured (triplets) and unstructured (text passages) knowledge significantly improves factual checking accuracy, as different LLMs might benefit more from one form over the other.
  • Step-wise Reasoning Matters: Decomposing complex queries into a sequence of simpler, one-hop sub-queries is more effective for knowledge retrieval and verification than attempting to answer complex questions directly.
  • Query Formulation Impact: The way queries are phrased (specific vs. general) influences retrieval quality, and combining both types can lead to better overall performance.
  • Aggregation Boosts Robustness: Combining judgments from different knowledge forms helps mitigate uncertainty and improve the final decision.

Key Results

KnowHalu demonstrates significant improvements over state-of-the-art baselines:

  • QA Task: Achieves over 15% improvement in accuracy compared to SOTA baselines when applied to the same underlying LLM.
  • Summarization Task: Achieves over 6% improvement in accuracy.
  • Model Performance: Smaller models like Starling-7B and Mistral-7B achieve competitive performance with larger models like GPT-3.5 when using KnowHalu.
  • Latency: While slightly increasing latency compared to some methods, KnowHalu remains within acceptable limits (under 10 seconds per instance for complex questions) and significantly outperforms others like WikiChat and SelfCheckGPT in this regard.

Limitations and Future Work

  • GPT-3.5 "Lazy" Behavior: The authors note that GPT-3.5 sometimes exhibits "lazy" behavior in the summarization task, either rejecting summaries due to privacy concerns or prematurely concluding verification without generating queries. This can introduce bias in performance evaluation.
  • Future Work: The authors plan to adapt KnowHalu for dialogue systems and optimize it for longer conversations.

Summary updated

BibTeX
@inproceedings{zhang2025knowhalu,
  author = {Jiawei Zhang and Chejian Xu and Yu Gai and Freddy Lecue and Shuang Yang and Dawn Song and Bo Li},
  title = {{KnowHalu: Hallucination Detection via Multi-Form Knowledge Based Factual Checking}},
  booktitle = {FM-Wild @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=RFwyhpcYZK},
}
Figure