DynHD: Hallucination Detection for Diffusion Large Language Models via Denoising Dynamics Deviation Learning

Yanyu Qian, Yue Tan, Yixin Liu, Wang Yu, Shirui PanarXiv 2026

TL;DR

DynHD is a novel hallucination detection framework designed specifically for Diffusion Large Language Models (D-LLMs). By filtering out non-semantic padding tokens and comparing the model's actual denoising uncertainty trajectory against a learned "factual" reference path, it identifies hallucinations with state-of-the-art accuracy and high computational efficiency.

What Problem Does This Paper Address?

Most existing hallucination detection methods are built for Autoregressive LLMs (AR-LLMs), which generate text sequentially, token by token. However, Diffusion LLMs (D-LLMs) operate under a fundamentally different paradigm: they generate fixed-length sequences simultaneously and refine them iteratively over multiple denoising steps.

This unique generation mechanism introduces two major challenges that traditional detection methods fail to handle:

  1. Spatial Imbalance: Because D-LLMs generate fixed-length sequences, shorter answers are heavily padded with structural tokens (like <|endoftext|>). These structural tokens carry no semantic meaning but dilute the uncertainty signals (like entropy) of the actual informative tokens.
  2. Temporal Dynamics: Hallucination cues in D-LLMs are spread across the entire multi-step denoising trajectory rather than being concentrated in the final output step. Existing methods either ignore this process entirely or fail to capture the complex, question-specific ways that uncertainty naturally evolves over time.

Methods

Framework overview of DynHD showing semantic-aware evidence construction and dynamical deviation learning.

DynHD addresses these spatial and temporal challenges using a two-stage pipeline:

  • Semantic-aware Evidence Construction: To eliminate spatial noise, the framework first filters out task-invariant structural padding tokens. It then condenses the remaining tokens' entropy at each denoising step into a compact vector containing three statistical moments: Global Uncertainty (overall macro-level convergence), Peak Uncertainty (maximum entropy spikes indicating micro-level factual errors), and Regional Uncertainty (top-$k$ average entropy).
  • Dynamical Deviation Learning: Instead of evaluating raw uncertainty values directly, DynHD frames hallucination detection as a deviation-tracking problem.
  • It trains a Reference Evidence Dynamics Generator ($g_\theta$) solely on factual samples to learn how uncertainty should ideally dissipate for a given question.
  • A Deviation-based Hallucination Detector ($f_\phi$) compares the observed trajectory against this reference path. Using a temporal attention mechanism, the detector automatically prioritizes critical late-stage steps where discrepancies are most pronounced.
  • The model is optimized using specialized regularization losses that penalize overall path deviation and late-stage uncertainty rebounds.

Datasets

The authors evaluated DynHD on three widely adopted fact-based QA benchmarks:

  • TriviaQA: An open-domain dataset focusing on precise entity retrieval and factual knowledge.
  • HotpotQA: A multi-hop reasoning benchmark requiring information synthesis across multiple context fragments.
  • CommonsenseQA (CSQA): A dataset evaluating general reasoning capabilities beyond surface-level pattern matching.

The experiments utilized two representative D-LLM backbones: LLaDA-8B-Instruct and Dream-7B-Instruct.

Key Insights and Ideas

  • The Shape of the Curve Matters: Factual generations exhibit a smooth, monotonic decay in uncertainty as denoising progresses. Conversely, hallucinated generations show distinct morphological deviations, such as late-stage stagnation or an "uncertainty rebound" where the model becomes increasingly confused during the final refinement steps.
Entropy dynamics under spatial filtering showing distinct convergence patterns.
  • Filtering is Non-Negotiable: Simply averaging entropy across all tokens drowns out crucial signals. As shown in Figure 2, filtering out structural padding tokens is essential to make factual and hallucinated trajectories distinguishable.
  • Late-Stage Focus: Learned temporal attention weights naturally concentrate on the final steps of the denoising process. This validates the intuition that early steps contain random noise, while the final steps reveal whether the model successfully resolved factual inconsistencies.

Key Results

  • State-of-the-Art Performance: DynHD consistently outperformed all baselines. On the LLaDA-8B-Instruct model, it outperformed the previous state-of-the-art trajectory baseline (TraceDet) by an average absolute AUROC margin of 12.2% (achieving up to 86.6% AUROC). On Dream-7B-Instruct, it achieved an average AUROC of 84.3%.
  • High Efficiency: Unlike multi-sample methods (such as Semantic Entropy) that require computationally expensive repeated sampling, DynHD operates on pre-computed uncertainty fields from a single generation run. This gives it an ideal balance of accuracy and speed, making it suitable for real-time monitoring.
  • Strong Cross-Dataset Generalization: In zero-shot cross-task generalization tests (e.g., training on TriviaQA and testing on HotpotQA), DynHD achieved the highest average AUROC (72.9%), demonstrating that it captures universal denoising laws across different domains.

Limitations and Future Work

  • Task Scope: The current evaluation focuses primarily on short-answer, fact-based QA benchmarks. Future work is needed to assess how well DynHD generalizes to open-ended generation settings like long-form summarization, multi-turn dialogue, or code generation.
  • Domain Dependence: The reference generator relies on training with in-domain factual samples to establish baseline trajectories, which might impact its adaptability to entirely unseen domains.
  • Architecture Specificity: Because the framework is tightly coupled with the continuous iterative denoising process of Diffusion LLMs, extending these trajectory-based insights back to standard autoregressive models remains an open research question.

Summary updated

BibTeX
@misc{qian2026dynhd,
  author = {Yanyu Qian and Yue Tan and Yixin Liu and Wang Yu and Shirui Pan},
  title = {{DynHD: Hallucination Detection for Diffusion Large Language Models via Denoising Dynamics Deviation Learning}},
  year = {2026},
  eprint = {2603.16459},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.16459},
}
Figure