Saved in:
Bibliographic Details
Main Authors: Zhang, Chenyu, Wang, Lanjun, Liu, Anan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2401.08725
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913198637056000
author Zhang, Chenyu
Wang, Lanjun
Liu, Anan
author_facet Zhang, Chenyu
Wang, Lanjun
Liu, Anan
contents Recent developments in text-to-image models, particularly Stable Diffusion, have marked significant achievements in various applications. With these advancements, there are growing safety concerns about the vulnerability of the model that malicious entities exploit to generate targeted harmful images. However, the existing methods in the vulnerability of the model mainly evaluate the alignment between the prompt and generated images, but fall short in revealing the vulnerability associated with targeted image generation. In this study, we formulate the problem of targeted adversarial attack on Stable Diffusion and propose a framework to generate adversarial prompts. Specifically, we design a gradient-based embedding optimization method to craft reliable adversarial prompts that guide stable diffusion to generate specific images. Furthermore, after obtaining successful adversarial prompts, we reveal the mechanisms that cause the vulnerability of the model. Extensive experiments on two targeted attack tasks demonstrate the effectiveness of our method in targeted attacks. The code can be obtained in https://github.com/datar001/Revealing-Vulnerabilities-in-Stable-Diffusion-via-Targeted-Attacks.
format Preprint
id arxiv_https___arxiv_org_abs_2401_08725
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Revealing Vulnerabilities in Stable Diffusion via Targeted Attacks
Zhang, Chenyu
Wang, Lanjun
Liu, Anan
Computer Vision and Pattern Recognition
Recent developments in text-to-image models, particularly Stable Diffusion, have marked significant achievements in various applications. With these advancements, there are growing safety concerns about the vulnerability of the model that malicious entities exploit to generate targeted harmful images. However, the existing methods in the vulnerability of the model mainly evaluate the alignment between the prompt and generated images, but fall short in revealing the vulnerability associated with targeted image generation. In this study, we formulate the problem of targeted adversarial attack on Stable Diffusion and propose a framework to generate adversarial prompts. Specifically, we design a gradient-based embedding optimization method to craft reliable adversarial prompts that guide stable diffusion to generate specific images. Furthermore, after obtaining successful adversarial prompts, we reveal the mechanisms that cause the vulnerability of the model. Extensive experiments on two targeted attack tasks demonstrate the effectiveness of our method in targeted attacks. The code can be obtained in https://github.com/datar001/Revealing-Vulnerabilities-in-Stable-Diffusion-via-Targeted-Attacks.
title Revealing Vulnerabilities in Stable Diffusion via Targeted Attacks
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2401.08725