[Paper Review] Directly Fine-Tuning Diffusion Models on Differentiable Rewards
This paper introduces Direct Reward Fine-Tuning (DRaFT), a method that directly backpropagates through the full diffusion sampling process to fine-tune diffusion models using differentiable reward functions. It achieves superior performance and efficiency—over 200× faster than reinforcement learning baselines—by leveraging gradient checkpointing and LoRA, with variants like DRaFT- $K$ and DRaFT-LV improving training stability and variance reduction.
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.
Motivation & Objective
- Address the misalignment between pre-trained diffusion models and desired behaviors, such as aesthetic quality or human preference, by enabling direct optimization of model parameters via gradients.
- Overcome the inefficiency and sample complexity of reinforcement learning-based fine-tuning methods in diffusion model alignment.
- Develop a method that efficiently leverages analytic gradients from differentiable reward functions, avoiding the need for black-box reward optimization.
- Enable scalable, efficient, and composable fine-tuning for diverse reward functions, including image quality, object detection, and adversarial example generation.
- Provide a unified, gradient-based framework that supports interpolation and composition of LoRA weights for multiple objectives.
Proposed method
- Proposes DRaFT, a method that backpropagates gradients from the final generated image’s reward through the entire unrolled diffusion sampling process, enabling end-to-end fine-tuning of the diffusion model.
- Uses gradient checkpointing to reduce memory cost and LoRA to fine-tune only a small subset of parameters, maintaining computational efficiency.
- Introduces DRaFT- $K$ , which truncates backpropagation to only the last $K$ denoising steps to stabilize training and reduce gradient explosion.
- Proposes DRaFT-LV, a variant of DRaFT-1 that uses multiple noise samples to compute lower-variance gradient estimates, improving training stability and speed.
- Applies the method to fine-tune Stable Diffusion 1.4 on various differentiable rewards, including LAION Aesthetics, PickScore, and HPSv2, using LoRA weight adaptation.
- Supports model composition and interpolation by mixing or scaling LoRA weights trained on different reward objectives, enabling multi-objective generation.
Experimental results
Research questions
- RQ1Can gradient-based fine-tuning through the full diffusion sampling process achieve better performance than reinforcement learning on differentiable reward functions?
- RQ2How does truncating backpropagation to the last $K$ steps (DRaFT- $K$ ) affect training stability and convergence compared to full backpropagation?
- RQ3Can variance reduction techniques like averaging over multiple noise samples (DRaFT-LV) significantly improve training efficiency and convergence speed?
- RQ4To what extent can DRaFT be generalized across diverse reward functions, including image compressibility, object removal, and adversarial example generation?
- RQ5Can fine-tuned models be composed or interpolated via LoRA weight mixing while preserving performance on multiple objectives?
Key findings
- DRaFT outperforms reinforcement learning-based baselines by over 200× in training speed when maximizing LAION Aesthetics scores.
- DRaFT-LV achieves approximately 2× faster training than ReFL, a prior gradient-based method, due to lower-variance gradient estimates.
- DRaFT- $K$ with $K=2$ achieves better performance than full backpropagation, which suffers from gradient explosion in practice.
- Fine-tuned models trained on PickScore and HPSv2 show significant improvements in human preference scores, with overfitting mitigated by LoRA weight scaling.
- The method enables effective interpolation between LoRA weights trained on different rewards, allowing for compositional generation without retraining.
- DRaFT successfully improves image quality on diverse prompts and supports complex objectives like image incompressibility and adversarial example generation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.