Skip to main content
QUICK REVIEW

[Paper Review] Evaluating the Robustness of Text-to-image Diffusion Models against Real-world Attacks

Hongcheng Gao, Hao Zhang|arXiv (Cornell University)|Jun 16, 2023
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

This paper introduces the first black-box adversarial attack framework targeting text-to-image diffusion models using realistic, human-like input perturbations—such as typos, glyph substitutions, and phonetic errors—while preserving semantic meaning. By leveraging distribution-based attack objectives and greedy search, the method achieves high success rates with minimal query counts and low perturbation rates, exposing significant robustness vulnerabilities in models like Stable Diffusion and DALL-E 2.

ABSTRACT

Text-to-image (T2I) diffusion models (DMs) have shown promise in generating high-quality images from textual descriptions. The real-world applications of these models require particular attention to their safety and fidelity, but this has not been sufficiently explored. One fundamental question is whether existing T2I DMs are robust against variations over input texts. To answer it, this work provides the first robustness evaluation of T2I DMs against real-world attacks. Unlike prior studies that focus on malicious attacks involving apocryphal alterations to the input texts, we consider an attack space spanned by realistic errors (e.g., typo, glyph, phonetic) that humans can make, to ensure semantic consistency. Given the inherent randomness of the generation process, we develop novel distribution-based attack objectives to mislead T2I DMs. We perform attacks in a black-box manner without any knowledge of the model. Extensive experiments demonstrate the effectiveness of our method for attacking popular T2I DMs and simultaneously reveal their non-trivial robustness issues. Moreover, we provide an in-depth analysis of our method to show that it is not designed to attack the text encoder in T2I DMs solely.

Motivation & Objective

  • To evaluate the robustness of text-to-image diffusion models against realistic, human-generated input errors such as typos, glyph substitutions, and phonetic variations.
  • To develop a black-box attack method that does not require model architecture or weight knowledge, focusing on semantic consistency in perturbations.
  • To investigate whether attacks primarily target the text encoder or also affect the diffusion process itself.
  • To demonstrate the effectiveness of distribution-based attack objectives in misleading image generation under minimal perturbations and queries.

Proposed method

  • Proposes a black-box attack framework using greedy search to identify and modify high-influence keywords in input prompts based on their marginal impact on the generation distribution.
  • Employs novel distribution-based attack objectives—specifically 2ST and MMD distance—to misalign generated images from the original text description.
  • Applies character-level perturbations following three realistic rules: typo (Levenshtein distance ≤3), glyph substitution (visually similar characters), and phonetic replacement (homophonic or phonetically close words).
  • Uses query-efficient optimization by targeting individual words and minimizing true query times (excluding sentence length), enabling stealthy attacks.
  • Validates the attack on multiple datasets including ChatGPT-GP, LAION-COCO, DiffusionDB, and SBU Corpus, with human evaluation to ensure semantic consistency.
  • Analyzes attack effectiveness across models like Stable Diffusion and DALL-E 2, confirming that attacks are not limited to the text encoder but also affect the diffusion process.

Experimental results

Research questions

  • RQ1Can realistic, human-like text perturbations (e.g., typos, phonetic errors) effectively mislead text-to-image diffusion models while preserving semantic meaning?
  • RQ2How effective are distribution-based attack objectives (e.g., 2ST, MMD) in reducing text-to-image similarity under black-box constraints?
  • RQ3Does the attack primarily exploit the text encoder, or does it also influence the diffusion process itself?
  • RQ4What is the minimal perturbation rate and query count required to achieve high attack success rates in real-world settings?

Key findings

  • The attack achieved a drop in text-image similarity (S_I2T) of over 4 points across all datasets, with success rates exceeding 80% in human evaluations.
  • On average, the method required less than 10 true query times to achieve significant S_I2T degradation, demonstrating high query efficiency.
  • Perturbations were minimal—Levenshtein distance ≤3 for typos and ≤6 for phonetic attacks—indicating stealthiness.
  • Models like DALL-E 2 and Stable Diffusion showed high vulnerability, with attack success rates above 80% even at low perturbation rates.
  • Human evaluation scores remained above 70%, confirming that modified prompts remained semantically coherent and natural.
  • The attack was effective not only on the text encoder but also on the diffusion process, indicating broader architectural vulnerabilities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.