谓词扩散:基于谓词逻辑的注意力引导文本到图像扩散模型
Predicated Diffusion: Predicate Logic-Based Attention Guidance for Text-to-Image Diffusion Models
AI总结:
针对文本到图像扩散模型难以忠实表达用户意图的问题,提出基于谓词逻辑的注意力引导框架,将文本意图形式化为命题并最小化可微损失,生成更符合提示的图像。
摘要:
扩散模型在生成高质量、多样化和创造性图像方面取得了显著成果。然而,在基于文本的图像生成中,它们往往无法捕捉文本中呈现的预期含义。例如,指定的对象可能未被生成,不必要的对象可能被生成,形容词可能修饰了本不该修饰的对象。此外,我们发现表示对象之间所有关系的关联性常常被忽略。虽然用户在文本中的意图多种多样,但现有方法往往只专注于其中的某些方面。在本文中,我们提出了谓词扩散(Predicated Diffusion),一个用于表达用户意图的统一框架。我们认为上述问题的根源在于文本编码器,它通常只关注单个单词而忽略它们之间的逻辑关系。所提出的方法不仅依赖文本编码器,而是将文本中的预期含义表示为使用谓词逻辑的命题,并将注意力图中的像素视为模糊谓词。这使我们能够获得一个可微的损失函数,通过最小化该函数使图像满足命题。与几种现有方法相比,我们证明了谓词扩散(Predicated Diffusion)能够生成更忠实于各种文本提示的图像,这已通过人类评估者和预训练的图像-文本模型得到验证。
英文摘要:
Diffusion models have achieved remarkable results in generating high-quality, diverse, and creative images. However, when it comes to text-based image generation, they often fail to capture the intended meaning presented in the text. For instance, a specified object may not be generated, an unnecessary object may be generated, and an adjective may alter objects it was not intended to modify. Moreover, we found that relationships indicating possession between objects are often overlooked. While users' intentions in text are diverse, existing methods tend to specialize in only some aspects of these. In this paper, we propose Predicated Diffusion, a unified framework to express users' intentions. We consider that the root of the above issues lies in the text encoder, which often focuses only on individual words and neglects the logical relationships between them. The proposed method does not solely rely on the text encoder, but instead, represents the intended meaning in the text as propositions using predicate logic and treats the pixels in the attention maps as the fuzzy predicates. This enables us to obtain a differentiable loss function that makes the image fulfill the proposition by minimizing it. When compared to several existing methods, we demonstrated that Predicated Diffusion can generate images that are more faithful to various text prompts, as verified by human evaluators and pretrained image-text models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。