Introduction
Text-to-image diffusion models, while impressive, often struggle to consistently produce images that align with specific human preferences for aesthetics or quality. This misalignment stems from training on massive, uncurated web datasets. While Large Language Models (LLMs) address similar issues through Reinforcement Learning from Human Feedback (RLHF), applying RL to diffusion models is computationally expensive and sample-inefficient.
Researchers from Google DeepMind have introduced DRaFT (Direct Reward Fine-Tuning), a method that bypasses the complexities of RL by directly backpropagating gradients from differentiable reward functions through the image generation process.
Methodology: Differentiable Fine-Tuning
The core innovation of DRaFT is treating the multi-step diffusion sampling process as a single differentiable function. By using a differentiable reward model—such as one trained to predict human aesthetic scores—the system can compute exact gradients with respect to the model parameters.
To optimize this process, the authors employed several key techniques:
- Low-Rank Adaptation (LoRA): Instead of updating the entire U-Net, only a small set of added weights are fine-tuned, preserving the base model's knowledge and reducing memory overhead.
- Truncated Backpropagation (DRaFT-K): Surprisingly, backpropagating through the entire 50-step sampling chain is unnecessary. Differentiating through only the final $K$ steps (even $K=1$) provides a sufficient signal while avoiding exploding gradients.
- Variance Reduction (DRaFT-LV): For the $K=1$ case, averaging gradients over multiple noise samples stabilizes the learning signal.
Performance and Efficiency
DRaFT demonstrates significant advantages over traditional reinforcement learning approaches like PPO or DDPO. Because it utilizes exact gradients rather than reward estimates, it is orders of magnitude more sample-efficient.
Key results include:
- Speed: DRaFT is reported to be up to 200x faster than state-of-the-art RL methods in reaching high aesthetic scores.
- Alignment: DRaFT-LV achieved top performance on the HPSv2 benchmark, surpassing even larger models like SDXL.
- Generalization: Models fine-tuned on limited prompts (e.g., animals) successfully applied the learned aesthetic improvements to entirely different categories like architecture or technology.
Versatility and Limitations
Beyond aesthetics, DRaFT can be applied to diverse objectives, including optimizing for image compressibility (smaller file sizes) or specific object manipulation using detectors like OWL-ViT as rewards.
However, the method faces challenges common to reward-based optimization. "Reward hacking" can occur if the model is over-trained, leading to "mode collapse" where the model produces repetitive, over-saturated images that maximize the reward score but lose visual diversity. Additionally, DRaFT currently requires the reward function to be differentiable, meaning non-differentiable rewards still necessitate RL-based approaches.
Conclusion
DRaFT provides a powerful and efficient alternative to RL for aligning diffusion models. By leveraging the differentiable nature of modern reward models, it enables rapid fine-tuning that significantly improves image quality and adherence to human preferences.
Summary updated