arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.00122cs.CV
收藏

弥合差距:利用特定反馈对齐文本到图像扩散模型

Bridging the Gap: Aligning Text-to-Image Diffusion Models with Specific Feedback

School of Computer and Big Data (School of Cyber Security), Heilongjiang University(黑龙江大学计算机与大数据学院(网络空间安全学院))

Xuexiang Niu, Jinping Tang, Lei Wang, Ge Zhu

AI总结:

针对文本到图像扩散模型在物体类别与数量上对齐不足的问题,提出基于检测置信度和奖励梯度的三阶段反馈微调方法,并构建1.7K组合生成数据集,提升对齐与保真度。

摘要:

从反馈中学习已被证明可以增强文本到图像扩散模型中文本提示与图像之间的对齐。然而,由于反馈内容缺乏针对性,尤其是在物体类型和数量方面,这些技术在面对指定提示时难以准确匹配文本和图像。为解决这一问题,我们提出了一种带有特定奖励目标的高效微调方法,包括三个阶段。首先,对扩散模型生成的图像进行检测,以获得物体类别和数量。同时,可以根据检测结果和给定提示得出类别与数量的置信度。接下来,我们基于上述置信度定义了一种新颖的匹配分数,用于衡量文本-图像对齐程度。它能够以奖励函数的形式引导模型进行反馈学习。最后,我们通过反向传播奖励函数梯度来微调扩散模型,以生成语义相关的图像。与以往更关注整体匹配的反馈不同,我们更加强调实体类别和数量的准确性。此外,我们构建了一个用于研究组合生成的文本到图像数据集,包含1.7千对文本-图像,具有多样化的实体和数量组合。在该基准上的实验结果表明,我们的模型在对齐度和保真度方面均优于其他SOTA方法。此外,我们的模型还可以作为评估其他模型中文本-图像对齐程度的指标。所有代码和数据集均可在https://github.com/kingniu0329/Visions获取。

英文摘要:

Learning from feedback has been shown to enhance the alignment between text prompts and images in text-to-image diffusion models. However, due to the lack of focus in feedback content, especially regarding the object type and quantity, these techniques struggle to accurately match text and images when faced with specified prompts. To address this issue, we propose an efficient fine-turning method with specific reward objectives, including three stages. First, generated images from diffusion model are detected to obtain the object categories and quantities. Meanwhile, the confidence of category and quantity can be derived from the detection results and given prompts. Next, we define a novel matching score, based on above confidence, to measure text-image alignment. It can guide the model for feedback learning in the form of a reward function. Finally, we fine-tune the diffusion model by backpropagation the reward function gradients to generate semantically related images. Different from previous feedbacks that focus more on overall matching, we place more emphasis on the accuracy of entity categories and quantities. Besides, we construct a text-to-image dataset for studying the compositional generation, including 1.7 K pairs of text-image with diverse combinations of entities and quantities. Experimental results on this benchmark show that our model outperforms other SOTA methods in both alignment and fidelity. In addition, our model can also serve as a metric for evaluating text-image alignment in other models. All code and dataset are available at https://github.com/kingniu0329/Visions.

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

↑