Saved in:
Bibliographic Details
Main Authors: Niu, Xuexiang, Tang, Jinping, Wang, Lei, Zhu, Ge
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.00122
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913591955816448
author Niu, Xuexiang
Tang, Jinping
Wang, Lei
Zhu, Ge
author_facet Niu, Xuexiang
Tang, Jinping
Wang, Lei
Zhu, Ge
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_00122
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Bridging the Gap: Aligning Text-to-Image Diffusion Models with Specific Feedback
Niu, Xuexiang
Tang, Jinping
Wang, Lei
Zhu, Ge
Computer Vision and Pattern Recognition
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.
title Bridging the Gap: Aligning Text-to-Image Diffusion Models with Specific Feedback
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2412.00122