Enhancing Uncertainty-Based Hallucination Detection with Stronger Focus

Tianhang Zhang, Lin Qiu, Qipeng Guo, Cheng Deng, Yue Zhang +4 more
11/22/2023
137 citations
cs.CLcs.AI

Official code: zthang/Focus (24 stars, Python, last commit 2024-02-03).

Abstract

Large Language Models (LLMs) have gained significant popularity for their impressive performance across diverse fields. However, LLMs are prone to hallucinate untruthful or nonsensical outputs that fail to meet user expectations in many real-world applications.

Show full abstract

Existing works for detecting hallucinations in LLMs either rely on external knowledge for reference retrieval or require sampling multiple responses from the LLM for consistency verification, making these methods costly and inefficient. In this paper, we propose a novel reference-free, uncertainty-based method for detecting hallucinations in LLMs. Our approach imitates human focus in factuality checking from three aspects: 1) focus on the most informative and important keywords in the given text; 2) focus on the unreliable tokens in historical context which may lead to a cascade of hallucinations; and 3) focus on the token properties such as token type and token frequency. Experimental results on relevant datasets demonstrate the effectiveness of our proposed method, which achieves state-of-the-art performance across all the evaluation metrics and eliminates the need for additional information.

View on arXivView PDF

Code Implementations(1)

zthang/FocusOfficial100%
243PythonMay 24, 20232 years ago

Similar Papers

Cite this paper

@article{zhang2023enhancing,
  title  = {Enhancing Uncertainty-Based Hallucination Detection with Stronger Focus},
  author = {Tianhang Zhang and Lin Qiu and Qipeng Guo and Cheng Deng and Yue Zhang and Zheng Zhang and Chenghu Zhou and Xinbing Wang and Luoyi Fu},
  year   = {2023},
  eprint = {2311.13230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.13230v1}
}

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/2311.13230.svg)](https://codeofpaper.com/paper/2311.13230)

Discussion