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

扩散模型中的关系校正

Relation Rectification in Diffusion Model

National University of Singapore(新加坡国立大学)

Yinwei Wu, Xingyi Yang, Xinchao Wang

AI总结:

本文提出关系校正任务,利用异构图卷积网络调整文本嵌入,在不改动原模型参数的情况下,提升扩散模型对物体间视觉关系的生成准确性。

摘要:

尽管大型文本到图像扩散模型具有卓越的生成能力,但它们就像技艺高超却粗心的艺术家一样,常常难以准确描绘物体之间的视觉关系。通过仔细分析,我们发现这一问题源于文本编码器的错位,该编码器难以解释特定关系并区分相关物体的逻辑顺序。为了解决这一问题,我们提出了一项名为“关系校正”(Relation Rectification)的新任务,旨在对模型进行精炼,使其能够准确表示其最初无法生成的给定关系。为此,我们提出了一种利用异构图卷积网络(HGCN)的创新解决方案。该网络对输入提示中关系词与相应物体之间的有向关系进行建模。具体来说,我们在一对具有相同关系词但物体顺序相反的提示上优化HGCN,并辅以少量参考图像。轻量级的HGCN调整文本编码器生成的文本嵌入,确保文本关系在嵌入空间中得到准确反映。至关重要的是,我们的方法保留了文本编码器和扩散模型的参数,从而保持了模型在不相关描述上的稳健性能。我们在一个新整理的关系数据多样化数据集上验证了我们的方法,展示了在生成具有精确视觉关系的图像方面的定量和定性提升。项目页面:https://wuyinwei-hah.github.io/rrnet.github.io/。

英文摘要:

Despite their exceptional generative abilities, large text-to-image diffusion models, much like skilled but careless artists, often struggle with accurately depicting visual relationships between objects. This issue, as we uncover through careful analysis, arises from a misaligned text encoder that struggles to interpret specific relationships and differentiate the logical order of associated objects. To resolve this, we introduce a novel task termed Relation Rectification, aiming to refine the model to accurately represent a given relationship it initially fails to generate. To address this, we propose an innovative solution utilizing a Heterogeneous Graph Convolutional Network (HGCN). It models the directional relationships between relation terms and corresponding objects within the input prompts. Specifically, we optimize the HGCN on a pair of prompts with identical relational words but reversed object orders, supplemented by a few reference images. The lightweight HGCN adjusts the text embeddings generated by the text encoder, ensuring the accurate reflection of the textual relation in the embedding space. Crucially, our method retains the parameters of the text encoder and diffusion model, preserving the model's robust performance on unrelated descriptions. We validated our approach on a newly curated dataset of diverse relational data, demonstrating both quantitative and qualitative enhancements in generating images with precise visual relations. Project page: https://wuyinwei-hah.github.io/rrnet.github.io/.

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

↑