arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.13231cs.LGcs.AIcs.CV
收藏

利用人类反馈在无需任何奖励模型的情况下微调扩散模型

Using Human Feedback to Fine-tune Diffusion Models without Any Reward Model

Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Department of Automation, Tsinghua University(清华大学自动化系);Parametrix Technology Company Ltd.(参数科技有限公司)

Kai Yang, Jian Tao, Jiafei Lyu, Chunjiang Ge, Jiaxin Chen, Qimai Li, Weihan Shen, Xiaolong Zhu, Xiu Li

AI总结:

本文提出D3PO方法,无需训练奖励模型即可直接微调扩散模型,有效降低计算开销与成本,并在实验中展现出与真实奖励方法相当的效果,同时减少图像失真并提升安全性。

摘要:

将强化学习与人类反馈(RLHF)相结合在微调扩散模型方面展现出了巨大的潜力。以往的方法首先训练一个与人类偏好对齐的奖励模型,然后利用强化学习技术对底层模型进行微调。然而,构建一个高效的奖励模型需要大量的数据集、最优的架构以及人工超参数调优,这使得该过程既耗时又成本高昂。直接偏好优化(DPO)方法在微调大型语言模型中表现出色,消除了对奖励模型的需求。然而,扩散模型去噪过程对GPU内存的巨大需求阻碍了DPO方法的直接应用。为了解决这个问题,我们引入了用于去噪扩散策略优化的直接偏好优化(D3PO)方法,直接对扩散模型进行微调。理论分析表明,尽管D3PO省略了训练奖励模型的步骤,但它能有效地发挥使用人类反馈数据训练的最优奖励模型的作用,从而指导学习过程。这种方法无需训练奖励模型,被证明更加直接、更具成本效益,并且最小化了计算开销。在实验中,我们的方法使用目标的相对尺度作为人类偏好的代理,取得了与使用真实奖励的方法相当的结果。此外,D3PO展现了降低图像失真率和生成更安全图像的能力,克服了缺乏鲁棒奖励模型的挑战。我们的代码已在 https://github.com/yk7333/D3PO 公开。

英文摘要:

Using reinforcement learning with human feedback (RLHF) has shown significant promise in fine-tuning diffusion models. Previous methods start by training a reward model that aligns with human preferences, then leverage RL techniques to fine-tune the underlying models. However, crafting an efficient reward model demands extensive datasets, optimal architecture, and manual hyperparameter tuning, making the process both time and cost-intensive. The direct preference optimization (DPO) method, effective in fine-tuning large language models, eliminates the necessity for a reward model. However, the extensive GPU memory requirement of the diffusion model's denoising process hinders the direct application of the DPO method. To address this issue, we introduce the Direct Preference for Denoising Diffusion Policy Optimization (D3PO) method to directly fine-tune diffusion models. The theoretical analysis demonstrates that although D3PO omits training a reward model, it effectively functions as the optimal reward model trained using human feedback data to guide the learning process. This approach requires no training of a reward model, proving to be more direct, cost-effective, and minimizing computational overhead. In experiments, our method uses the relative scale of objectives as a proxy for human preference, delivering comparable results to methods using ground-truth rewards. Moreover, D3PO demonstrates the ability to reduce image distortion rates and generate safer images, overcoming challenges lacking robust reward models. Our code is publicly available at https://github.com/yk7333/D3PO.

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

↑