Papers › Diffusion Model Alignment Using Direct Preference Optimization

Diffusion Model Alignment Using Direct Preference Optimization

21 Nov 2023CVPR 2024 1arXiv:2311.12908archive 2025-07-28

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

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.12908")

Code

Syntology Ran 5 of 10 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · violated contract; 4 ran · our draft was wrong.

By repository: community (archive-listed): 10 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

SalesforceAIResearch/DiffusionDPO mentioned on GitHubpytorchApache-2.0 report
spengliang/sudo mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 5 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
4ran · our draft was wrong
5unverified

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from SalesforceAIResearch/DiffusionDPO. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

basic_clean SalesforceAIResearch/DiffusionDPO/utils/tokenizer_hps.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · 98f385d847636a3e · report
convert_to_custom_text_state_dict SalesforceAIResearch/DiffusionDPO/utils/open_clip/model.py community (archive-listed) ran · violated contract Apache-2.0 recorded; this copy not marked cleared · pointer only · f19962ebb134b3d7 · report
get_cast_dtype SalesforceAIResearch/DiffusionDPO/utils/open_clip/model.py community (archive-listed) ran · our draft was wrong Apache-2.0 recorded; this copy not marked cleared · pointer only · dcd422d66b0581d8 · report
get_pairs SalesforceAIResearch/DiffusionDPO/utils/tokenizer_hps.py community (archive-listed) ran · our draft was wrong Apache-2.0 recorded; this copy not marked cleared · pointer only · d919ae32e5e4e616 · report
whitespace_clean SalesforceAIResearch/DiffusionDPO/utils/tokenizer_hps.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 recorded; this copy not marked cleared · pointer only · 9542161e9640b858 · report
build_model_from_openai_state_dict SalesforceAIResearch/DiffusionDPO/utils/open_clip/model.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 53fc85e1b2889c0f · report
gather_features SalesforceAIResearch/DiffusionDPO/utils/open_clip/loss.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · ddcbd45e940484ee · report
normalized SalesforceAIResearch/DiffusionDPO/utils/aes_utils.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a61a872ce7ab9d47 · report
prepare_inputs_for_generation SalesforceAIResearch/DiffusionDPO/utils/open_clip/coca_model.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · fb651d0a97fd4d3f · report
register_pooler SalesforceAIResearch/DiffusionDPO/utils/open_clip/hf_model.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 2a377da4a76a2d44 · report

Tasks

Text-to-Image Generationmodel

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text-to-Image Generation DrawBench LCM (DPO) Aesthetics (Laion Aesthtetics Predictor) 6.0430 #2 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench LCM (DPO) Human Preference Alignement (HPSv2) 0.2814 #2 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench LCM (DPO) Text Alignement (SentenceBERT) 0.5720 #2 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench Stable Diffusion 1.5 (DPO) Aesthetics (Laion Aesthtetics Predictor) 5.6205 #7 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench Stable Diffusion 1.5 (DPO) Human Preference Alignement (HPSv2) 0.2672 #7 of 8 Archive leaderboard report
Text-to-Image Generation DrawBench Stable Diffusion 1.5 (DPO) Text Alignement (SentenceBERT) 0.6075 #7 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ALIGNBASEDPODiffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections