Using Human Feedback to Fine-tune Diffusion Models without Any Reward Model

Kai Yang, Jian Tao, Jiafei Lyu, Chunjiang Ge, Jiaxin Chen, Weihan Shen, Xiaolong Zhu, Xiu Li

Fine-tuning diffusion models to align with human preferences—such as improving aesthetic quality or reducing anatomical errors—traditionally relies on Reinforcement Learning from Human Feedback (RLHF). This process typically requires training an intermediate reward model to simulate human judgment, which then guides the diffusion model's optimization. However, this two-step approach is computationally expensive and often unstable.

Researchers from Tsinghua University and Parametrix have introduced D3PO (Direct Preference for Denoising Diffusion Policy Optimization), a novel framework that bypasses the reward model entirely. By adapting Direct Preference Optimization (DPO) to the diffusion setting, D3PO allows models to learn directly from pairwise human preferences, resulting in a more efficient and stable fine-tuning process.

The Challenge: Moving Beyond Reward Models

Standard RLHF for diffusion models is resource-intensive. Training a robust reward model requires large-scale datasets and meticulous hyperparameter tuning. Furthermore, applying these rewards to the multi-step denoising process of diffusion models is technically challenging. A naive application of DPO—which has seen great success in Large Language Models (LLMs)—to diffusion models leads to a "memory wall." Storing gradients for every denoising step to compute a single preference loss can require over 100GB of GPU memory, making it inaccessible for most hardware configurations.

D3PO: Direct Preference for Denoising Diffusion

D3PO addresses these challenges by re-conceptualizing the denoising process as a multi-step Markov Decision Process (MDP). In this framework, the "state" is the current noisy image and prompt, while the "action" is the denoising step that generates the subsequent, less noisy latent representation.

Overview of the D3PO framework, illustrating the four-step process from sampling to training with the D3PO loss function.

The core innovation of D3PO lies in its theoretical foundation: the authors demonstrate that the optimal denoising policy can be expressed directly in terms of the preference between two images. This implies that the "optimal reward model" is implicitly contained within the preference data itself. To solve the memory issue, D3PO performs step-wise updates, calculating gradients at each timestep rather than waiting for the final image. This approach significantly reduces memory overhead while maintaining alignment with human preferences.

Experimental Evaluation

The researchers evaluated D3PO across several diverse tasks:

  • Quantifiable Objectives: Testing compressibility (file size) and aesthetic quality using the LAION aesthetics predictor as a proxy for human preference.
  • Anatomical Correctness: Improving the generation of human hands, moving from deformed shapes to recognizable five-fingered hands.
  • Safety and Alignment: Fine-tuning models to avoid "unsafe" content and improve prompt-image alignment using the ImageReward dataset.

Key Results and Insights

D3PO consistently matched or outperformed existing state-of-the-art methods like DDPO and DPOK. Notably, it achieved these results with greater simplicity and lower computational requirements.

Quantitative comparison of D3PO against other methods across Incompressibility, Compressibility, and Aesthetic reward metrics.

As shown in the reward curves, D3PO demonstrates superior performance in optimizing for specific objectives like incompressibility and compressibility. In aesthetic optimization, it remains competitive with more complex RL-based methods. Beyond quantitative metrics, qualitative results showed significant improvements in reducing character deformities in anime generation and increasing the "normalcy" rate of generated hands.

Conclusion

D3PO represents a significant step forward in aligning generative models with human values. By treating the U-Net as a policy and leveraging implicit rewards, it eliminates the need for complex reward model training. While the method still depends on high-quality human feedback, its efficiency and stability make it a promising candidate for scaling preference-based fine-tuning to even larger and more complex diffusion architectures.

Summary updated

BibTeX
@inproceedings{yang2024using,
  author = {Kai Yang and Jian Tao and Jiafei Lyu and Chunjiang Ge and Jiaxin Chen and Weihan Shen and Xiaolong Zhu and Xiu Li},
  title = {{Using Human Feedback to Fine-tune Diffusion Models without Any Reward Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=u4hp16TmCT},
}
Figure