arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.13899cs.CLcs.AIcs.MM
收藏

通过注意力调制实现更好的文本到图像生成对齐

Towards Better Text-to-Image Generation Alignment via Attention Modulation

National University of Singapore(新加坡国立大学);Shandong University(山东大学)

Yihang Wu, Xiao Cao, Kaixin Li, Zitan Chen, Haonan Wang, Lei Meng, Zhiyong Huang

AI总结:

针对文本到图像生成中多实体属性导致的注意力不均问题,提出无训练的分阶段注意力调制机制,通过温度控制缓解实体泄露并增强语义归属辨别,以极低计算成本提升图文对齐效果。

摘要:

在文本到图像生成任务中,扩散模型的进步提升了生成结果的保真度。然而,在处理包含多个实体和属性的文本提示时,这些模型面临挑战。注意力分布不均导致实体泄露和属性错位问题。从头训练来解决此问题需要大量标注数据且耗费资源。受此启发,我们提出了一种归因聚焦机制,这是一种通过调制扩散模型注意力实现的无训练分阶段机制。我们的核心思想之一是引导模型在不同时间步关注提示的对应句法成分。为此,我们在自注意力模块的早期阶段引入温度控制机制以缓解实体泄露问题。将对象聚焦掩蔽方案和分阶段动态权重控制机制集成到交叉注意力模块中,使模型能更有效辨别实体间语义信息的归属。多种对齐场景下的实验结果表明,我们的模型以极少的额外计算成本实现了更好的图文对齐。

英文摘要:

In text-to-image generation tasks, the advancements of diffusion models have facilitated the fidelity of generated results. However, these models encounter challenges when processing text prompts containing multiple entities and attributes. The uneven distribution of attention results in the issues of entity leakage and attribute misalignment. Training from scratch to address this issue requires numerous labeled data and is resource-consuming. Motivated by this, we propose an attribution-focusing mechanism, a training-free phase-wise mechanism by modulation of attention for diffusion model. One of our core ideas is to guide the model to concentrate on the corresponding syntactic components of the prompt at distinct timesteps. To achieve this, we incorporate a temperature control mechanism within the early phases of the self-attention modules to mitigate entity leakage issues. An object-focused masking scheme and a phase-wise dynamic weight control mechanism are integrated into the cross-attention modules, enabling the model to discern the affiliation of semantic information between entities more effectively. The experimental results in various alignment scenarios demonstrate that our model attain better image-text alignment with minimal additional computational cost.

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

↑