The Safety-Aware Denoiser for Text Diffusion Models

· Source: cs.AI updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy · Depth: Expert, extended

Summary

The Safety-Aware Denoiser (SAD) is a novel, training-free safety-guidance framework designed for text diffusion models (TDMs), addressing their underexplored safety control. Unlike existing methods geared towards autoregressive models, SAD modifies the iterative denoising process at inference time, steering text generation towards provably safe regions without computationally expensive retraining. Evaluated across hazard taxonomy, memorization, and jailbreak robustness, SAD significantly reduces unsafe generations while maintaining quality, diversity, and fluency. For instance, it lowered the Attack Success Rate (ASR) on malicious RealToxicityPrompts for MDLM from 38.4% to 32.6-33.4% and for LLaDA-8B-Instruct against PAD attacks from 43.2% to 29.0% on WildJailBreak. SAD also substantially decreased fuzzy overlap, indicating reduced memorization on WikiText-103. Its efficiency is favorable, with minimal throughput overhead even with large negation sets.

Key takeaway

For AI Security Engineers deploying text diffusion models, you should integrate the Safety-Aware Denoiser (SAD) into your inference pipeline. This training-free method significantly reduces hazardous content, memorization, and jailbreak vulnerability by steering the denoising process away from unsafe regions. You can achieve substantial safety improvements with minimal throughput overhead, especially by applying SAD during early denoising steps and curating a small, targeted negation set.

Key insights

Safety-Aware Denoiser (SAD) integrates inference-time safety guidance into text diffusion models' denoising process, preventing unsafe outputs without retraining.

Principles

Method

SAD modifies the iterative denoising process by subtracting "unsafe" components from the data denoiser, using a negation set of unsafe examples and a scale η to steer generation away from hazardous regions.

In practice

Topics

Code references

Best for: Research Scientist, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.AI updates on arXiv.org.