Security Risk of Misalignment between Text and Image in Multi-modal Model
Xiaosen Wang, Zhijin Ge, Shaokang Wang
TL;DR
This work reveals a misalignment between text and image conditioning in multi-modal diffusion models, showing that an adversary can steer generated content by modifying the input image while fixing the prompt. It introduces Prompt-Restricted Multi-modal Attack (PReMA), which optimizes an adversarial image to realize a target content under a given prompt and uses a loss term to bypass NSFW safety checkers. Across inpainting and style transfer tasks and multiple models, PReMA achieves high NSFW-content generation and demonstrates transferability and safety-checker circumvention, highlighting a novel security risk in real-world editing workflows. The findings motivate stronger image-modality alignment and more robust defenses for diffusion models to mitigate abuse and ensure safer deployment in multi-modal content creation.
Abstract
Despite the notable advancements and versatility of multi-modal diffusion models, such as text-to-image models, their susceptibility to adversarial inputs remains underexplored. Contrary to expectations, our investigations reveal that the alignment between textual and Image modalities in existing diffusion models is inadequate. This misalignment presents significant risks, especially in the generation of inappropriate or Not-Safe-For-Work (NSFW) content. To this end, we propose a novel attack called Prompt-Restricted Multi-modal Attack (PReMA) to manipulate the generated content by modifying the input image in conjunction with any specified prompt, without altering the prompt itself. PReMA is the first attack that manipulates model outputs by solely creating adversarial images, distinguishing itself from prior methods that primarily generate adversarial prompts to produce NSFW content. Consequently, PReMA poses a novel threat to the integrity of multi-modal diffusion models, particularly in image-editing applications that operate with fixed prompts. Comprehensive evaluations conducted on image inpainting and style transfer tasks across various models confirm the potent efficacy of PReMA.
