HalluGuard: Demystifying Data-Driven and Reasoning-Driven Hallucinations in LLMs

Xinyue Zeng, Junhong Lin, Yujun Yan, Feng Guo, Liang Shi, Jun Wu, Dawei Zhou

TL;DR

HalluGuard provides a unified theoretical framework and a practical detection tool that decomposes Large Language Model (LLM) hallucinations into two distinct sources: training-time knowledge gaps (data-driven) and inference-time logical breakdowns (reasoning-driven). By leveraging the geometry of Neural Tangent Kernels (NTK), it offers a reference-free, computationally efficient score that achieves state-of-the-art detection performance across 10 diverse benchmarks and 9 different model families.

What Problem Does This Paper Address?

Despite their impressive capabilities, LLMs remain risky for high-stakes applications like medicine, law, and scientific discovery because they "hallucinate"—generating content that is factually wrong or logically nonsensical.

Example of data-driven and reasoning-driven hallucinations

Researchers generally categorize these errors into two buckets:

  1. Data-driven: The model was trained on flawed, biased, or incomplete data, leading to an initial factual error.
  2. Reasoning-driven: The model fails to maintain logical consistency during a long, multi-step generation process, causing errors to "snowball."

The challenge is that most existing detection tools only target one of these types. Furthermore, many rely on task-specific heuristics—like comparing a response to a retrieved document or checking if the model gives the same answer twice. Until now, there has been a lack of a unified mathematical theory explaining how these two types of errors emerge and compound over time.

Methods: The Hallucination Risk Bound

The authors introduce the Hallucination Risk Bound, a formal mathematical decomposition that splits the risk of hallucination into a "data-driven term" (approximation error) and a "reasoning-driven term" (stochastic instability).

To turn this theory into a practical tool, they utilize Neural Tangent Kernels (NTK). The NTK describes how a neural network's outputs change in response to small changes in its parameters during training. The authors found that the "geometry" of this kernel provides a window into the model's internal state.

They propose the HalluGuard score, which combines three NTK-based metrics:

  • det(K) (Determinant): Measures how well the model's internal representation space covers the task, effectively targeting data-driven errors.
  • log σ_max: Tracks how errors amplify across decoding steps, targeting reasoning-driven errors.
  • -log κ^2 (Condition Number): Acts as a regularizer to penalize spectral instability.

Crucially, HalluGuard uses lightweight projection layers optimized offline in a self-supervised manner. This means it doesn't require manual "hallucination labels" to work and adds less than 1ms of overhead during inference.

Key Insights and Ideas

  • The "Snowballing Effect": The paper formally proves that reasoning-driven hallucinations grow exponentially with sequence length. An early logical slip-up acts as "noise" that is amplified by the model's own Jacobians in subsequent generation steps.
  • Phase Transitions: By analyzing hallucination dynamics, the authors found a phase transition: in shorter sequences (T < 15 steps), errors are mostly data-driven. In longer sequences, reasoning instability becomes the dominant cause of failure.
  • NTK as a Proxy: Computing the full Jacobian of a massive model (e.g., 70B parameters) is computationally impossible for real-time use. The authors demonstrate that NTK eigenvalues serve as a stable, tractable proxy for these complex dynamics.
  • Reference-Free Detection: Unlike many state-of-the-art methods that require external search results or multiple sampled responses, HalluGuard can detect hallucinations using only the model's internal signals.

Key Results

HalluGuard was evaluated against 11 competitive baselines across 10 benchmarks, including Data-Grounded QA (RAGTruth, SQuAD), Reasoning-Oriented tasks (MATH-500, BBH), and Instruction Following (TruthfulQA).

Performance comparison of HalluGuard against baselines
  • State-of-the-Art (SOTA): HalluGuard consistently outperformed all baselines. For example, on the BBH benchmark using QwQ-32B, it achieved an 81.76% AUROC, significantly improving over competing methods.
  • Model Agnostic: The framework works across scales, from GPT-2 (117M) to large modern architectures. It showed particularly strong gains on smaller models, which are typically more prone to reasoning drift.
  • Guided Inference: When used to guide "beam search" (selecting the best path during generation), HalluGuard improved the accuracy of Qwen2.5-Math-7B on MATH-500 by 10% compared to standard prompting.
  • Efficiency: The post-processing time is negligible (<1ms), making it highly feasible for production deployments.

Limitations and Future Work

  • Offline Calibration: While HalluGuard doesn't need hallucination labels, it does require a small amount of offline optimization for its lightweight projection layers to align the NTK properties of different backbones.
  • Theoretical Gap: The authors acknowledge their risk bound is a "conservative envelope" (an upper bound). There is still room to tighten the gap between the theoretical maximum risk and the actual empirical errors.
  • Future Directions: The authors suggest using HalluGuard as a "prognostic indicator" in multi-turn dialogues—essentially acting as a "smoke detector" that can warn a system to stop or pivot before a hallucination fully manifests.

Summary updated

BibTeX
@inproceedings{zeng2026halluguard,
  author = {Xinyue Zeng and Junhong Lin and Yujun Yan and Feng Guo and Liang Shi and Jun Wu and Dawei Zhou},
  title = {{HalluGuard: Demystifying Data-Driven and Reasoning-Driven Hallucinations in LLMs}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ZURs3YZclt},
}
Figure