Directly Fine-Tuning Diffusion Models on Differentiable Rewards
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text-to-motion generation | HumanML3D (test) | FID0.195 | 331 | |
| Text-to-Image Generation | Out-of-Domain T2I Dataset | Laplacian Variance3.70e+3 | 13 | |
| Text-to-Image Synthesis | 40 animal prompts Stable Diffusion v1.5 (test) | Aesthetic Score7.22 | 9 | |
| Text-to-Image Alignment | Aesthetic Score | Reward9.54 | 6 | |
| Text-to-Image Alignment | HPS v2 | Reward3.76 | 6 | |
| Text-to-Image Alignment | PickScore | Reward23 | 6 |