Prompt-Based Safety Guidance Is Ineffective for Unlearned Text-to-Image Diffusion Models
Jiwoo Shin, Byeonghu Na, Mina Kang, Wonhyeok Choi, Il-Chul Moon
TL;DR
The paper tackles safety in text-to-image diffusion by comparing training-based unlearning with training-free negative-prompt guidance and identifying a fundamental incompatibility when combining them. It introduces implicit concept embeddings, obtained via diffusion-based inversion, to replace explicit negative prompts and integrate with existing training-free methods without altering their mechanisms. Across nudity and violence benchmarks, the method consistently improves defense success while preserving the semantic intent of prompts, and these concept embeddings show transferability across related unlearned checkpoints. This work suggests a practical pathway to bridge unlearning and post-unlearning safety controls, with implications for deploying safer diffusion systems in real-world settings.
Abstract
Recent advances in text-to-image generative models have raised concerns about their potential to produce harmful content when provided with malicious input text prompts. To address this issue, two main approaches have emerged: (1) fine-tuning the model to unlearn harmful concepts and (2) training-free guidance methods that leverage negative prompts. However, we observe that combining these two orthogonal approaches often leads to marginal or even degraded defense performance. This observation indicates a critical incompatibility between two paradigms, which hinders their combined effectiveness. In this work, we address this issue by proposing a conceptually simple yet experimentally robust method: replacing the negative prompts used in training-free methods with implicit negative embeddings obtained through concept inversion. Our method requires no modification to either approach and can be easily integrated into existing pipelines. We experimentally validate its effectiveness on nudity and violence benchmarks, demonstrating consistent improvements in defense success rate while preserving the core semantics of input prompts.
