Lyapunov Probes for Hallucination Detection in Large Foundation Models

Bozhi Luan, Gen Li, Yalan Qin, Jifeng Guo, Yun Zhou, Faguo Wu, Hongwei Zheng, Wenjun Wu, Zhaoxin Fan

TL;DR

This paper reimagines hallucination detection in Large Foundation Models by framing the internal representation space as a high-dimensional dynamical system. By introducing Lyapunov Probes—lightweight classifiers trained to enforce a strict mathematical constraint of monotonic confidence decay under input perturbations—the authors successfully identify the unstable "knowledge boundaries" where hallucinations typically breed.

What Problem Does This Paper Address?

Despite their impressive capabilities, Large Language Models (LLMs) and Multimodal LLMs (MLLMs) frequently generate "hallucinations"—outputs that sound plausible but are factually incorrect.

Current detection methods generally fall into two camps: external verification (checking against a database) and internal heuristics (analyzing token probabilities or training basic classifiers on hidden states). However, external databases are costly to maintain, and internal classifiers often treat hallucination detection as a standard binary classification problem without addressing why or where hallucinations occur.

This paper addresses this gap by providing a theoretical foundation: hallucinations are not random errors; they are systematic phenomena that cluster at the transition zones between what a model securely knows and what it doesn't.

Illustration of representation space partition into stable and unstable domains.

Methods

The authors model the forward pass of an LLM as a continuous-time dynamical system. Under this lens:

  • Factual knowledge corresponds to stable equilibrium points (attracting regions) where small tweaks to the input don't change the factual correctness of the output.
  • Hallucinations occur in unstable regions along the "knowledge boundary," where minor variations cause massive deviations in output correctness.

To capture this, they introduce Lyapunov Probes. These are lightweight networks (a Transformer-based hidden processor followed by an MLP classifier) that ingest hidden states from multiple layers (shallow, middle, and deep) along with a perturbation magnitude ($\delta$).

The core novelty lies in the training objective. In addition to a standard binary cross-entropy loss, they introduce a Lyapunov constraint loss:

$$\mathcal{L}_{Lyapunov} = \mathbb{E}_{h,\delta} \left[ \max\left(0, \frac{\partial V(h, \delta)}{\partial \delta}\right) \right]$$

This derivative-based penalty forces the probe's confidence score ($V$) to strictly decrease as the perturbation magnitude ($\delta$) increases. The authors use two types of perturbations to test stability:

  1. Semantic Perturbations: Swapping words with synonyms, inserting random tokens, or altering sentence structure.
  2. Representational Perturbations: Injecting varying levels of Gaussian noise directly into the hidden states.
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.

Datasets

The framework was evaluated across a diverse set of foundation models (including Llama-2-7B, Llama-3-8B, Qwen-3-4B, Falcon-7B, LLaVA-1.5-7B, and Qwen-2.5-VL-3B) using the following benchmarks:

  • LLM Benchmarks: TriviaQA and PopQA (factual QA), CoQA (conversational consistency), and MMLU (broad-domain multiple-choice reasoning).
  • MLLM Benchmarks: POPE (object existence), TextVQA (scene-text recognition), VizWiz-VQA (low-quality user images), and MME (holistic perception/reasoning).

Key Insights and Ideas

  • The Geometry of Ignorance: The representation space can be cleanly partitioned into stable known regions, stable unknown regions (where the model safely admits it doesn't know), and unstable boundary regions. Hallucinations live almost exclusively in the third category.
  • Monotonicity as a Regularizer: Standard probes exhibit erratic, non-monotonic behavior when inputs are perturbed. By forcing the probe to obey Lyapunov stability criteria, it learns intrinsic geometric properties of the representation space rather than just memorizing surface-level patterns.
  • Layer-Wise Dynamics: Factual stability signals are not uniformly distributed; they are most pronounced in the mid-to-late layers of foundation models, where semantic extraction transitions into token generation.

Key Results

Lyapunov Probes consistently outperformed standard probing and uncertainty-based baselines across the board, measured via the Area Under the Precision-Recall Curve (AUPRC):

  • LLMs: Achieved an average improvement of 6.2% over standard probes and 18.5% over probability-based methods. The highest gains were seen in open-ended factual QA (e.g., a 7.1% improvement on TriviaQA using Llama-3-8B).
  • MLLMs: Demonstrated an average improvement of 2.1% over base probes, effectively catching multimodal alignment errors (e.g., a 6.2% boost on the noisy VizWiz-VQA dataset using LLaVA-1.5-7B).
  • Cross-Domain Generalization: Probes trained on TriviaQA transferred remarkably well to entirely different tasks like CoQA and PopQA, outperforming baselines by 20–30 percentage points and proving that the probe captures universal stability traits rather than dataset artifacts.
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.

Limitations and Future Work

While the paper demonstrates excellent empirical results, a few limitations and areas for future work emerge:

  • Hyperparameter Sensitivity: The ablation studies indicate that optimal single-layer performance varies significantly by model architecture, meaning multi-layer selection strategies still require careful tuning depending on the underlying foundation model.
  • Computational Overhead: Generating multi-scale semantic and representational perturbations during the two-stage training phase adds computational complexity, though the final deployed probe remains lightweight.
  • Mitigation vs. Detection: The current work focuses heavily on detecting hallucinations. A natural next step would be leveraging these Lyapunov boundaries during decoding or fine-tuning to actively steer models away from unstable domains.

Summary updated

BibTeX
@inproceedings{luan2026lyapunov,
  author = {Bozhi Luan and Gen Li and Yalan Qin and Jifeng Guo and Yun Zhou and Faguo Wu and Hongwei Zheng and Wenjun Wu and Zhaoxin Fan},
  title = {{Lyapunov Probes for Hallucination Detection in Large Foundation Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=E8jIJxukRf},
}
Figure