Memorization Lives in a Few Attention Heads: Mitigating Memorization in Diffusion Models via Projection-Based Suppression
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.
Create a lesson
Metadata
- Categories
- cs.CV, cs.CR
Related papers
ASCG: Adaptive Spatial Classifier Guidance for Surgical Concept Suppression in Diffusion Models
Shared title terminologycs.CVYounghwan Kil, Joonhyeong Park, Giung Nam et al.
JaRS: Contrast-Free Localization of Memorized Regions in Diffusion Models via Jacobian Row Sums
Shared title terminologycs.CVSaisuchith Mahajan, Aditey Nandan, Rohit Singh et al.
ET: Efficient Transfer from Softmax to Hybrid Attention
Shared title terminologycs.CVGuangfu Guo, Xiaoqian Lu, Linsey Pang et al.
Anchoring VAE Fine-Tuning to Its Latent Diffusion Prior
Shared title terminologycs.CVRafael Bischof, Dominik Narnhofer, Julius Erbach et al.
Head Anything: Correspondence-Guided Joint Generation of 3D Heads from Few Images
Shared title terminologycs.CVUmut Kocasari, Bartłomiej Baranowski, Richard Shaw et al.
CrownFusion: 3D Dental Crown Generation Using Geometry Images and Latent Diffusion
Shared title terminologycs.CVJohan Ziruo Ye, Xingguang Yan, Søren Hauberg et al.