On the Multi-modal Vulnerability of Diffusion Models
Dingcheng Yang, Yang Bai, Xiaojun Jia, Yang Liu, Xiaochun Cao, Wenjian Yu
TL;DR
The study reveals a cross-modal vulnerability in diffusion-based T2I systems by showing text prompts are dispersed in feature space while image prompts cluster by object, indicating robustness gaps. It introduces MMP-Attack, a gradient-based, discrete optimization method that appends a multi-modal suffix to the original prompt to steer generation toward a target object while suppressing the original, using both image- and text-based CLIP targets with a loss balanced by $\lambda$. Empirical results on COCO-derived categories demonstrate strong attack performance, high universality across prompts, and transferability to multiple diffusion models and even black-box commercial services, with attack efficacy improving when both modalities are used. These findings underscore significant security concerns in AIGC and motivate the development of defenses against multi-modal prompt manipulation. The approach combines multi-modal priors, STE-based discrete optimization, and cross-model evaluation to advance understanding of diffusion-model robustness and prompt-based adversarial strategies, with practical implications for prompt screening and model-provider safeguards.
Abstract
Diffusion models have been widely deployed in various image generation tasks, demonstrating an extraordinary connection between image and text modalities. Although prior studies have explored the vulnerability of diffusion models from the perspectives of text and image modalities separately, the current research landscape has not yet thoroughly investigated the vulnerabilities that arise from the integration of multiple modalities, specifically through the joint analysis of textual and visual features. In this paper, we are the first to visualize both text and image feature space embedded by diffusion models and observe a significant difference. The prompts are embedded chaotically in the text feature space, while in the image feature space they are clustered according to their subjects. These fascinating findings may underscore a potential misalignment in robustness between the two modalities that exists within diffusion models. Based on this observation, we propose MMP-Attack, which leverages multi-modal priors (MMP) to manipulate the generation results of diffusion models by appending a specific suffix to the original prompt. Specifically, our goal is to induce diffusion models to generate a specific object while simultaneously eliminating the original object. Our MMP-Attack shows a notable advantage over existing studies with superior manipulation capability and efficiency. Our code is publicly available at \url{https://github.com/ydc123/MMP-Attack}.
