Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Attacks on Image Generation With Made-Up Words

Raphaël Millière|arXiv (Cornell University)|Aug 4, 2022
Digital Media Forensic DetectionComputer Science17 citations
TL;DR

This paper introduces two adversarial prompting techniques—macaronic prompting (combining subword units from multiple languages) and evocative prompting (designing nonce words with morphological similarity to real words)—to reliably generate specific visual concepts in text-to-image models using made-up words. The key finding is that these methods can bypass content moderation filters based on keyword blacklists, revealing a critical vulnerability in current safety mechanisms.

ABSTRACT

Text-guided image generation models can be prompted to generate images using nonce words adversarially designed to robustly evoke specific visual concepts. Two approaches for such generation are introduced: macaronic prompting, which involves designing cryptic hybrid words by concatenating subword units from different languages; and evocative prompting, which involves designing nonce words whose broad morphological features are similar enough to that of existing words to trigger robust visual associations. The two methods can also be combined to generate images associated with more specific visual concepts. The implications of these techniques for the circumvention of existing approaches to content moderation, and particularly the generation of offensive or harmful images, are discussed.

Motivation & Objective

  • To investigate whether adversarial prompting with made-up words can reliably generate specific visual concepts in text-guided image generation models.
  • To evaluate the robustness of such attacks across different models, including DALL-E 2 and DALL-E mini.
  • To assess the limitations of keyword-based content moderation in preventing malicious image generation through nonce words.
  • To explore the role of subword tokenization and multilingual morphology in enabling these adversarial attacks.
  • To propose practical defenses against such attacks, including visual classifier feedback and multilingual vocabulary filtering.

Proposed method

  • Macaronic prompting constructs cryptic hybrid words by concatenating subword units from multiple languages (e.g., English, French, German, Italian, Spanish).
  • Evocative prompting designs nonce words with morphological features resembling real words in a target language to trigger visual associations.
  • The two methods can be combined to generate images with more specific visual concepts than either method alone.
  • The approach leverages the subword tokenization mechanism (e.g., BPE) used in models like CLIP, which can map unfamiliar strings to meaningful visual concepts via shared subword units.
  • The method is evaluated across multiple text-to-image models, including DALL-E 2 and DALL-E mini, to test cross-model robustness.
  • The paper proposes defense strategies such as filtering prompts not found in multilingual vocabularies or using visual embeddings to detect and block harmful outputs.

Experimental results

Research questions

  • RQ1Can adversarial prompts composed of made-up words reliably generate specific visual concepts in text-to-image models?
  • RQ2How does macaronic prompting, which combines subwords from multiple languages, influence model behavior and visual output?
  • RQ3To what extent does evocative prompting—using morphologically similar nonce words—induce consistent visual associations?
  • RQ4Why do some macaronic and evocative prompts work across models like DALL-E 2 but not DALL-E mini?
  • RQ5Can current content moderation systems based on keyword blacklists effectively prevent such adversarial attacks?

Key findings

  • Macaronic prompting demonstrated reliable cross-model performance, with some prompts generating consistent visual outputs across DALL-E 2 and DALL-E mini, indicating robustness to model architecture differences.
  • Evocative prompting showed limited but detectable effectiveness in domains with salient morphological patterns, such as biological nomenclature and medical terminology.
  • The association between nonce strings and visual concepts is partially mediated by subword tokenization, as seen in the case of 'Apoploe vesrreaitais' sharing subwords with real Latin bird family names.
  • DALL-E 2 was found to generate images of birds using the nonce string 'Apoploe vesrreaitais', suggesting a functional 'hidden vocabulary' formed through subword alignment.
  • The study found that DALL-E mini is vulnerable to some macaronic prompts but not others, indicating model-specific sensitivity to prompt structure.
  • Current keyword-based content filters are insufficient to block such attacks, as the prompts are semantically meaningless to humans but semantically meaningful to models via subword processing.

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.