Memorization Lives in a Few Attention Heads: Mitigating Memorization in Diffusion Models via Projection-Based Suppression
Puwei Lian, Yujun Cai, Songze Li, Yuezu Lv, Guanghui Wen
Key points
From the paper's conclusion- Our method first identifies the top-k attention heads most related to memorization using a semantic-control score, and then removes their condition-specific components through directional projection between conditional and unconditional representations.
Abstract
Diffusion models can memorize and reproduce training samples during inference, raising serious privacy and copyright concerns. Existing inference-time mitigation methods often suppress conditional information globally, which may reduce memorization but can also harm semantic alignment and image quality. In this paper, we revisit memorization from the perspective of cross-attention heads. Through systematic analysis and targeted ablation, we find that memorization is mainly driven by a small subset of shallow-layer attention heads with abnormally strong semantic control, rather than by the entire cross-attention mechanism. Motivated by this finding, we propose Projection-based Top-k Attention Head Suppression, a targeted inference-time mitigation method. Our method first identifies the top-k attention heads most related to memorization using a semantic-control score, and then removes their condition-specific components through directional projection between conditional and unconditional representations. This design selectively weakens memorization-related features while preserving useful semantic information. Extensive experiments on different diffusion models and datasets show that our method effectively reduces memorization and achieves a better trade-off between memorization mitigation and image quality than existing approaches.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Rethinking Memorization Mitigation in Diffusion Models: Reinforcing Text ConditioningarXiv · 2026
- JaRS: Contrast-Free Localization of Memorized Regions in Diffusion Models via Jacobian Row SumsarXiv · 2026
- Spectral Signatures of Memorization Basins in Diffusion TrajectoriesarXiv · 2026
- BEND: Spectral Bregman Losses for Multi-Image Unlearning in Diffusion ModelsarXiv · 2026
- Loss Curvature as a Sampling-Free Proxy for Memorization in Diffusion ModelsarXiv · 2026
- From Modes to Memories: Characterizing the Scale-Space Dynamics of Diffusion ModelsarXiv · 2026