arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.13826cs.CVcs.CLcs.GRcs.LG
收藏

Attend-and-Excite:基于注意力的文本到图像扩散模型语义引导

Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models

Tel Aviv University(特拉维夫大学)

Hila Chefer, Yuval Alaluf, Yael Vinker, Lior Wolf, Daniel Cohen-Or

AI总结:

针对文本到图像扩散模型存在的灾难性忽略和属性绑定错误问题,提出 Attend-and-Excite 方法,通过实时强化交叉注意力中所有主体词元的激活,提升生成图像对文本提示的语义忠实度。

摘要:

近期的文本到图像生成模型展现出了前所未有的能力,能够根据目标文本提示生成多样且富有创意的图像。尽管具有革命性,当前最先进的扩散模型仍可能无法生成完全传达给定文本提示中语义的图像。我们分析了公开可用的 Stable Diffusion 模型,并评估了灾难性忽略的存在,即模型未能生成输入提示中的一个或多个主体。此外,我们发现在某些情况下,模型也未能正确地将属性(例如颜色)绑定到其对应的主体上。为了帮助缓解这些失败情况,我们引入了生成式语义护理(Generative Semantic Nursing, GSN)的概念,即我们在推理过程中实时干预生成过程,以提高生成图像的忠实度。我们使用基于注意力的 GSN 公式,称为 Attend-and-Excite,引导模型细化交叉注意力单元,使其关注文本提示中的所有主体词元,并加强——或激发——它们的激活,鼓励模型生成文本提示中描述的所有主体。我们将我们的方法与其他方法进行了比较,并证明它在一系列文本提示中更忠实地传达了所需的概念。

英文摘要:

Recent text-to-image generative models have demonstrated an unparalleled ability to generate diverse and creative imagery guided by a target text prompt. While revolutionary, current state-of-the-art diffusion models may still fail in generating images that fully convey the semantics in the given text prompt. We analyze the publicly available Stable Diffusion model and assess the existence of catastrophic neglect, where the model fails to generate one or more of the subjects from the input prompt. Moreover, we find that in some cases the model also fails to correctly bind attributes (e.g., colors) to their corresponding subjects. To help mitigate these failure cases, we introduce the concept of Generative Semantic Nursing (GSN), where we seek to intervene in the generative process on the fly during inference time to improve the faithfulness of the generated images. Using an attention-based formulation of GSN, dubbed Attend-and-Excite, we guide the model to refine the cross-attention units to attend to all subject tokens in the text prompt and strengthen - or excite - their activations, encouraging the model to generate all subjects described in the text prompt. We compare our approach to alternative approaches and demonstrate that it conveys the desired concepts more faithfully across a range of text prompts.

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

↑