注意力重叠是文本到图像扩散模型中实体缺失问题的成因!
Attention Overlap Is Responsible for The Entity Missing Problem in Text-to-image Diffusion Models!
AI总结:
该研究发现文本到图像扩散模型的实体缺失问题源于注意力重叠,提出四种无需重训练的损失函数调节注意力重叠,在多项基准上显著提升组合生成准确率。
摘要:
文本到图像扩散模型,例如Stable Diffusion和DALL-E,能够根据文本提示生成高质量、多样化且逼真的图像。然而,它们有时难以准确描绘提示中描述的特定实体,这一局限被称为组合生成中的实体缺失问题。尽管已有研究表明在去噪过程中调整交叉注意力图可以缓解该问题,但这些研究并未系统探究哪些目标函数能最好地解决这一问题。本研究聚焦交叉注意力动态,考察了实体缺失问题的三个潜在成因:(1)特定实体的注意力强度不足;(2)注意力分布过于分散;(3)不同实体的注意力图之间过度重叠。我们发现,减少实体间注意力图的重叠可以有效降低实体缺失率。具体而言,我们假设与特定实体相关的词元在去噪过程中会在某些图像区域上竞争注意力,这会导致词元间的注意力分散,阻碍每个实体的准确呈现。为解决这一问题,我们引入了四种损失函数——交并比(Intersection over Union, IoU)、质心(center-of-mass, CoM)距离、库尔贝克-莱布勒(Kullback-Leibler, KL)散度以及聚类紧致度(clustering compactness, CC),无需重新训练即可在去噪步骤中调节注意力重叠。在多种基准上的实验结果表明,这些提出的免训练方法显著提升了组合生成准确率,在视觉问答(VQA)、字幕评分、CLIP相似度以及人工评估方面均优于现有方法。值得注意的是,这些方法相比最优基线将人工评估分数提升了9%,证明了组合对齐能力的实质性提升。
英文摘要:
Text-to-image diffusion models, such as Stable Diffusion and DALL-E, are capable of generating high-quality, diverse, and realistic images from textual prompts. However, they sometimes struggle to accurately depict specific entities described in prompts, a limitation known as the entity missing problem in compositional generation. While prior studies suggested that adjusting cross-attention maps during the denoising process could alleviate this problem, they did not systematically investigate which objective functions could best address it. This study examines three potential causes of the entity-missing problem, focusing on cross-attention dynamics: (1) insufficient attention intensity for certain entities, (2) overly broad attention spread, and (3) excessive overlap between attention maps of different entities. We found that reducing overlap in attention maps between entities can effectively minimize the rate of entity missing. Specifically, we hypothesize that tokens related to specific entities compete for attention on certain image regions during the denoising process, which can lead to divided attention across tokens and prevent accurate representation of each entity. To address this issue, we introduced four loss functions, Intersection over Union (IoU), center-of-mass (CoM) distance, Kullback-Leibler (KL) divergence, and clustering compactness (CC) to regulate attention overlap during denoising steps without the need for retraining. Experimental results across a wide variety of benchmarks reveal that these proposed training-free methods significantly improve compositional accuracy, outperforming previous approaches in visual question answering (VQA), captioning scores, CLIP similarity, and human evaluations. Notably, these methods improved human evaluation scores by 9% over the best baseline, demonstrating substantial improvements in compositional alignment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。