atlas

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

Exploring Local Memorization in Diffusion Models via Bright Ending Attention

ICLR 2025 · Image generation › Text-to-image diffusion · approach: Compositional text-to-image guidance · 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.

Identifies a "bright ending" cross-attention anomaly in Stable Diffusion that localizes memorized image regions in one inference pass, and uses it to improve local memorization detection, mitigation, and evaluation.

Problem

Existing memorization evaluation, detection, and mitigation methods in diffusion models take a global view and miss local memorization, where only parts of a training image are replicated; they also cannot localize the memorized regions.

Approach

Memorized image patches receive abnormally high cross-attention from the final text (end) token at the last inference step ("bright ending"), so the end-token attention map serves as a training-data-free local memorization mask that is plugged into magnitude-based detection, prompt-optimization mitigation, and a masked L2 similarity metric.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the BE mask to the detection magnitude (D to LD) (ablation)Baseline detection strategy · Local memorization, T=1/10/50AUC: 0.918 -> 0.943; 0.989 -> 0.995; 0.990 -> 0.996Helped
Add the BE mask to the detection magnitude (D to LD) (ablation)Baseline detection strategy · Local memorization, T=1/10/50F1: 0.864 -> 0.893; 0.982 -> 0.987; 0.983 -> 0.988Helped
Add the BE mask to the detection magnitude (D to LD) (ablation)Baseline detection strategy · Local memorization, T=1/10/50T@1%F: 0.629 -> 0.731; 0.953 -> 0.985; 0.560 -> 0.926Helped
Add the BE mask to the detection magnitude (D to LD) (ablation)Baseline detection strategy · Global memorization, T=1/10/50AUC: 0.979 -> 0.981; 1.000 -> 1.000; 0.999 -> 0.999No clear effect
Add the BE mask to the detection magnitude (D to LD) (ablation)Baseline detection strategy · Global memorization, T=1/10/50F1: 0.944 -> 0.948; 0.987 -> 0.987; 0.976 -> 0.977Mixed
Add the BE mask to the detection magnitude (D to LD) (ablation)Baseline detection strategy · Global memorization, T=1/10/50T@1%F: 0.934 -> 0.940; 1.000 -> 1.000; 1.000 -> 1.000No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: LAION prompts (non-memorized) Lexica prompts (non-memorized) COCO captions (non-memorized) Random captions (non-memorized) Memorized prompt set from prior work (300 selected)

Benchmarks: Local vs global memorization detection on SD v1-4 generations (9,600 images)

Metrics: AUC F1 T@1%F CLIP score SSCD similarity F1 for memorization classification

Baselines: Magnitude-based detection (D) Prompt-embedding mitigation (Wen et al.) SSCD Cross-attention entropy detection Nearest-neighbor global similarity

Builds on: magnitude-based memorization detection SSCD classifier-free guidance

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