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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Chao, Liu, Kai, Chen, Ze, Gu, Yi, Wu, Yue, Tao, Mingyuan, Fu, Zhihang, Ye, Jieping
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929550647099392
author Chen, Chao
Liu, Kai
Chen, Ze
Gu, Yi
Wu, Yue
Tao, Mingyuan
Fu, Zhihang
Ye, Jieping
author_facet Chen, Chao
Liu, Kai
Chen, Ze
Gu, Yi
Wu, Yue
Tao, Mingyuan
Fu, Zhihang
Ye, Jieping
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_03744
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection
Chen, Chao
Liu, Kai
Chen, Ze
Gu, Yi
Wu, Yue
Tao, Mingyuan
Fu, Zhihang
Ye, Jieping
Computation and Language
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.
title INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection
topic Computation and Language
url https://arxiv.org/abs/2402.03744