PoLLMgraph: Unraveling Hallucinations in Large Language Models via State Transition Dynamics

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhu, Derui, Chen, Dingfan, Li, Qing, Chen, Zongxiong, Ma, Lei, Grossklags, Jens, Fritz, Mario
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916197304369152
author Zhu, Derui
Chen, Dingfan
Li, Qing
Chen, Zongxiong
Ma, Lei
Grossklags, Jens
Fritz, Mario
author_facet Zhu, Derui
Chen, Dingfan
Li, Qing
Chen, Zongxiong
Ma, Lei
Grossklags, Jens
Fritz, Mario
contents Despite tremendous advancements in large language models (LLMs) over recent years, a notably urgent challenge for their practical deployment is the phenomenon of hallucination, where the model fabricates facts and produces non-factual statements. In response, we propose PoLLMgraph, a Polygraph for LLMs, as an effective model-based white-box detection and forecasting approach. PoLLMgraph distinctly differs from the large body of existing research that concentrates on addressing such challenges through black-box evaluations. In particular, we demonstrate that hallucination can be effectively detected by analyzing the LLM's internal state transition dynamics during generation via tractable probabilistic models. Experimental results on various open-source LLMs confirm the efficacy of PoLLMgraph, outperforming state-of-the-art methods by a considerable margin, evidenced by over 20% improvement in AUC-ROC on common benchmarking datasets like TruthfulQA. Our work paves a new way for model-based white-box analysis of LLMs, motivating the research community to further explore, understand, and refine the intricate dynamics of LLM behaviors.
format Preprint
id arxiv_https___arxiv_org_abs_2404_04722
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PoLLMgraph: Unraveling Hallucinations in Large Language Models via State Transition Dynamics
Zhu, Derui
Chen, Dingfan
Li, Qing
Chen, Zongxiong
Ma, Lei
Grossklags, Jens
Fritz, Mario
Computation and Language
Cryptography and Security
Software Engineering
Despite tremendous advancements in large language models (LLMs) over recent years, a notably urgent challenge for their practical deployment is the phenomenon of hallucination, where the model fabricates facts and produces non-factual statements. In response, we propose PoLLMgraph, a Polygraph for LLMs, as an effective model-based white-box detection and forecasting approach. PoLLMgraph distinctly differs from the large body of existing research that concentrates on addressing such challenges through black-box evaluations. In particular, we demonstrate that hallucination can be effectively detected by analyzing the LLM's internal state transition dynamics during generation via tractable probabilistic models. Experimental results on various open-source LLMs confirm the efficacy of PoLLMgraph, outperforming state-of-the-art methods by a considerable margin, evidenced by over 20% improvement in AUC-ROC on common benchmarking datasets like TruthfulQA. Our work paves a new way for model-based white-box analysis of LLMs, motivating the research community to further explore, understand, and refine the intricate dynamics of LLM behaviors.
title PoLLMgraph: Unraveling Hallucinations in Large Language Models via State Transition Dynamics
topic Computation and Language
Cryptography and Security
Software Engineering
url https://arxiv.org/abs/2404.04722