arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2306.09869cs.CVcs.AIcs.CLcs.LG
收藏

用于文本到图像扩散模型中贝叶斯上下文更新的基于能量的交叉注意力

Energy-Based Cross Attention for Bayesian Context Update in Text-to-Image Diffusion Models

Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院)

Geon Yeong Park, Jeongsol Kim, Beomsu Kim, Sang Wan Lee, Jong Chul Ye

AI总结:

针对文本到图像扩散模型的语义错位问题,提出基于能量的交叉注意力框架,通过建模上下文向量后验实现自适应控制,支持零样本组合生成,在多类图像生成任务中效果显著。

摘要:

尽管文本到图像扩散模型在图像生成任务中表现出色,但近期研究指出,生成的图像有时无法捕捉文本提示的预期语义内容,这一现象常被称为语义错位。为解决该问题,本文提出一种新型基于能量的模型(EBM,Energy-Based Model)框架,通过对上下文向量的后验分布建模实现自适应上下文控制。具体而言,我们首先在去噪自编码器的每个交叉注意力层中,为潜在图像表示和文本嵌入构建EBM。随后,我们获取上下文向量的对数后验梯度,该梯度可被更新并传递至后续交叉注意力层,从而隐式最小化嵌套的能量函数层级结构。我们的潜在EBM还支持零样本组合生成,即对来自不同上下文的交叉注意力输出进行线性组合。通过大量实验,我们证明所提方法在处理多种图像生成任务时极为有效,包括多概念生成、文本引导图像修复,以及真实与合成图像编辑。代码链接:https://github.com/EnergyAttention/Energy-Based-CrossAttention。

英文摘要:

Despite the remarkable performance of text-to-image diffusion models in image generation tasks, recent studies have raised the issue that generated images sometimes cannot capture the intended semantic contents of the text prompts, which phenomenon is often called semantic misalignment. To address this, here we present a novel energy-based model (EBM) framework for adaptive context control by modeling the posterior of context vectors. Specifically, we first formulate EBMs of latent image representations and text embeddings in each cross-attention layer of the denoising autoencoder. Then, we obtain the gradient of the log posterior of context vectors, which can be updated and transferred to the subsequent cross-attention layer, thereby implicitly minimizing a nested hierarchy of energy functions. Our latent EBMs further allow zero-shot compositional generation as a linear combination of cross-attention outputs from different contexts. Using extensive experiments, we demonstrate that the proposed method is highly effective in handling various image generation tasks, including multi-concept generation, text-guided image inpainting, and real and synthetic image editing. Code: https://github.com/EnergyAttention/Energy-Based-CrossAttention.

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

↑