Manuscript Offprint

arXiv:2610.02066

External Observers May See More Clearly: Cross-Model Span-Level Hallucination Detection in Large Language Models via Hidden State Probing

Kingshuk Gupta, Davide Buscaldi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As Large Language Models (LLMs) increasingly serve as foundational reasoning engines, their tendency to hallucinate remains a critical vulnerability. While recent internal state probes offer a promising alternative to slow external retrieval systems, they largely reduce hallucination detection to a token-wise binary classification task, failing to capture the structured, sequential boundaries of semantic drift. Here, we introduce an internal hidden state framework for fine-grained, span-level hallucination detection. By inspecting layer-wise activation patterns, we attempt to detect the exact hallucination onset and continuation tokens in an LLM generation. Our experiments show that this approach successfully isolates hallucination onsets, achieving substantial improvements in Precision-Recall AUC over random baselines despite extreme class imbalance. Ultimately, we propose a novel cross-model detection framework in which one model observes the internal representations elicited by another model's generation. We find that an external observer can match or exceed a generator's self-detection of its own hallucination onsets, including when the observer is the smaller model, suggesting that self-detection is not the ceiling for onset localisation.

1 Introduction

In recent years, Large Language Models (LLMs) have achieved unprecedented performance across natural language tasks, yet their persistent tendency to hallucinate limits their deployment in critical domains such as healthcare and law. To mitigate this, state of the art approaches primarily rely on external knowledge retrieval, such as RAG (Min et al., 2023; Niu et al., 2024). While highly effective for cloud-based models with unrestricted internet access, these external dependencies introduce severe latency and render hallucination mitigation practically impossible for local, privacy preserving LLM deployments where online search is unavailable.

Consequently, recent research has shifted toward internal state analysis, demonstrating that valid truth signals are encoded directly within a model's hidden states during inference (Han et al., 2025; Su et al., 2024). However, existing frameworks are constrained by their architectural assumptions. Most prominent studies rely on independent probing techniques (e.g., simple MLPs or linear regression) that reduce hallucination detection to isolated, token-wise binary classification. This fundamentally fails to capture the structured, sequential dependencies of semantic drift. We argue that practical, real-time mitigation requires span-level analysis to identify the precise temporal boundaries of a hallucination.

To achieve this, we adopt a targeted self and cross-model white-box approach. Building upon the “Ghost in the Transformer” framework (Zhou et al., 2025), which established that abnormal model behaviors manifest as distinct geometric deviations, we extract high-dimensional forensic features exclusively from the model’s critical layers. Our findings suggest that this “Ghost” signal is not merely a sentence level binary flag, but a continuous semantic signal. By projecting these internal activations into progressive sequence-labeling architectures, we utilize these geometric deviations to structurally pinpoint the exact onset of semantic drift.

Our core contributions are as follows:

• From Binary to Span-Level Detection: We extend hidden state forensics from sentence level classification to fine-grained, token-level sequence labeling. By projecting internal states through temporally-aware architectures, we demonstrate that LLMs contain sufficient granular information to track the precise boundaries of a hallucination in real-time. 1^{1}

1^{1}Code and datasets will be made publicly available upon publication.

• Cross-Model Supervision: We introduce a novel cross model detection framework where one model detects hallucination spans in another model’s generation from its internal representations. We show that a capable external observer can exceed self-detection of hallucination onsets, and that this holds even when the observer is smaller than the generator.

References (26)