Aligning Few-Step Diffusion Models with Dense Reward Difference Learning

Ziyi Zhang, Li Shen, Sen Zhang, Deheng Ye, Yong Luo, Miaojing Shi, Bo Du, Dacheng Tao · DOI

Abstract

Diffusion models have transformed image synthesis but remain computationally intensive. While distillation techniques have produced "few-step" models capable of generating images in 1–8 steps, aligning these models with human preferences remains a significant challenge. Traditional Reinforcement Learning (RL) methods struggle in the few-step regime due to sparse rewards and limited state exploration. We present Stepwise Diffusion Policy Optimization (SDPO), a framework designed to provide dense, step-by-step reward feedback through a novel dual-state sampling mechanism. SDPO achieves superior image quality and alignment in as few as 1–4 denoising steps, demonstrating enhanced stability and sample efficiency over existing baselines.

Introduction

Recent advancements in diffusion models have focused on reducing inference time through distillation, resulting in models like SD-Turbo and LCM-SDXL. However, these few-step models often fail to adhere to complex text prompts or maintain high aesthetic standards. Standard RL alignment methods, such as Denoising Diffusion Policy Optimization (DDPO), face three primary hurdles when applied to these models:

  1. Sparse Rewards: Feedback is typically only available for the final image, providing insufficient guidance for short trajectories.
  2. Limited State Space: Fewer steps reduce the model's ability to explore the noise space effectively.
  3. High Variance: Optimization becomes unstable when training on inconsistent denoising dynamics across different step counts.

SDPO addresses these issues by transforming the sparse RL problem into a dense one, providing feedback at every stage of the denoising process.

Methodology

The core innovation of SDPO is the Dual-State Trajectory Sampling mechanism. Unlike standard sampling, which only tracks noisy states, SDPO concurrently tracks the predicted clean state ($\hat{x}_0$) at each step. Because few-step models are highly efficient denoisers, this intermediate "guess" serves as a reliable surrogate for the final image, allowing for reward calculation at every step.

Comparison of standard sampling with the proposed Dual-State Sampling mechanism, which enables dense rewards at every step.

To further stabilize and optimize the process, SDPO incorporates:

  • Latent Similarity-based Reward Prediction: Instead of querying heavy reward models at every step, SDPO uses latent space similarity to interpolate rewards between key anchor points, acting as a smoothness constraint.
  • Dense Reward Difference Learning: Inspired by Direct Preference Optimization (DPO), the model optimizes the difference in rewards between parallel trajectories, enhancing training stability.
  • Step-Shuffled Updates: Shuffling denoising steps within training batches prevents overfitting to specific sequences and encourages generalized denoising capabilities.

Experimental Results

SDPO was evaluated using base models like SD-Turbo and LCM-SDXL across various reward functions, including Aesthetic Score and PickScore. The results indicate that SDPO significantly outperforms traditional RL baselines in both efficiency and final quality.

Quantitative comparison showing SDPO's superior sample efficiency and higher reward plateaus compared to DDPO, REBEL, and D3PO.

Key Findings

  • Sample Efficiency: As shown in the performance metrics, SDPO reaches higher aesthetic reward plateaus faster than DDPO or D3PO. In the 1-step and 2-step regimes, where other methods often suffer from "reward collapse," SDPO remains stable.
  • Generalization: While trained on simple animal prompts, the SDPO-finetuned models generalized remarkably well to complex, unseen prompts involving intricate compositions and attributes.
  • Quantitative Gains: On the PickScore metric for 8-step samples, SDPO achieved a score of 24.05, a notable improvement over the base SD-Turbo (22.68) and DDPO (23.29).

Discussion and Limitations

SDPO represents a significant step forward in making few-step diffusion models both fast and high-quality. However, the method remains dependent on the quality of the underlying reward models; any biases in the "teacher" model will be amplified during alignment. Additionally, while latent interpolation reduces the frequency of reward model queries, the dual-state sampling process still introduces higher memory and computational overhead during training compared to standard inference.

Future research will explore scaling SDPO to larger foundation models and integrating it with advanced RL techniques like Flow-GRPO to further refine the alignment of generative AI.

Summary updated

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