atlas

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

MMA-Diffusion: MultiModal Attack on Diffusion Models

CVPR 2024 · Image generation › Text-to-image diffusion · approach: Inference-time T2I improvement · 53 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 MMA-Diffusion, a multimodal attack that jointly uses gradient-searched adversarial text prompts (avoiding sensitive words) and adversarial image perturbations to bypass prompt filters and post-hoc safety checkers in T2I diffusion models.

Problem

T2I diffusion models use prompt filters and post-hoc safety checkers to block NSFW generation, but their robustness against adversarial attacks that evade both input and output safeguards is unclear.

Approach

Text-modal attack searches free-form adversarial token sequences via gradient-guided token search that match the target prompt's text-encoder embedding while masking sensitive words; image-modal attack uses PGD on input images to make the post-hoc safety checker's NSFW-embedding loss fall below thresholds, and the two are combined.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use text-modal adversarial prompts instead of I2P promptsSDv1.5 · Q16, MHSC, SC (AVG.)ASR-4: 61.27 -> 83.37Helped
Use text-modal adversarial prompts instead of I2P promptsSDv1.5 · Q16, MHSC, SC (AVG.)ASR-1: 36.58 -> 67.54Helped
Transfer text-modal adversarial prompts to SDXLv1.0MMA-Diffusion · Q16, MHSC, SC (AVG.)ASR-4: 73.70Helped
Transfer text-modal adversarial prompts to SLDMMA-Diffusion · Q16, MHSC, SC (AVG.)ASR-4: 76.73Helped
Apply 10-query text-modal attacksMMA-Diffusion on Midjourney · UnsafeDiffattack success rate: 83.33%Helped
Apply 10-query text-modal attacksMMA-Diffusion on Leonardo.Ai · UnsafeDiffattack success rate: 90.00%Helped
Add image-modal adversarial perturbations to the input imageSD image editing with safety checker · Image editingASR-4: 88.52Helped
Combine adversarial prompts with adversarial imagesSD image editing with prompt filter and safety checker · Image editingASR-4: 85.48Helped
Use adversarial prompts in addition to adversarial imagesSD image editing · Image editingASR-4: 88.52 -> 85.48Hurt
Use adversarial prompts in addition to adversarial imagesSD image editing · Image editingASR-1: 78.69 -> 75.52Hurt

Surprising findings

Limitations

Experimental setup

Datasets: LAION-COCO UnsafeDiff I2P

Benchmarks: UnsafeDiff LAION-COCO subset

Metrics: ASR-N attack success rate

Baselines: I2P QF-Attack GREEDY QF-Attack GENETIC QF-PGD SLD

Builds on: QF-Attack LLM-attack (GCG) Projected gradient descent I2P

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