Lyapunov Probes for Hallucination Detection in Large Foundation Models
Authors: Bozhi Luan, Gen Li, Yalan Qin, Jifeng Guo, Yun Zhou, Faguo Wu, Hongwei Zheng, Wenjun Wu, Zhaoxin Fan
Organizations: Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, School of Artificial Intelligence, Beihang University · Shanghai University · School of Electronic and Information Engineering, State Key Laboratory of CNS/ATM, Beihang University · National Key Laboratory of Information Systems Engineering, National University of Defense Technology · Beijing Academy of Blockchain and Edge Computing
We address hallucination detection in Large Language Models (LLMs) and Multimodal Large Language Models (MLLMs) by framing the problem through the lens of dynamical systems stability theory. Rather than treating hallucination as a straightforward classification task, we conceptualize (M)LLMs as dynamical systems, where factual knowledge is represented by stable equilibrium points within the representation space. Our main insight is that hallucinations tend to arise at the boundaries of knowledge-transition regions separating stable and unstable zones. To capture this phenomenon, we propose Lyapunov Probes: lightweight networks trained with derivative-based stability constraints that enforce a monotonic decay in confidence under input perturbations. By performing systematic perturbation analysis and applying a two-stage training process, these probes reliably distinguish between stable factual regions and unstable, hallucination-prone regions. Experiments on diverse datasets and models demonstrate consistent improvements over existing baselines.
Figures & tables
Figure 1: Illustration of representation space partition in large models. We define that the data (representation) space can be divided into three regions: (a) stable known regions, (b) stable unknown regions, and (c) unstable knowledge boundary regions. Hallucinations primarily emerge in the unstable boundary regions.
Figure 2: Overview of our Lyapunov Probing framework. Multi-layer hidden states and perturbation information are fed into a probe network comprising a transformer-based HiddenProcessor and an MLP-based Classifier. The framework is trained with stability-driven objectives that enforce monotonic confidence decay, enabling distinction between stable factual regions and unstable hallucination-prone regions.
Model
Method
TriviaQA
PopQA
CoQA
MMLU
Llama-2-7B
Verbalized [ 43 ]
58.37
20.13
51.52
28.99
Surrogate [ 50 ]
57.14
18.42
53.29
30.77
Seq. Prob. [ 25 ]
63.76
20.22
49.63
29.41
Probe [ 37 ]
75.99
61.87
72.25
33.60
Ours
83.09
63.37
76.13
33.79
Llama-3-8B
Verbalized [ 43 ]
64.72
21.23
52.40
54.09
Table 1: Main results. Comparison with competitive hallucination detection methods on different datasets across different models. We use AUPRC as the metrics.
Figure 3: Case analysis of our Lyapunov Probe. The probe score provides an accurate prediction of whether the model can answer correctly, enabling the system to either proceed with or abstain from generating a response, thereby effectively reducing hallucinations.
Model
Method
POPE
TextVQA
VizWiz
MME
LLaVA-1.5
Probe [ 37 ]
98.08
85.89
77.02
93.61
Ours
99.13
89.02
83.18
95.18
Qwen-2.5-VL
Probe [ 37 ]
98.41
95.61
84.04
96.32
Ours
99.00
96.98
85.17
97.57
Table 2: MLLM Experiment on different datasets across different models. We use AUPRC as the metric.
Model
Method
CoQA
PopQA
Llama-2-7B
Verbalized [ 43 ]
51.52
20.13
Surrogate [ 50 ]
53.29
18.42
Seq. Prob. [ 25 ]
49.63
20.22
Cross-domain Probe
71.47
54.48
In-domain Probe
76.13
63.37
Llama-3-8B
Verbalized [ 43 ]
52.40
21.23
Table 3: Cross-domain Dataset Transfer Experiment Results. Probes are trained on the TriviaQA dataset and evaluated on the CoQA and PopQA datasets.
Settings
Llama-2-7B
Llama-3-8B
Qwen-3-4B
Falcon-7B
w/o Perturbation Data
82.41
82.35
79.92
65.65
w/o Two-Stage Training
82.00
84.80
80.58
64.27
w/o Multi-layer Hidden States
77.34
82.16
77.59
60.50
w/o Lyapunov Constraint Loss
78.13
82.86
74.19
62.48
Our Full Lyapunov Probe
83.09
86.46
79.47
65.52
Table 4: Ablation study on key components. Performance drops when removing each component, demonstrating their necessity for the full method.
Figure 4: Verification of the Lyapunov property across 4 models. Compared with previous probes, the outputs of our Lyapunov probe decrease monotonically with increasing perturbations, enabling more distinct differentiation of hallucinations.
Figure 5: Performance comparison among layers from different parts of the model. The performance exhibits significant fluctuations, while the multi-layer fusion method we propose consistently achieves the highest performance.
Large Language Models (LLMs) are powerful and widely adopted, but their practical impact is limited by the well-known hallucination phenomenon. While recent hallucination detection methods have made notable progress, we find most of them overlook the dynamic nature and underlying mechanisms of it. To address this gap, we propose HalluSAE, a phase transition-inspired framework that models hallucination as a critical shift in the model's latent dynamics. By modeling the generation process as a trajectory through a potential energy landscape, HalluSAE identifies critical transition zones and attributes factual errors to specific high-energy sparse features. Our approach consists of three stages: (1) Potential Energy Empowered Phase Zone Localization via sparse autoencoders and a geometric potential energy metric; (2) Hallucination-related Sparse Feature Attribution using contrastive logit attribution; and (3) Probing-based Causal Hallucination Detection through linear probes on disentangled features. Extensive experiments on Gemma-2-9B demonstrate that HalluSAE achieves state-of-the-art hallucination detection performance.
Boshui Chen, Zhaoxin Fan, Ke Wang +5
Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, School of Artificial Intelligence, Beihang University, Beijing, China. · State Key Laboratory of Virtual Reality Technology and Systems, Beihang University, Beijing, China. · Beijing Academy of Blockchain and Edge Computing, Beijing, China. +1
Large Language Models (LLMs) have demonstrated remarkable capabilities across a wide range of natural language processing tasks. However, their tendency to generate hallucinations, namely factually incorrect or unfaithful outputs, poses a critical obstacle to their deployment in high-stakes applications. Although recent hallucination detection methods have made encouraging progress, they typically rely on costly output-level consistency checks or static hidden-state probes that capture shallow dataset-specific patterns, leading to substantial degradation under cross-dataset evaluation. In this work, we propose AURORA, a novel hallucination detection framework that shifts the focus from static representations to the weight-gradient dynamics of LLMs. Our key insight is that hallucinated and faithful answers induce qualitatively different gradient update patterns on the model's parameters. Specifically, hallucinated samples trigger asymmetric and structurally misaligned gradients, which can be captured through two complementary features: (1) the skewness of the cosine similarity distribution between weight matrices and their gradient update directions, and (2) the rotation ratio, which quantifies how much the gradient update reorients the singular-vector basis of weight matrices via SVD. AURORA achieves strong hallucination detection performance across four model families and four benchmark datasets. Further analyses demonstrate that our method scales effectively across model sizes and transfers to out-of-domain tasks, including mathematical reasoning and vision-language scenarios.
Zishuai Zhang, Hainan Zhang, Zhiming Zheng
School of Artificial Intelligence, Beihang University, China · 2Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, Beihang University, China
Hallucinations in large language models (LLMs) arise from heterogeneous failure mechanisms, making reliable detection difficult for any single global uncertainty score. In this work, we formulate hallucination detection as a mechanism-aware evidence aggregation problem, where diverse representation- and token-level signals must be interpreted under multiple latent explanations. We propose FLaG, a lightweight hallucination detection framework that models correctness through a set of latent evidence groups. Each instance is softly associated with multiple groups via an energy-based routing mechanism, and group-conditional reliability signals are combined through a principled log-marginal aggregation. This design enables FLaG to capture heterogeneous hallucination patterns while remaining invariant to decision thresholds and evaluation metrics. The framework operates as a frozen-model head, requires no modification to the underlying language model, and incurs minimal computational overhead. We further provide a theoretical perspective that connects FLaG to optimal evidence aggregation under heterogeneous error mechanisms, showing that the Bayes-optimal test statistic necessarily admits a log-marginal form and that FLaG constitutes a tractable approximation with a controllable error bound. Extensive experiments across multiple benchmarks and LLM backbones demonstrate that FLaG consistently achieves SOTA performance, while exhibiting robust transfer across datasets and models, and remaining effective under limited supervision.
Wentao Ye, Liyao Li, Zhiqing Xiao +6
Zhejiang University · Hangzhou, Zhejiang, China · Nanyang Technological University +1