Beyond the Bidirectional Promise: Re-evaluating the Robustness of Diffusion Language Models
SourceFull paper
Article overview
Verdict
The study shows that robustness is not an automatic property of diffusion language model (DLM) architecture. LLaDA has a statistically significant robustness advantage over its matched autoregressive model, whereas Dream does not. DLMs generally retain corruption signals in their internal states but use them poorly during iterative decoding: they remain overconfident, and the proposed prompt-repair method does not improve performance.
Main idea
The study separates noise robustness into two stages: encoding corruption in hidden states and handling it during generation. Linearly recoverable corruption signals indicate that the main problem is usually not missing information, but routing and correction during denoising. This explains why architecturally similar DLMs can show different robustness depending on their learned weights.
Mechanism
DLMs train by masking tokens and reconstructing them with a bidirectional transformer. During inference, response tokens are iteratively unmasked, while prompt tokens remain fixed and cannot be corrected. Dream uses entropy-based remasking with T=512, temperature 0.2, top-p=0.95, and greedy commitment; incorrect Hugging Face origin sampling harms long outputs. D-GCG uses straight-through embeddings, suffix lengths 4/8/16, 50 steps, top-k=64, and one sampled timestep/mask, avoiding backpropagation through the full trajectory; memory cost is about 1.5× standard inference. Gradients are large but directionally incoherent, and loss trajectories oscillate because of timestep and mask marginalization. IPM detects low-confidence tokens, remasks selected positions, and performs short diffusion infilling; at sequence length about 64, Td=16, and T=128, it adds roughly 20 forward passes and about 1.5× latency. Reproduction plan: (1) match LLaDA/LLaMA-3 and Dream/Qwen2.5; (2) measure accuracy, RDI, AURDI, and ECE on three tasks and 32 conditions; (3) apply nine perturbation types; (4) run D-GCG with the stated settings; (5) train layerwise linear probes; (6) compare clean and corrupted trajectories and IPM variants. The records do not specify the complete construction of every noise sample or the full confidence-aggregation set.
What this is useful for
The findings are useful for evaluating robustness and calibration of masked/diffusion LLMs, choosing between DLM and AR models for noisy user inputs, and diagnosing whether failures arise in representation or decoding. Linear probes and trajectory analysis are suitable diagnostic tools; D-GCG is useful as a probe of resistance to short suffix attacks, not as a practical attack.
Risks / not proven
Generalization is limited by 7B–8B models, three tasks, nine noise types, capped generation length, and substring-based QA evaluation. Results may change at larger scales, with longer contexts, other domains, multilingual data, alternative calibration metrics, or diffusion-native attacks. Tokenizer mismatch is an additional risk. Because prompt tokens are fixed, the proposed procedure does not test full correction of corrupted inputs.
Full abstract
Diffusion Language Models (DLMs) offer a compelling alternative to autoregressive (AR) generation by enabling bidirectional context and iterative refinement. However, their reliability under natural input noise and adversarial attacks remains under-explored. To address this, we systematically evaluate DLM robustness and calibration against AR baselines, using two parameter-matched pairs (LLaDA-8B vs. LLaMA-3-8B and Dream-7B vs. Qwen2.5-7B) across 32 natural perturbation conditions, adversarial gradient probes, and mechanistic hidden-state analyses. This paired design effectively isolates architecture-intrinsic properties from weight-dependent behaviors. We find a nuanced robustness profile: while highly stochastic DLM loss landscapes naturally resist gradient-based adversarial suffixes, they provide no guaranteed defense against natural noise, proving that everyday robustness is weight-dependent rather than inherently architectural. Furthermore, DLMs exhibit systematic overconfidence, presenting a practical deployment hazard. Most crucially, mechanistic probing reveals that all models perfectly encode input corruption, isolating behavioral fragility entirely to a decoder routing failure. Consistent with this diagnosis, we show that surface-level prompt patching fails to improve over noisy baselines. Ultimately, DLM robustness cannot be patched on; it must be fundamentally integrated into the iterative decoding loop.