Saved in:
Bibliographic Details
Main Authors: Clark, Kevin, Vicol, Paul, Swersky, Kevin, Fleet, David J
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2309.17400
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910496280543232
author Clark, Kevin
Vicol, Paul
Swersky, Kevin
Fleet, David J
author_facet Clark, Kevin
Vicol, Paul
Swersky, Kevin
Fleet, David J
contents We present Direct Reward Fine-Tuning (DRaFT), a simple and effective method for fine-tuning diffusion models to maximize differentiable reward functions, such as scores from human preference models. We first show that it is possible to backpropagate the reward function gradient through the full sampling procedure, and that doing so achieves strong performance on a variety of rewards, outperforming reinforcement learning-based approaches. We then propose more efficient variants of DRaFT: DRaFT-K, which truncates backpropagation to only the last K steps of sampling, and DRaFT-LV, which obtains lower-variance gradient estimates for the case when K=1. We show that our methods work well for a variety of reward functions and can be used to substantially improve the aesthetic quality of images generated by Stable Diffusion 1.4. Finally, we draw connections between our approach and prior work, providing a unifying perspective on the design space of gradient-based fine-tuning algorithms.
format Preprint
id arxiv_https___arxiv_org_abs_2309_17400
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Directly Fine-Tuning Diffusion Models on Differentiable Rewards
Clark, Kevin
Vicol, Paul
Swersky, Kevin
Fleet, David J
Computer Vision and Pattern Recognition
Machine Learning
We present Direct Reward Fine-Tuning (DRaFT), a simple and effective method for fine-tuning diffusion models to maximize differentiable reward functions, such as scores from human preference models. We first show that it is possible to backpropagate the reward function gradient through the full sampling procedure, and that doing so achieves strong performance on a variety of rewards, outperforming reinforcement learning-based approaches. We then propose more efficient variants of DRaFT: DRaFT-K, which truncates backpropagation to only the last K steps of sampling, and DRaFT-LV, which obtains lower-variance gradient estimates for the case when K=1. We show that our methods work well for a variety of reward functions and can be used to substantially improve the aesthetic quality of images generated by Stable Diffusion 1.4. Finally, we draw connections between our approach and prior work, providing a unifying perspective on the design space of gradient-based fine-tuning algorithms.
title Directly Fine-Tuning Diffusion Models on Differentiable Rewards
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2309.17400