arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.21665cs.CV
收藏

通过明亮结束注意力探索扩散模型中的局部记忆

Exploring Local Memorization in Diffusion Models via Bright Ending Attention

School of Computer Science, Faculty of Engineering, The University of Sydney, Australia(悉尼大学计算机科学学院、工程学院);School of Physics, Mathematics and Computing, The University of Western Australia, Australia(西澳大学物理、数学与计算学院);Center for Research in Computer Vision, University of Central Florida, USA(佛罗里达中央大学计算机视觉研究中心)

Chen Chen, Daochang Liu, Mubarak Shah, Chang Xu

AI总结:

本文发现扩散模型中的“明亮结束”注意力异常,用于定位局部记忆区域,并提出集成方法提升记忆检测与缓解性能。

摘要:

文本到图像扩散模型在生成逼真图像方面已达到前所未有的水平。然而,它们在推理过程中固有地记忆和复制训练数据的倾向引发了重大担忧,包括潜在的版权侵权。为此,人们提出了各种方法来评估、检测和缓解记忆。我们的分析表明,现有方法在处理局部记忆(仅特定图像区域被记忆)时明显表现不佳,相比之下,全局记忆(整个图像被复制)的处理效果较好。此外,它们无法定位局部记忆区域,使得难以进行局部调查。为解决这些问题,我们识别出一种新颖的“明亮结束”(BE)异常现象,这种现象出现在容易记忆训练图像的扩散模型中。BE指的是在文本到图像扩散模型中观察到的独特交叉注意力模式,其中被记忆的图像块在最后一次推理步骤中对最终文本标记的注意力显著高于未被记忆的图像块。这种模式突出了生成图像复制训练数据的区域,并能够高效定位记忆区域。基于此,我们提出了一种简单而有效的方法,将BE集成到现有框架中,通过缩小由局部记忆引起的性能差距,显著提高了它们的性能。我们的结果不仅验证了新定位任务的成功执行,而且还在所有现有任务上建立了新的最先进性能,强调了BE现象的重要性。

英文摘要:

Text-to-image diffusion models have achieved unprecedented proficiency in generating realistic images. However, their inherent tendency to memorize and replicate training data during inference raises significant concerns, including potential copyright infringement. In response, various methods have been proposed to evaluate, detect, and mitigate memorization. Our analysis reveals that existing approaches significantly underperform in handling local memorization, where only specific image regions are memorized, compared to global memorization, where the entire image is replicated. Also, they cannot locate the local memorization regions, making it hard to investigate locally. To address these, we identify a novel "bright ending" (BE) anomaly in diffusion models prone to memorizing training images. BE refers to a distinct cross-attention pattern observed in text-to-image diffusion models, where memorized image patches exhibit significantly greater attention to the final text token during the last inference step than non-memorized patches. This pattern highlights regions where the generated image replicates training data and enables efficient localization of memorized regions. Equipped with this, we propose a simple yet effective method to integrate BE into existing frameworks, significantly improving their performance by narrowing the performance gap caused by local memorization. Our results not only validate the successful execution of the new localization task but also establish new state-of-the-art performance across all existing tasks, underscoring the significance of the BE phenomenon.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑