Towards Better Alignment: Training Diffusion Models with Reinforcement Learning Against Sparse Rewards

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Hu, Zijing, Zhang, Fengda, Chen, Long, Kuang, Kun, Li, Jiahui, Gao, Kaifeng, Xiao, Jun, Wang, Xin, Zhu, Wenwu
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910895005761536
author Hu, Zijing
Zhang, Fengda
Chen, Long
Kuang, Kun
Li, Jiahui
Gao, Kaifeng
Xiao, Jun
Wang, Xin
Zhu, Wenwu
author_facet Hu, Zijing
Zhang, Fengda
Chen, Long
Kuang, Kun
Li, Jiahui
Gao, Kaifeng
Xiao, Jun
Wang, Xin
Zhu, Wenwu
contents Diffusion models have achieved remarkable success in text-to-image generation. However, their practical applications are hindered by the misalignment between generated images and corresponding text prompts. To tackle this issue, reinforcement learning (RL) has been considered for diffusion model fine-tuning. Yet, RL's effectiveness is limited by the challenge of sparse reward, where feedback is only available at the end of the generation process. This makes it difficult to identify which actions during the denoising process contribute positively to the final generated image, potentially leading to ineffective or unnecessary denoising policies. To this end, this paper presents a novel RL-based framework that addresses the sparse reward problem when training diffusion models. Our framework, named $\text{B}^2\text{-DiffuRL}$, employs two strategies: \textbf{B}ackward progressive training and \textbf{B}ranch-based sampling. For one thing, backward progressive training focuses initially on the final timesteps of denoising process and gradually extends the training interval to earlier timesteps, easing the learning difficulty from sparse rewards. For another, we perform branch-based sampling for each training interval. By comparing the samples within the same branch, we can identify how much the policies of the current training interval contribute to the final image, which helps to learn effective policies instead of unnecessary ones. $\text{B}^2\text{-DiffuRL}$ is compatible with existing optimization algorithms. Extensive experiments demonstrate the effectiveness of $\text{B}^2\text{-DiffuRL}$ in improving prompt-image alignment and maintaining diversity in generated images. The code for this work is available.
format Preprint
id arxiv_https___arxiv_org_abs_2503_11240
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards Better Alignment: Training Diffusion Models with Reinforcement Learning Against Sparse Rewards
Hu, Zijing
Zhang, Fengda
Chen, Long
Kuang, Kun
Li, Jiahui
Gao, Kaifeng
Xiao, Jun
Wang, Xin
Zhu, Wenwu
Computer Vision and Pattern Recognition
Machine Learning
Diffusion models have achieved remarkable success in text-to-image generation. However, their practical applications are hindered by the misalignment between generated images and corresponding text prompts. To tackle this issue, reinforcement learning (RL) has been considered for diffusion model fine-tuning. Yet, RL's effectiveness is limited by the challenge of sparse reward, where feedback is only available at the end of the generation process. This makes it difficult to identify which actions during the denoising process contribute positively to the final generated image, potentially leading to ineffective or unnecessary denoising policies. To this end, this paper presents a novel RL-based framework that addresses the sparse reward problem when training diffusion models. Our framework, named $\text{B}^2\text{-DiffuRL}$, employs two strategies: \textbf{B}ackward progressive training and \textbf{B}ranch-based sampling. For one thing, backward progressive training focuses initially on the final timesteps of denoising process and gradually extends the training interval to earlier timesteps, easing the learning difficulty from sparse rewards. For another, we perform branch-based sampling for each training interval. By comparing the samples within the same branch, we can identify how much the policies of the current training interval contribute to the final image, which helps to learn effective policies instead of unnecessary ones. $\text{B}^2\text{-DiffuRL}$ is compatible with existing optimization algorithms. Extensive experiments demonstrate the effectiveness of $\text{B}^2\text{-DiffuRL}$ in improving prompt-image alignment and maintaining diversity in generated images. The code for this work is available.
title Towards Better Alignment: Training Diffusion Models with Reinforcement Learning Against Sparse Rewards
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2503.11240