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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Su, Weihang, Wang, Changyue, Ai, Qingyao, HU, Yiran, Wu, Zhijing, Zhou, Yujia, Liu, Yiqun
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917689067307008
author Su, Weihang
Wang, Changyue
Ai, Qingyao
HU, Yiran
Wu, Zhijing
Zhou, Yujia
Liu, Yiqun
author_facet Su, Weihang
Wang, Changyue
Ai, Qingyao
HU, Yiran
Wu, Zhijing
Zhou, Yujia
Liu, Yiqun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_06448
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Models
Su, Weihang
Wang, Changyue
Ai, Qingyao
HU, Yiran
Wu, Zhijing
Zhou, Yujia
Liu, Yiqun
Computation and Language
Artificial Intelligence
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.
title Unsupervised Real-Time Hallucination Detection based on the Internal States of Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2403.06448