Aligning Few-Step Diffusion Models with Dense Reward Difference Learning

Ziyi Zhang, Li Shen, Sen Zhang, Deheng Ye, Yong Luo +3 more
11/18/2024
cs.LGcs.CV

Official code: ZiyiZhang27/sdpo (22 stars, MIT, last commit 2026-02-25).

Abstract

Aligning diffusion models with downstream objectives is essential for their practical applications. However, standard alignment methods often struggle with step generalization when directly applied to few-step diffusion models, leading to inconsistent performance across different denoising step scenarios. To address this, we introduce Stepwise Diffusion Policy Optimization (SDPO), a novel alignment method tailored for few-step diffusion models. Unlike prior approaches that rely on a single sparse reward from only the final step of each denoising trajectory for trajectory-level optimization, SDPO incorporates dense reward feedback at every intermediate step. By learning the differences in dense rewards between paired samples, SDPO facilitates stepwise optimization of few-step diffusion models, ensuring consistent alignment across all denoising steps. To promote stable and efficient training, SDPO introduces an online reinforcement learning framework featuring several novel strategies designed to effectively exploit the stepwise granularity of dense rewards. Experimental results demonstrate that SDPO consistently outperforms prior methods in reward-based alignment across diverse step configurations, underscoring its robust step generalization capabilities. Code is avaliable at https://github.com/ZiyiZhang27/sdpo.

View on arXivView PDF

Code Implementations(1)

ZiyiZhang27/sdpoOfficial100%
MIT

[IEEE TPAMI] Code for the paper "Aligning Few-Step Diffusion Models with Dense Reward Difference Learning"

220PythonNov 18, 20247 months agoMIT
alignmentdiffusion-modelsreinforcement-learningrlhfstable-diffusion+1 more

Similar Papers

Cite this paper

@article{zhang2024aligning,
  title  = {Aligning Few-Step Diffusion Models with Dense Reward Difference Learning},
  author = {Ziyi Zhang and Li Shen and Sen Zhang and Deheng Ye and Yong Luo and Miaojing Shi and Bo Du and Dacheng Tao},
  year   = {2024},
  eprint = {2411.11727},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.11727v1}
}

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/2411.11727.svg)](https://codeofpaper.com/paper/2411.11727)

Discussion