Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Models

Weihang Su, Changyue Wang, Qingyao Ai, Yiran HU, Zhijing Wu +2 more
3/11/2024
cs.CLcs.AI

No official code found. Best implementation: oneal2000/MIND (65 stars, last commit 2025-11-14).

Abstract

Hallucinations in large language models (LLMs) refer to the phenomenon of LLMs producing responses that are coherent yet factually inaccurate. This issue undermines the effectiveness of LLMs in practical applications, necessitating research into detecting and mitigating hallucinations of LLMs. Previous studies have mainly concentrated on post-processing techniques for hallucination detection, which tend to be computationally intensive and limited in effectiveness due to their separation from the LLM's inference process. To overcome these limitations, we introduce MIND, an unsupervised training framework that leverages the internal states of LLMs for real-time hallucination detection without requiring manual annotations. Additionally, we present HELM, a new benchmark for evaluating hallucination detection across multiple LLMs, featuring diverse LLM outputs and the internal states of LLMs during their inference process. Our experiments demonstrate that MIND outperforms existing state-of-the-art methods in hallucination detection.

View on arXivView PDF

Code Implementations(1)

oneal2000/MINDCommunity100%

Source code of our paper MIND, ACL 2024 Long Paper

6513PythonJan 20, 202411 months ago

Similar Papers

Cite this paper

@article{su2024unsupervised,
  title  = {Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Models},
  author = {Weihang Su and Changyue Wang and Qingyao Ai and Yiran HU and Zhijing Wu and Yujia Zhou and Yiqun Liu},
  year   = {2024},
  eprint = {2403.06448},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.06448v2}
}

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

Discussion