Visualizing and Benchmarking LLM Factual Hallucination Tendencies via Internal State Analysis and Clustering
Nathan Mao, Varun Kaushik, Shreya Shivkumar, Parham Sharafoleslami, Kevin Zhu, Sunishchal Dev
TL;DR
The paper tackles LLM factual hallucinations by introducing FalseCite, a benchmark that pairs false claims with fabricated citations to study citation-driven and content-based hallucinations. It demonstrates that deceptive citations significantly elevate hallucination rates across multiple models, with random citations often having the strongest effect and larger relative impacts on the more capable model GPT-4o-mini. Beyond evaluation, it analyzes internal model dynamics by capturing and clustering hidden-state vectors, uncovering a horn-shaped trajectory in the representation space and identifying layers more associated with hallucination. The work provides a foundation for benchmarking and mitigating hallucinations in future LLM research through internal-state visualization and targeted dataset design.
Abstract
Large Language Models (LLMs) often hallucinate, generating nonsensical or false information that can be especially harmful in sensitive fields such as medicine or law. To study this phenomenon systematically, we introduce FalseCite, a curated dataset designed to capture and benchmark hallucinated responses induced by misleading or fabricated citations. Running GPT-4o-mini, Falcon-7B, and Mistral 7-B through FalseCite, we observed a noticeable increase in hallucination activity for false claims with deceptive citations, especially in GPT-4o-mini. Using the responses from FalseCite, we can also analyze the internal states of hallucinating models, visualizing and clustering the hidden state vectors. From this analysis, we noticed that the hidden state vectors, regardless of hallucination or non-hallucination, tend to trace out a distinct horn-like shape. Our work underscores FalseCite's potential as a foundation for evaluating and mitigating hallucinations in future LLM research.
