cs.LGOct 13, 2026

The Tokens Strike Back: Safety-Aware Denoising with Directional Embedding-based Revision

Authors: Amman Yusuf, Jiwoo Shin, Ruizhi Deng, Heitor Rodrigues Guimarães, Nikita Dvornik, Mijung Park

Organizations: Department of Computer Science, University of British Columbia, Canada · Korea Advanced Institute of Science and Technology (KAIST), South Korea · RBC Borealis, Canada

Abstract

The Safety-Aware Denoiser (SAD) is a recent, training-free, safety-guidance framework for text diffusion models. During inference, SAD steers text samples toward safe regions of the token probability space. In this paper, we propose SADDER\mathit{SADDER} (Safety-Aware Denoising with Directional Embedding-based Revision), which improves the safety and quality trade-offs of SAD by exploiting a safety-guidance signal in the embedding (or activation) space for each token position, then updating the token positions using the SAD update rule multiplied by the guidance signal. This multiplication acts as a gating mechanism: tokens with a high unsafe signal are more likely to be modified during inference following the SAD update rule. However, such an update does not automatically preserve the conditional mean, i.e., the denoiser of a fixed target distribution. We therefore theoretically derive new position-wise target distributions for which the modified denoiser is exact. Furthermore, we derive conditions under which the position-wise target distributions match a global target distribution. We test our SADDER\mathit{SADDER} method on popular Masked Diffusion Language Models (MDLMs) and Uniform-State Diffusion Models (USDMs) across unsafe continuation and jailbreak settings, and show that SADDER\mathit{SADDER} achieves a better balance between safety, generation quality, and inference cost than existing methods.

Figures & tables

Appendix figures & tables35 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. The Safety-Aware Denoiser for Text Diffusion Models

    Apr 28, 2026Amman Yusuf, Zhejun Jiang, Mijung ParkDiffusion Model GuidanceDiffusion Language Models

  2. Adaptive Steering and Remasking for Safe Generation in Diffusion Language Models

    May 13, 2026Yejin Lee, Ungsik Kim, Yo-Sub HanAdversarial Attacks on LLMsDiffusion Language Model Inference

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

    Aug 31, 2026Guoli Wang, Haonan Shi, Tu Ouyang +1Language Model Safety EvaluationDiffusion Language Model Decoding