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

基于偏好强化学习的主体驱动文本到图像生成

Subject-driven Text-to-Image Generation via Preference-based Reinforcement Learning

University of Waterloo(滑铁卢大学);Vector Institute(矢量研究所);Google(谷歌公司)

Yanting Miao, William Loh, Suraj Kothawade, Pascal Poupart, Abdullah Rashwan, Yeqing Li

AI总结:

本文提出$λ$-Harmonic奖励函数和Reward Preference Optimization (RPO)方法,通过仅微调U-Net实现高效、低成本的主体驱动文本到图像生成,在DreamBench上取得最先进性能。

摘要:

文本到图像生成模型近期引起了广泛关注,能够根据文本提示合成高质量图像。然而,这些模型通常缺乏从给定参考图像生成特定主体或在变化条件下合成新颖呈现的能力。DreamBooth和Subject-driven Text-to-Image (SuTI)等方法在该领域取得了显著进展。然而,这两种方法主要侧重于提高与参考图像的相似度,且需要昂贵的设置,往往忽略了高效训练和避免对参考图像过拟合的需求。在本研究中,我们提出了$λ$-Harmonic奖励函数,它提供可靠的奖励信号,并支持早停以实现更快训练和有效正则化。通过结合Bradley-Terry偏好模型,$λ$-Harmonic奖励函数还为主体驱动生成任务提供偏好标签。我们提出了Reward Preference Optimization (RPO),它提供更简单的设置(仅需DreamBooth所用负样本的$3\%$)和更少的微调梯度步数。与大多数现有方法不同,我们的方法不需要训练文本编码器或优化文本嵌入,仅通过微调U-Net组件即可实现文本-图像对齐。从经验上看,$λ$-Harmonic被证明是主体驱动生成任务中模型选择的可靠方法。基于偏好标签和$λ$-Harmonic奖励函数的早停验证,我们的算法在DreamBench上实现了最先进的CLIP-I分数0.833和CLIP-T分数0.314。

英文摘要:

Text-to-image generative models have recently attracted considerable interest, enabling the synthesis of high-quality images from textual prompts. However, these models often lack the capability to generate specific subjects from given reference images or to synthesize novel renditions under varying conditions. Methods like DreamBooth and Subject-driven Text-to-Image (SuTI) have made significant progress in this area. Yet, both approaches primarily focus on enhancing similarity to reference images and require expensive setups, often overlooking the need for efficient training and avoiding overfitting to the reference images. In this work, we present the $λ$-Harmonic reward function, which provides a reliable reward signal and enables early stopping for faster training and effective regularization. By combining the Bradley-Terry preference model, the $λ$-Harmonic reward function also provides preference labels for subject-driven generation tasks. We propose Reward Preference Optimization (RPO), which offers a simpler setup (requiring only $3\%$ of the negative samples used by DreamBooth) and fewer gradient steps for fine-tuning. Unlike most existing methods, our approach does not require training a text encoder or optimizing text embeddings and achieves text-image alignment by fine-tuning only the U-Net component. Empirically, $λ$-Harmonic proves to be a reliable approach for model selection in subject-driven generation tasks. Based on preference labels and early stopping validation from the $λ$-Harmonic reward function, our algorithm achieves a state-of-the-art CLIP-I score of 0.833 and a CLIP-T score of 0.314 on DreamBench.

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

↑