Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Peiran, Liu, Yang, Lu, Yunfei, Hong, Jue, Wu, Ye
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2502.13490
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915160776507392
author Wang, Peiran
Liu, Yang
Lu, Yunfei
Hong, Jue
Wu, Ye
author_facet Wang, Peiran
Liu, Yang
Lu, Yunfei
Hong, Jue
Wu, Ye
contents Large language model (LLM) systems suffer from the models' unstable ability to generate valid and factual content, resulting in hallucination generation. Current hallucination detection methods heavily rely on out-of-model information sources, such as RAG to assist the detection, thus bringing heavy additional latency. Recently, internal states of LLMs' inference have been widely used in numerous research works, such as prompt injection detection, etc. Considering the interpretability of LLM internal states and the fact that they do not require external information sources, we introduce such states into LLM hallucination detection. In this paper, we systematically analyze different internal states' revealing features during inference forward and comprehensively evaluate their ability in hallucination detection. Specifically, we cut the forward process of a large language model into three stages: understanding, query, generation, and extracting the internal state from these stages. By analyzing these states, we provide a deep understanding of why the hallucinated content is generated and what happened in the internal state of the models. Then, we introduce these internal states into hallucination detection and conduct comprehensive experiments to discuss the advantages and limitations.
format Preprint
id arxiv_https___arxiv_org_abs_2502_13490
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle What are Models Thinking about? Understanding Large Language Model Hallucinations "Psychology" through Model Inner State Analysis
Wang, Peiran
Liu, Yang
Lu, Yunfei
Hong, Jue
Wu, Ye
Computation and Language
Artificial Intelligence
Large language model (LLM) systems suffer from the models' unstable ability to generate valid and factual content, resulting in hallucination generation. Current hallucination detection methods heavily rely on out-of-model information sources, such as RAG to assist the detection, thus bringing heavy additional latency. Recently, internal states of LLMs' inference have been widely used in numerous research works, such as prompt injection detection, etc. Considering the interpretability of LLM internal states and the fact that they do not require external information sources, we introduce such states into LLM hallucination detection. In this paper, we systematically analyze different internal states' revealing features during inference forward and comprehensively evaluate their ability in hallucination detection. Specifically, we cut the forward process of a large language model into three stages: understanding, query, generation, and extracting the internal state from these stages. By analyzing these states, we provide a deep understanding of why the hallucinated content is generated and what happened in the internal state of the models. Then, we introduce these internal states into hallucination detection and conduct comprehensive experiments to discuss the advantages and limitations.
title What are Models Thinking about? Understanding Large Language Model Hallucinations "Psychology" through Model Inner State Analysis
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.13490