Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Diffusion Model Alignment Using Direct Preference Optimization

About

Large language models (LLMs) are fine-tuned using human comparison data with Reinforcement Learning from Human Feedback (RLHF) methods to make them better aligned with users' preferences. In contrast to LLMs, human preference learning has not been widely explored in text-to-image diffusion models; the best existing approach is to fine-tune a pretrained model using carefully curated high quality images and captions to improve visual appeal and text alignment. We propose Diffusion-DPO, a method to align diffusion models to human preferences by directly optimizing on human comparison data. Diffusion-DPO is adapted from the recently developed Direct Preference Optimization (DPO), a simpler alternative to RLHF which directly optimizes a policy that best satisfies human preferences under a classification objective. We re-formulate DPO to account for a diffusion model notion of likelihood, utilizing the evidence lower bound to derive a differentiable objective. Using the Pick-a-Pic dataset of 851K crowdsourced pairwise preferences, we fine-tune the base model of the state-of-the-art Stable Diffusion XL (SDXL)-1.0 model with Diffusion-DPO. Our fine-tuned base model significantly outperforms both base SDXL-1.0 and the larger SDXL-1.0 model consisting of an additional refinement model in human evaluation, improving visual appeal and prompt alignment. We also develop a variant that uses AI feedback and has comparable performance to training on human preferences, opening the door for scaling of diffusion model alignment methods.

Bram Wallace, Meihua Dang, Rafael Rafailov, Linqi Zhou, Aaron Lou, Senthil Purushwalkam, Stefano Ermon, Caiming Xiong, Shafiq Joty, Nikhil Naik• 2023

Related benchmarks

TaskDatasetResultRank
Text-to-Image GenerationGenEval
GenEval Score48.41
277
Text-to-Image GenerationMS-COCO (val)
FID18.02
112
Text-to-Image GenerationGenEval 1.0 (test)
Overall Score41
63
Text-to-Image GenerationPick-a-Pic v2 (test)
PickScore76.4
42
Personalized Image GenerationPersonalized Image Generation dataset
CLIP-I0.8365
21
Text-to-Image GenerationParti-Prompts (test)
Aesthetic Score57.5
21
Text-to-Image GenerationPick-a-Pic (val)
PickScore22.3
20
Text-to-image generation evaluationHPS v2
HPS Score (Anime)28.71
18
Text-to-Image GenerationHPSv2 (test)
HPS0.2743
18
Text-to-Image Preference EvaluationHPD v2 (test)
Aesthetic (Mean)6.131
14
Showing 10 of 37 rows

Other info

Follow for update