CVDec 5, 2024

Safeguarding Text-to-Image Generation via Inference-Time Prompt-Noise Optimization

arXiv:2412.03876v16 citationsh-index: 5
Originality Highly original
AI Analysis

This addresses safety concerns for users of text-to-image models, offering an incremental improvement over existing methods.

The paper tackles the problem of unsafe image generation in text-to-image diffusion models by proposing a training-free Prompt-Noise Optimization method, which achieves state-of-the-art performance in suppressing toxic content and robustness to attacks without tuning model parameters.

Text-to-Image (T2I) diffusion models are widely recognized for their ability to generate high-quality and diverse images based on text prompts. However, despite recent advances, these models are still prone to generating unsafe images containing sensitive or inappropriate content, which can be harmful to users. Current efforts to prevent inappropriate image generation for diffusion models are easy to bypass and vulnerable to adversarial attacks. How to ensure that T2I models align with specific safety goals remains a significant challenge. In this work, we propose a novel, training-free approach, called Prompt-Noise Optimization (PNO), to mitigate unsafe image generation. Our method introduces a novel optimization framework that leverages both the continuous prompt embedding and the injected noise trajectory in the sampling process to generate safe images. Extensive numerical results demonstrate that our framework achieves state-of-the-art performance in suppressing toxic image generations and demonstrates robustness to adversarial attacks, without needing to tune the model parameters. Furthermore, compared with existing methods, PNO uses comparable generation time while offering the best tradeoff between the conflicting goals of safe generation and prompt-image alignment.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes