Asymmetric Bias in Text-to-Image Generation with Adversarial Attacks

Haz Sameen Shahgir, Xianghao Kong, Greg Ver Steeg, Yue Dong
12/22/2023
cs.LGcs.CR

No official code found. Best implementation: Patchwork53/AsymmetricAttack (6 stars, last commit 2024-11-06).

Abstract

The widespread use of Text-to-Image (T2I) models in content generation requires careful examination of their safety, including their robustness to adversarial attacks. Despite extensive research on adversarial attacks, the reasons for their effectiveness remain underexplored. This paper presents an empirical study on adversarial attacks against T2I models, focusing on analyzing factors associated with attack success rates (ASR). We introduce a new attack objective - entity swapping using adversarial suffixes and two gradient-based attack algorithms. Human and automatic evaluations reveal the asymmetric nature of ASRs on entity swap: for example, it is easier to replace "human" with "robot" in the prompt "a human dancing in the rain." with an adversarial suffix, but the reverse replacement is significantly harder. We further propose probing metrics to establish indicative signals from the model's beliefs to the adversarial ASR. We identify conditions that result in a success probability of 60% for adversarial attacks and others where this likelihood drops below 5%.

View on arXivView PDF

Code Implementations(1)

Official implementation of Asymmetric Bias in Text-to-Image Generation with Adversarial Attacks

60Python, Jupyter NotebookDec 21, 20231 years ago
adversarial-attacksbias-detectiondiffusion-modelsstable-diffusion

Similar Papers

Cite this paper

@article{shahgir2023asymmetric,
  title  = {Asymmetric Bias in Text-to-Image Generation with Adversarial Attacks},
  author = {Haz Sameen Shahgir and Xianghao Kong and Greg Ver Steeg and Yue Dong},
  year   = {2023},
  eprint = {2312.14440},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.14440v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.14440.svg)](https://codeofpaper.com/paper/2312.14440)

Discussion