The Safety-Aware Denoiser for Text Diffusion Models

Amman Yusuf, Zhejun Jiang, Mijung Park
4/28/2026
cs.LGcs.AI
diffusion-flow

No confident code implementation found for this paper.

Abstract

Recent work on text diffusion models offers a promising alternative to autoregressive generation, but controlling their safety remains underexplored. Existing safety approaches are geared toward autoregressive models and typically rely on post-hoc filtering or inference-time interventions.

Show full abstract

These are inadequate for effectively addressing safety risks in text diffusion models. We propose the Safety-Aware Denoiser (SAD), a safety-guidance framework in text diffusion models. The SAD modifies the iterative denoising process such that the text sample at the final denoising step is steered toward provably safe regions of the text space. This inference-time method can integrate safety constraints into the denoiser, avoiding computationally expensive retraining of the underlying diffusion model and enabling flexible, lightweight safety guidance. We evaluate the safety of the generated text using the SAD, with respect to hazard taxonomy, memorization, and jailbreak. Experimental results show that SAD substantially reduces unsafe generations while preserving generation quality and fluency, outperforming existing methods. These results demonstrate that our safety guidance during denoising provides an effective and scalable mechanism for enforcing safety in text diffusion models.

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{yusuf2026safetyaware,
  title  = {The Safety-Aware Denoiser for Text Diffusion Models},
  author = {Amman Yusuf and Zhejun Jiang and Mijung Park},
  year   = {2026},
  eprint = {2605.08116},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.08116v3}
}

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

Discussion