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

扩散模型中的语言绑定:通过注意力图对齐增强属性对应关系

Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment

Bar-Ilan University(巴伊兰大学);Allen Institute for AI(艾伦人工智能研究所);NVIDIA(英伟达)

Royi Rassin, Eran Hirsch, Daniel Glickman, Shauli Ravfogel, Yoav Goldberg, Gal Chechik

AI总结:

本文提出SynGen方法,通过句法分析识别实体与修饰语,并在推理时优化交叉注意力图对齐语言绑定,无需重新训练即可显著提升文本到图像生成中属性对应的忠实度。

摘要:

文本条件图像生成模型常常在实体与其视觉属性之间产生错误的关联。这反映出提示中实体与修饰语的语言绑定和生成图像中相应元素的视觉绑定之间的映射受损。一个显著的例子是,像“一朵粉色向日葵和一只黄色火烈鸟”这样的查询可能会错误地生成一朵黄色向日葵和一只粉色火烈鸟的图像。为了解决这一问题,我们提出了SynGen方法,该方法首先对提示进行句法分析以识别实体及其修饰语,然后使用一种新颖的损失函数,促使交叉注意力图与句法所反映的语言绑定保持一致。具体来说,我们鼓励实体与其修饰语的注意力图之间具有较大的重叠,并与其他实体和修饰语词之间具有较小的重叠。该损失在推理过程中进行优化,无需重新训练或微调模型。在三个数据集上的人工评估,包括一个新的具有挑战性的数据集,表明SynGen与当前最先进的方法相比有显著改进。这项工作强调了在推理过程中利用句子结构能够高效且显著地提高文本到图像生成的忠实度。

英文摘要:

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.

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

↑