arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.11240cs.CVcs.LG
收藏

迈向更好的对齐:使用强化学习针对稀疏奖励训练扩散模型

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

Zhejiang University(浙江大学);Nanyang Technological University(南洋理工大学);The Hong Kong University of Science and Technology(香港科技大学);Tsinghua University(清华大学)

Zijing Hu, Fengda Zhang, Long Chen, Kun Kuang, Jiahui Li, Kaifeng Gao, Jun Xiao, Xin Wang, Wenwu Zhu

AI总结:

针对扩散模型微调中的稀疏奖励问题,提出B²-DiffuRL框架,采用向后渐进训练和基于分支的采样策略,有效提升提示-图像对齐并保持多样性。

摘要:

扩散模型在文本到图像生成方面取得了显著成功。然而,它们的实际应用受到生成图像与相应文本提示之间不对齐的阻碍。为了解决这个问题,强化学习(RL)已被考虑用于扩散模型的微调。然而,RL的有效性受到稀疏奖励挑战的限制,其中反馈仅在生成过程结束时可用。这使得难以识别去噪过程中的哪些动作对最终生成的图像有积极贡献,可能导致无效或不必要的去噪策略。为此,本文提出了一种新颖的基于RL的框架,以解决训练扩散模型时的稀疏奖励问题。我们的框架名为B²-DiffuRL,采用两种策略:向后渐进训练和基于分支的采样。一方面,向后渐进训练最初关注去噪过程的最终时间步,并逐渐将训练间隔扩展到更早的时间步,从而减轻稀疏奖励带来的学习难度。另一方面,我们为每个训练间隔执行基于分支的采样。通过比较同一分支内的样本,我们可以识别当前训练间隔的策略对最终图像的贡献程度,这有助于学习有效的策略而不是不必要的策略。B²-DiffuRL与现有的优化算法兼容。大量实验证明了B²-DiffuRL在改善提示-图像对齐和保持生成图像多样性方面的有效性。这项工作的代码是可用的。

英文摘要:

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.

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

↑