TRACEDET: HALLUCINATION DETECTION FROM THE DECODING TRACE OF DIFFUSION LARGE LANGUAGE MODELS

Shenxu Chang, Junchi Yu, Weixing Wang, Yongqiang Chen, Jialin Yu, Philip Torr, Jindong Gu

Standard Large Language Models (like GPT-4) are auto-regressive (AR-LLMs), predicting text one token at a time from left to right. Recently, Diffusion LLMs (D-LLMs) have emerged as a powerful alternative. Instead of generating text token-by-token, D-LLMs start with a sequence of "noise" (masked tokens) and iteratively refine the entire sequence simultaneously through a multi-step denoising process.

However, like their auto-regressive counterparts, D-LLMs still suffer from hallucinations. The challenge is that existing hallucination detection tools are built for the old "left-to-right" paradigm, usually relying on a single snapshot of the model's confidence at the final output step. In a D-LLM, a hallucination isn't just a single moment; it’s a journey. A model might oscillate between the truth and a lie over 50 steps of denoising. If you only look at the final output, you miss the "trace" of evidence indicating that the model was struggling or inconsistent.

To address this, researchers have introduced TraceDet, a novel framework designed to catch hallucinations in D-LLMs by analyzing their entire "decoding trace"—the iterative steps the model takes to turn noise into text.

The Nature of D-LLM Hallucinations

Because D-LLMs generate text globally rather than sequentially, the "path" to the answer is often more revealing than the answer itself. High entropy (uncertainty) in the middle of the denoising process is a massive red flag, even if the model looks "confident" in its final output.

The authors identified three distinct patterns in D-LLM traces that don't typically exist in standard AR-LLMs:

  1. Interleaving: The model flips back and forth between the correct answer and a hallucination during the denoising steps.
  2. Inconsistent Guesses: The model tries out several different wrong answers before finally settling on one.
  3. Persistent Error: The model commits to a lie early in the process and stubbornly sticks to it until the end.
Three distinct patterns of hallucination observed in D-LLMs: Interleaving, Inconsistent Guesses, and Persistent Error.

How TraceDet Works

TraceDet treats the multi-step denoising process as an action trace. By using an information-theoretic approach to identify the most suspicious moments in this process, TraceDet isolates the signals that matter most.

  • Denoising as a Markov Decision Process (MDP): The decoding process is formulated as an MDP where each "action" is the model's attempt to predict the full cleaned response at a specific timestep, conditioned on the previous intermediate output.
  • Information Bottleneck (IB) Principle: Not every step in a 100-step denoising process is useful for detecting a lie. TraceDet uses the IB principle to find a "minimally sufficient" sub-trace. It trains a filter (the sub-instance extractor) to pick out the specific timesteps that are most informative about whether the final answer is a hallucination, discarding the "noise" of stable, confident steps.
  • Token-wise Entropy Traces: Instead of using heavy, computationally expensive word embeddings, TraceDet extracts token-wise entropy traces. This captures the model's uncertainty at every position in the sentence across every step of time.
  • Architecture: The framework uses a lightweight Transformer to encode these entropy sequences and a Gumbel-Softmax trick to learn which steps to "mask" or "keep" during training.
The TraceDet architecture, which extracts a minimally sufficient sub-trace from the denoising process to detect hallucinations.

Experimental Setup & Key Results

The researchers evaluated TraceDet on two state-of-the-art D-LLMs (LLaDA-8B and Dream-7B) across three diverse benchmarks: TriviaQA (fact-based), HotpotQA (multi-hop reasoning), and CommonsenseQA (everyday reasoning).

  • Superior Accuracy: TraceDet achieved an average 15.2% improvement in AUROC (Area Under the Receiver Operating Characteristic) compared to standard baselines like Perplexity or Maximum Likelihood.
  • Robustness: The framework performed consistently well across different "remasking" strategies (how the model chooses which tokens to fix next) and varying generation lengths.
  • Speed and Efficiency: Unlike "Semantic Entropy" methods that require generating 10+ different answers to check for consistency (which is slow and expensive), TraceDet uses the signals already produced during a single generation. In head-to-head timing tests, TraceDet was roughly 3x to 5x faster than multi-sampling methods.

Limitations and Future Work

While highly effective, TraceDet has a few limitations. First, it requires a "white-box" setup: it needs access to the model's internal "logits" (the probability distribution for every token) to calculate entropy, meaning it cannot be used on "black-box" APIs. Second, TraceDet currently only identifies hallucinations. The next logical step for future research is using these "trace" signals to mitigate or fix the hallucination in real-time during the denoising process. Finally, while tested on 7B and 8B models, the behavior of traces in massive 70B+ diffusion models remains an open question.

Summary updated

BibTeX
@inproceedings{chang2026tracedet,
  author = {Shenxu Chang and Junchi Yu and Weixing Wang and Yongqiang Chen and Jialin Yu and Philip Torr and Jindong Gu},
  title = {{TRACEDET: HALLUCINATION DETECTION FROM THE DECODING TRACE OF DIFFUSION LARGE LANGUAGE MODELS}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=4puxTouUSV},
}
Figure