atlas

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

Detecting, Explaining, and Mitigating Memorization in Diffusion Models

ICLR 2024 · Image generation › Text-to-image diffusion · approach: Inference-time T2I improvement · 1 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 detecting memorized prompts in diffusion models via the magnitude of text-conditional noise predictions, plus token-level attribution and two mitigation strategies (inference-time embedding perturbation, training-time sample filtering).

Problem

Diffusion models sometimes reproduce training images verbatim, creating legal and privacy risks; existing detectors need many generations or access to the training data and are slow.

Approach

Memorized prompts make the text-conditional noise prediction (epsilon(x_t,e_p) - epsilon(x_t,e_empty)) unusually large regardless of initialization, so its average L2 magnitude serves as a cheap detection score usable from the first denoising step with one generation; the same quantity is minimized for token attribution and to perturb prompt embeddings or filter training samples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use text-conditional noise prediction magnitude instead of SSCD generation density, with 1 generation at the first stepStable Diffusion v1 memorization detection · Stable Diffusion v1 memorized prompts, 1st StepAUCHelped
Use text-conditional noise prediction magnitude instead of SSCD generation density, with 1 generation at the first stepStable Diffusion v1 memorization detection · Stable Diffusion v1 memorized prompts, 1st StepTPR@1%FPRHelped
Use text-conditional noise prediction magnitude instead of SSCD generation density, with 1 generation at the first stepStable Diffusion v1 memorization detection · Stable Diffusion v1 memorized prompts, 1st StepTime (seconds)Helped
Minimize text-conditional prediction magnitude in the prompt embedding at inference timeStable Diffusion fine-tuned model · Duplicated LAION memorization promptsSSCD similarityHelped
Minimize text-conditional prediction magnitude in the prompt embedding at inference timeStable Diffusion fine-tuned model · Duplicated LAION memorization promptsCLIP scoreHelped
Filter training samples when text-conditional prediction magnitude exceeds a thresholdStable Diffusion fine-tuned model · Duplicated LAION memorization promptsSSCD similarityHelped
Filter training samples when text-conditional prediction magnitude exceeds a thresholdStable Diffusion fine-tuned model · Duplicated LAION memorization promptsCLIP scoreHelped
Use higher inference target losses or training thresholdsProposed memorization mitigation · Duplicated LAION memorization promptsSSCD similarityMixed

Surprising findings

Limitations

Experimental setup

Datasets: LAION COCO Lexica.art memorized prompts from Carlini et al. (500 prompts)

Benchmarks: memorized prompts from Carlini et al. (500) vs. 2000 non-memorized prompts from LAION, COCO, Lexica.art, random strings

Metrics: AUC TPR@1%FPR running time (s) SSCD similarity CLIP score

Baselines: Density_l2 (Carlini et al. generation density) Density_SSCD random token addition (RTA)

Builds on: classifier-free guidance DDIM SSCD Stable Diffusion

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