atlas

Research map / Image generation / Text-to-image diffusion

UPAM: Unified Prompt Attack in Text-to-Image Generation Models Against Both Textual Filters and Visual Checkers

ICML 2024 · Image generation › Text-to-image diffusion · approach: T2I evaluation and controllable adapters · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes UPAM, a gradient-trained LLM+LoRA attack model that rewrites naive prompts into natural adversarial prompts that bypass both textual filters and CLIP-based visual checkers of black-box T2I APIs.

Problem

Black-box text-to-image APIs deploy both textual filters and visual checkers that block harmful prompts and images, and existing enumeration-based attacks are inefficient, mostly target only the textual filter, and produce unnatural prompts.

Approach

Trains a parameterized LLM-based attack model (frozen LLaMA + LoRA) with zeroth-order gradient estimates. Sphere-Probing Learning estimates gradients from binary Pass/Deny outputs when no image is returned, and Semantic-Enhancing Learning refines returned images toward target semantics via CLIP losses, with gradient harmonization to keep the model in the Pass region.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use UPAM instead of RIATIGDALL·E · Protocol AR-1 Precision: 8.65% -> 38.37%Helped
Use UPAM instead of RIATIGDALL·E 2 · Protocol AR-1 Precision: 8.55% -> 40.45%Helped
Use UPAM instead of RIATIGImagen · Protocol AR-1 Precision: 7.80% -> 36.16%Helped
Add SPL to UPAM (ablation)UPAM · DALL·E, Protocol AR-1: 0.22% -> 38.37%Helped
Add SEL to UPAM (ablation)UPAM · DALL·E, Protocol AR-1: 23.25% -> 38.37%Helped
Add Moving Closer to Boundary to SPL (ablation)UPAM · DALL·E, Protocol AR-1: 35.76% -> 38.37%Helped
Add Gradient Harmonization to SEL (ablation)UPAM · DALL·E, Protocol AR-1: 33.82% -> 38.37%Helped
Use a pretrained LLM instead of an untrained transformer (ablation)UPAM · DALL·E, Protocol APPL: 3954.85 -> 706.32Helped
Optimize LoRA rather than the pretrained LLM directly (ablation)UPAM · DALL·E, Protocol APPL: 2848.52 -> 706.32Helped

Surprising findings

Limitations

Experimental setup

Datasets: MS COCO

Benchmarks: MS COCO (10 classes)

Metrics: R-1 precision R-3 precision textual similarity inference time perplexity (GPT-2)

Baselines: TextFooler HomoSubs EvoPrompt HiddenVocab MACPrompt RIATIG

Builds on: ZOO (zeroth-order optimization) LoRA CLIP RIATIG

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy