Diffusion-SDPO: Safeguarded Direct Preference Optimization for Diffusion Models

Minghao Fu, Guo-Hua Wang, Tianyu Cui, Qing-Guo Chen, Zhao Xu +2 more
11/5/2025
cs.CV

Official code: AIDC-AI/Diffusion-SDPO (27 stars, Apache-2.0, last commit 2025-11-11).

Abstract

Text-to-image diffusion models deliver high-quality images, yet aligning them with human preferences remains challenging. We revisit diffusion-based Direct Preference Optimization (DPO) for these models and identify a critical pathology: enlarging the preference margin does not necessarily improve generation quality. In particular, the standard Diffusion-DPO objective can increase the reconstruction error of both winner and loser branches. Consequently, degradation of the less-preferred outputs can become sufficiently severe that the preferred branch is also adversely affected even as the margin grows. To address this, we introduce Diffusion-SDPO, a safeguarded update rule that preserves the winner by adaptively scaling the loser gradient according to its alignment with the winner gradient. A first-order analysis yields a closed-form scaling coefficient that guarantees the error of the preferred output is non-increasing at each optimization step. Our method is simple, model-agnostic, broadly compatible with existing DPO-style alignment frameworks and adds only marginal computational overhead. Across standard text-to-image benchmarks, Diffusion-SDPO delivers consistent gains over preference-learning baselines on automated preference, aesthetic, and prompt alignment metrics. Code is publicly available at https://github.com/AIDC-AI/Diffusion-SDPO.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Diffusion-SDPO: Safeguarded Direct Preference Optimization for Diffusion Models

272Shell, PythonNov 11, 202511 months agoApache-2.0
diffusion-modeldpoflowmatchingtext-to-image

Similar Papers

Cite this paper

@article{fu2025diffusionsdpo,
  title  = {Diffusion-SDPO: Safeguarded Direct Preference Optimization for Diffusion Models},
  author = {Minghao Fu and Guo-Hua Wang and Tianyu Cui and Qing-Guo Chen and Zhao Xu and Weihua Luo and Kaifu Zhang},
  year   = {2025},
  eprint = {2511.03317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.03317v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.03317.svg)](https://codeofpaper.com/paper/2511.03317)

Discussion