Skip to main content
QUICK REVIEW

[论文解读] Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment

Royi Rassin, Eran Hirsch|arXiv (Cornell University)|Jun 15, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 11
一句话总结

SynGen 在扩散推断过程中通过将交叉注意力图与句法名词-修饰符绑定对齐来干预,在不重新训练的情况下显著提升文本到图像生成中的属性-对象绑定。

ABSTRACT

Text-conditioned image generation models often generate incorrect associations between entities and their visual attributes. This reflects an impaired mapping between linguistic binding of entities and modifiers in the prompt and visual binding of the corresponding elements in the generated image. As one notable example, a query like "a pink sunflower and a yellow flamingo" may incorrectly produce an image of a yellow sunflower and a pink flamingo. To remedy this issue, we propose SynGen, an approach which first syntactically analyses the prompt to identify entities and their modifiers, and then uses a novel loss function that encourages the cross-attention maps to agree with the linguistic binding reflected by the syntax. Specifically, we encourage large overlap between attention maps of entities and their modifiers, and small overlap with other entities and modifier words. The loss is optimized during inference, without retraining or fine-tuning the model. Human evaluation on three datasets, including one new and challenging set, demonstrate significant improvements of SynGen compared with current state of the art methods. This work highlights how making use of sentence structure during inference can efficiently and substantially improve the faithfulness of text-to-image generation.

研究动机与目标

  • 在文本条件扩散模型中修饰符错误绑定的问题。
  • 利用提示的句法分析来识别实体-noun 和修饰符对。
  • 引入一个在推理时对交叉注意力图的损失,强制名词-修饰符绑定。

提出的方法

  • 使用依赖解析器解析提示,以提取实体名词及其修饰符。
  • 定义正损失 L_pos,以最大化相关名词-修饰符对的注意力图重叠程度。
  • 定义负损失 L_neg,以最小化与不相关词的重叠,促使绑定彼此区分。
  • 将损失合并为 L = L_pos + L_neg,并在推理的前 25 次去噪步骤中应用。
  • 在扩散过程中通过梯度步骤更新潜变量 z_t' = z_t - alpha * grad_{z_t} L。

实验结果

研究问题

  • RQ1语法引导的推理时交叉注意力对齐是否能提升图像生成对提示的忠实度?
  • RQ2强制名词-修饰符绑定是否能减少跨多样化提示的语义泄漏和属性忽略?
  • RQ3正向和负向损失项如何贡献于绑定准确性和视觉质量?
  • RQ4该方法在具有不同修饰复杂度和提示结构的数据集上是否鲁棒?

主要发现

  • SynGen 在概念分离与视觉吸引力方面在人类评估上在三个数据集上始终优于基线。
  • 在 ABC-6K、DVMP 和 A&E 派生的提示上,SynGen 比强基线实现了更高的绑定正确性和更低的语义泄漏。
  • 定量上,SynGen 显示在正确绑定方面有显著提升,且在各数据集上减少不当绑定和实体忽略。
  • 消融研究表明正向损失 L_pos 和负向损失 L_neg 都很重要;移除任一项性能下降,组合可获得最佳结果。
  • 该方法无需重新训练,在对属性-对象对应的忠实性方面取得了显著提升。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。