D²-Monitor: Dynamic Safety Monitoring for Diffusion LLMs via Hesitation Signals

Aoxi Liu, Yupeng Chen, James Oldfield, Guanzhe Hong, Junchi Yu +3 more
5/25/2026
cs.AI
diffusion-flow

No confident code implementation found for this paper.

Abstract

Despite the emergence of diffusion large language models (D-LLMs) as an alternative to autoregressive large language models (AR-LLMs), safety monitoring for D-LLMs remains largely unexplored. Unlike AR-LLMs, D-LLMs generate text through a multi-step denoising process, exposing intermediate hidden representations that may contain safety-relevant information unavailable in standard single-step monitoring setups.

Show full abstract

Motivated by the suitability of lightweight probes for always-on monitoring, we analyze which trajectory-level signals best indicate when such probes are likely to struggle. We find that the most informative signal is safety hesitation: intermediate hidden states repeatedly falling within a small margin of the probe's decision boundary. The number of such hesitation steps in D-LLM's trajectory predicts probe failure effectively, providing a proxy for sample difficulty. Building on this analysis, we propose $D^2$-Monitor, in which a lightweight probe runs on every sample, producing a base prediction and a hesitation estimate that decides whether to escalate the sample to a more expressive probe. That probe is trained on trajectories with at least one hesitation step, and reads only the minimal span of those steps. Evaluated on 3 datasets (WildGuardMix, ToxicChat, OpenAI-Moderation) across 4 D-LLMs, $D^2$-Monitor achieves state-of-the-art performance with a compact parameter footprint ($\leq$ 0.93M parameters), and exhibits the best trade-off between effectiveness and efficiency relative to 8 baselines.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026dmonitor,
  title  = {D²-Monitor: Dynamic Safety Monitoring for Diffusion LLMs via Hesitation Signals},
  author = {Aoxi Liu and Yupeng Chen and James Oldfield and Guanzhe Hong and Junchi Yu and Baoyuan Wu and Philip Torr and Adel Bibi},
  year   = {2026},
  eprint = {2605.25893},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.25893v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.25893.svg)](https://codeofpaper.com/paper/2605.25893)

Discussion