Training Diffusion Models with Reinforcement Learning
About
Diffusion models are a class of flexible generative models trained with an approximation to the log-likelihood objective. However, most use cases of diffusion models are not concerned with likelihoods, but instead with downstream objectives such as human-perceived image quality or drug effectiveness. In this paper, we investigate reinforcement learning methods for directly optimizing diffusion models for such objectives. We describe how posing denoising as a multi-step decision-making problem enables a class of policy gradient algorithms, which we refer to as denoising diffusion policy optimization (DDPO), that are more effective than alternative reward-weighted likelihood approaches. Empirically, DDPO is able to adapt text-to-image diffusion models to objectives that are difficult to express via prompting, such as image compressibility, and those derived from human feedback, such as aesthetic quality. Finally, we show that DDPO can improve prompt-image alignment using feedback from a vision-language model without the need for additional data collection or human annotation. The project's website can be found at http://rl-diffusion.github.io .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| EEG-to-Image Generation | Subject-01 EEG (test) | EEG Score0.5154 | 28 | |
| Text-to-Image Generation | Text-to-Image Preference Evaluation Suite (HPSv2.1, ImageReward, PickScore, Aes.Pred.v2.5, CLIP, Unified Reward) v2.1 | HPSv2.10.313 | 14 | |
| Text-to-Image Generation | Dataset D1 (test) | -- | 14 | |
| Text-to-Image Generation | Dataset D2 (test) | -- | 14 | |
| Text-to-Image Generation | Out-of-Domain T2I Dataset | Laplacian Variance3.90e+3 | 13 | |
| RNA inverse folding | SOLD (test) | -- | 13 | |
| RNA inverse folding | CASP15 (test) | -- | 13 | |
| Text Alignment | User Study | Average Ranking2.81 | 12 | |
| DNA sequence design | Enhancer dataset (held-out evaluation) | Pred-activity751 | 9 | |
| Text-to-Image Synthesis | 40 animal prompts Stable Diffusion v1.5 (test) | Aesthetic Score6.83 | 9 |