arXiv:2412.00122cs.CV2024-12

让AI图文生成更准地响应具体对象和数量描述

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

  • 用检测结果与提示构建匹配得分,精准指导模型优化
  • 在1.7千对图文数据上,生成效果优于现有顶尖方法
  • 适合需要精确控制图像内容的创作与评估场景

从反馈中学习已被证明能提升文本提示与图像之间的对齐度。然而,由于反馈内容缺乏对物体类型和数量的聚焦,现有方法在处理具体化提示时难以准确匹配。为此,我们提出一种高效的微调方法,包含三个阶段:首先,通过检测生成图像中的物体类别与数量,并结合提示推断类别和数量置信度;其次,基于上述置信度定义新的匹配得分,作为反馈学习的奖励函数;最后,通过反向传播奖励梯度微调扩散模型,生成语义相关的图像。与以往侧重整体匹配的方法不同,本方法更关注实体类别与数量的准确性。此外,我们构建了一个用于研究组合生成的文本到图像数据集,包含1.7千对图文,涵盖多样化的实体与数量组合。在该基准上的实验表明,我们的模型在对齐度与保真度方面均超越其他SOTA方法。同时,该模型还可作为评估其他模型图文对齐能力的指标。所有代码与数据集见https://github.com/kingniu0329/Visions。

原文摘要 · Abstract (English)

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.

图文生成扩散模型反馈学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。