跳到正文
arXiv (AI + Vision + Imaging)· Puwei Lian, Yujun Cai, Songze Li, Yuezu Lv, Guanghui Wen·· 8 天前AI 评分20

记忆集中在少数注意力头:通过投影抑制缓解扩散模型记忆化

Memorization Lives in a Few Attention Heads: Mitigating Memorization in Diffusion Models via Projection-Based Suppression

AI 导读

研究发现扩散模型的记忆化主要由浅层少数语义控制异常强的交叉注意力头驱动,而非整个交叉注意力机制。为此提出基于投影的Top-k注意力头抑制方法,先用语义控制分数定位最相关的top-k注意力头,再通过条件与无条件表示间的方向投影移除其条件特定成分。实验显示该方法在多种扩散模型和数据集上有效降低记忆化,并在缓解记忆化与图像质量间取得更优权衡。

正文 · 原文

arXiv:2611.19427v1 Announce Type: new 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org