Skip to content

Revealing and Mitigating Memorization in Text-to-Image Diffusion Models via Cross-AttentionUnveiling and Mitigating Memorization in Text-to-image Diffusion Models through Cross Attention

arXiv· arXiv:2403.11052· Jie Ren, Yaxin Li, Shenglai Zeng, Han Xu, Lingjuan Lyu, Yue Xing, Jiliang Tang·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The researchers analyze the memorization phenomenon of text-to-image diffusion models, i.e., the model memorizing and reproducing images from the training data, which raises concerns about potential copyright infringement and privacy risks, from the perspective of the cross-attention mechanism, and accordingly propose detection and mitigation methods. The analysis shows that when memorization occurs, cross-attention disproportionately focuses on the embeddings of specific tokens, and the model overfits to these token embeddings, thereby memorizing the corresponding training images; the paper also discusses multiple intrinsic properties of cross-attention that contribute to memorization. The authors claim that the proposed method maintains generated image quality without sacrificing training and inference speed, and the code is open-sourced on GitHub (https://github.com/renjie3/MemAttn)。

Read originalarxiv.org