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

Jiawei Zhang, Chejian Xu, Yu Gai, Freddy Lecue, Dawn Song +1 more
4/3/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: javyduck/KnowHalu (50 stars, last commit 2024-05-22).

Abstract

This paper introduces KnowHalu, a novel approach for detecting hallucinations in text generated by large language models (LLMs), utilizing step-wise reasoning, multi-formulation query, multi-form knowledge for factual checking, and fusion-based detection mechanism. As LLMs are increasingly applied across various domains, ensuring that their outputs are not hallucinated is critical. Recognizing the limitations of existing approaches that either rely on the self-consistency check of LLMs or perform post-hoc fact-checking without considering the complexity of queries or the form of knowledge, KnowHalu proposes a two-phase process for hallucination detection. In the first phase, it identifies non-fabrication hallucinations--responses that, while factually correct, are irrelevant or non-specific to the query. The second phase, multi-form based factual checking, contains five key steps: reasoning and query decomposition, knowledge retrieval, knowledge optimization, judgment generation, and judgment aggregation. Our extensive evaluations demonstrate that KnowHalu significantly outperforms SOTA baselines in detecting hallucinations across diverse tasks, e.g., improving by 15.65% in QA tasks and 5.50% in summarization tasks, highlighting its effectiveness and versatility in detecting hallucinations in LLM-generated content.

View on arXivView PDF

Code Implementations(1)

javyduck/KnowHaluCommunity100%
503PythonJan 23, 20242 years ago

Similar Papers

Cite this paper

@article{zhang2024knowhalu,
  title  = {KnowHalu: Hallucination Detection via Multi-Form Knowledge Based Factual Checking},
  author = {Jiawei Zhang and Chejian Xu and Yu Gai and Freddy Lecue and Dawn Song and Bo Li},
  year   = {2024},
  eprint = {2404.02935},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.02935v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.02935.svg)](https://codeofpaper.com/paper/2404.02935)

Discussion