Beyond Token Positions: Safety Alignment Across Denoising Steps in Diffusion Language Models

Guoli Wang, Haonan Shi, Tu Ouyang, An Wang
8/31/2026
cs.CLcs.AI

No official code found. Best implementation: Glresearch1/RAEC (1 star, last commit 2026-08-25).

Abstract

Diffusion large language models (dLLMs) generate text through iterative denoising rather than left-to-right decoding. This generation paradigm introduces two axes that can influence safety alignment: when tokens are generated during denoising and where they appear in the response. In this paper, we measure dLLM safety behavior under harmful prompts by tracing intermediate token distributions and commitment decisions throughout denoising. Our analysis shows that refusal signals are concentrated in early denoising steps and leading response positions, and the tokens committed early can strongly shape the final safety outcome. Our measurements further show that the denoising step and persistence of refusal-token commitment are important for understanding dLLM safety. Based on these findings, we propose Refusal-Aware Early Commitment (RAEC), a simple training-free decoding method that commits persistent refusal signals from early steps. Experiments on LLaDA and Dream show that RAEC reduces attack success rates while largely preserving utility. The code is available at https://github.com/Glresearch1/RAEC.

View on arXivView PDF

Code Implementations(1)

Glresearch1/RAECCommunity25%

[EMNLP 2026] Beyond Token Positions: Safety Alignment Across Denoising Steps in Diffusion Language Models

10Aug 25, 20261 months ago

Cite this paper

@article{wang2026beyond,
  title  = {Beyond Token Positions: Safety Alignment Across Denoising Steps in Diffusion Language Models},
  author = {Guoli Wang and Haonan Shi and Tu Ouyang and An Wang},
  year   = {2026},
  eprint = {2609.00495},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.00495v1}
}

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/2609.00495.svg)](https://codeofpaper.com/paper/2609.00495)

Discussion