Breaking Free: How to Hack Safety Guardrails in Black-Box Diffusion Models!
Shashank Kotyan, Po-Yuan Mao, Pin-Yu Chen, Danilo Vasconcellos Vargas
TL;DR
EvoSeed addresses robustness gaps by enabling black-box creation of natural adversarial samples using a conditional diffusion model and a classifier, optimized via CMA-ES over an initial seed with an $L_\infty$ constraint. It demonstrates that high-quality, photorealistic adversarial images can mislead classifiers while staying perceptually close to the original, raising safety concerns about diffusion-model deployments. The work provides both qualitative and quantitative evidence of vulnerabilities, including transferability across classifiers and potential misuse for bypassing safety checks, and establishes a baseline for evolutionary-strategy based adversarial search in unrestricted diffusion-model settings. Overall, EvoSeed offers a framework to stress-test and improve robustness of vision systems while highlighting urgent considerations for safety and policy in diffusion-based AI systems.
Abstract
Deep neural networks can be exploited using natural adversarial samples, which do not impact human perception. Current approaches often rely on deep neural networks' white-box nature to generate these adversarial samples or synthetically alter the distribution of adversarial samples compared to the training distribution. In contrast, we propose EvoSeed, a novel evolutionary strategy-based algorithmic framework for generating photo-realistic natural adversarial samples. Our EvoSeed framework uses auxiliary Conditional Diffusion and Classifier models to operate in a black-box setting. We employ CMA-ES to optimize the search for an initial seed vector, which, when processed by the Conditional Diffusion Model, results in the natural adversarial sample misclassified by the Classifier Model. Experiments show that generated adversarial images are of high image quality, raising concerns about generating harmful content bypassing safety classifiers. Our research opens new avenues to understanding the limitations of current safety mechanisms and the risk of plausible attacks against classifier systems using image generation. Project Website can be accessed at: https://shashankkotyan.github.io/EvoSeed.
