Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Weihang Su, Changyue Wang, Qingyao Ai, Yiran HU, Zhijing Wu, Yujia Zhou, Yiqun Liu• 2024

Related benchmarks

TaskDatasetResultRank
Hallucination DetectionTriviaQA (test)
AUC-ROC84.5
169
Hallucination DetectionHaluEval (test)
AUC-ROC94.5
126
Hallucination DetectionTruthfulQA (test)
AUC-ROC88.9
91
Hallucination DetectionHELM Sentence Level v1.0 (test)
AUC0.8835
84
Hallucination DetectionHELM Passage Level v1.0 (test)
AUC0.9599
84
Hallucination DetectionNQ (test)
AUC ROC93.6
84
Hallucination DetectionCompany
AUC-ROC0.698
68
ReasoningMATH 500
Accuracy (%)77.1
59
Hallucination DetectionSQuAD (test)
AUROCr73.46
48
Hallucination DetectionGSM8K (test)
AUROC (Reference)66.57
48
Showing 10 of 16 rows

Other info

Code

Follow for update