Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection

About

Knowledge hallucination have raised widespread concerns for the security and reliability of deployed LLMs. Previous efforts in detecting hallucinations have been employed at logit-level uncertainty estimation or language-level self-consistency evaluation, where the semantic information is inevitably lost during the token-decoding procedure. Thus, we propose to explore the dense semantic information retained within LLMs' \textbf{IN}ternal \textbf{S}tates for halluc\textbf{I}nation \textbf{DE}tection (\textbf{INSIDE}). In particular, a simple yet effective \textbf{EigenScore} metric is proposed to better evaluate responses' self-consistency, which exploits the eigenvalues of responses' covariance matrix to measure the semantic consistency/diversity in the dense embedding space. Furthermore, from the perspective of self-consistent hallucination detection, a test time feature clipping approach is explored to truncate extreme activations in the internal states, which reduces overconfident generations and potentially benefits the detection of overconfident hallucinations. Extensive experiments and ablation studies are performed on several popular LLMs and question-answering (QA) benchmarks, showing the effectiveness of our proposal.

Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, Jieping Ye• 2024

Related benchmarks

TaskDatasetResultRank
Hallucination DetectionTriviaQA
AUROC0.8174
438
Hallucination DetectionTriviaQA (test)
AUC-ROC82.6
183
Hallucination DetectionHotpotQA
AUROC0.9025
163
KnowledgeMMLU
Accuracy47.6
136
Hallucination DetectionHaluEval (test)
AUC-ROC76.9
126
Hallucination DetectionCSQA
AUROC55
107
Hallucination DetectionTruthfulQA (test)
AUC-ROC82.4
105
Hallucination DetectionNQ
AUC0.757
102
Hallucination DetectionCoQA
Mean AUROC0.69
100
Inference EfficiencyNatural Questions (NQ)
Relative Overhead (%)203.8
90
Showing 10 of 106 rows
...

Other info

Follow for update