Bridging SFT and DPO for Diffusion Model Alignment with Self-Sampling Preference Optimization

Daoan Zhang, Guangchen Lan, Dong-Jun Han, Wenlin Yao, Xiaoman Pan, Hongming Zhang, Mingxiao Li, Pengcheng Chen, Dong Yü, Christopher Brinton, Jiebo Luo · DOI

Abstract

Existing post-training techniques for diffusion models are broadly categorized into supervised fine-tuning (SFT) and reinforcement learning (RL) methods. SFT is stable but suffers from limited generalization, while RL methods like Direct Preference Optimization (DPO) offer stronger generalization but rely on expensive paired preference data or reward models. We propose Self-Sampling Preference Optimization (SSPO) to bridge these approaches. SSPO eliminates the need for external paired data by using a model's own history via a Random Checkpoint Replay (RCR) strategy and a Self-Sampling Regularization (SSR) strategy that dynamically switches between SFT and DPO based on sample quality. Our results demonstrate that SSPO achieves state-of-the-art performance in both text-to-image and text-to-video alignment tasks.

Introduction

Aligning diffusion models with human preferences is a critical challenge in generative AI. While Supervised Fine-Tuning (SFT) provides a stable training process, it often fails to generalize beyond the training distribution. Conversely, Reinforcement Learning (RL) methods like Direct Preference Optimization (DPO) demonstrate superior generalization but typically require large, human-annotated datasets of "winning" and "losing" pairs.

Self-improvement methods attempt to bypass this data requirement by using the model's own generations as preference data. However, these methods often face instability due to overfitting on recent model versions or performance degradation when the model's own generations eventually surpass the quality of the initial training data.

Methodology: Self-Sampling Preference Optimization (SSPO)

SSPO addresses these challenges by integrating the stability of SFT with the generalization power of DPO, without requiring external reward models or human labels.

Random Checkpoint Replay (RCR)

To prevent overfitting and stabilize training, SSPO introduces Random Checkpoint Replay. Instead of generating "negative" samples from only the most recent model version, RCR uniformly samples from all previous checkpoints. This provides a broader distribution of historical errors, which theoretically leads to better generalization and a more robust training trajectory.

Self-Sampling Regularization (SSR)

SSR acts as the bridge between SFT and DPO by dynamically evaluating the quality of self-sampled data. If a generated sample is likely a "loser" compared to the target, the system applies a DPO loss to push the model away from it. If the sample is high-quality (a "winner"), the system automatically switches to an SFT objective, treating it as a positive example. This mechanism prevents the model from "unlearning" its own high-quality generations.

Comparison of SFT, DPO, and SSPO frameworks. SSPO dynamically switches between SFT and DPO objectives based on the quality of self-sampled data.

Experimental Results

We validated SSPO across multiple modalities, demonstrating its versatility and effectiveness.

Text-to-Image Alignment

Using SDXL and Stable Diffusion 1.5 backbones, SSPO was trained on the Pick-a-Pic v2 dataset. On benchmarks such as Parti-prompt and HPSv2, SSPO consistently outperformed existing state-of-the-art methods. For instance, with SDXL, SSPO achieved a PickScore of 23.24, surpassing the previous best of 23.06. Human evaluations further supported these results, with a 59.4% preference rate for SSPO over SPIN-Diffusion.

Text-to-Video Alignment

In text-to-video tasks using the AnimateDiff model, SSPO significantly improved temporal consistency and realism. On the ChronoMagic-Bench-150 benchmark, it reduced the Fréchet Video Distance (FVD) from 1608.41 to 1300.97, a substantial improvement in alignment and visual quality.

Extracted figure from page 5 of Bridging SFT and DPO for Diffusion Model Alignment with Self-Sampling Preference Optimization

Conclusion

SSPO offers a novel and effective framework for aligning diffusion models by bridging SFT and DPO. By leveraging historical checkpoints and dynamic loss switching, it achieves superior performance and stability without the need for expensive external data. Future research will focus on pixel-space optimization and more sophisticated sampling strategies to further push the boundaries of AI-generated content.

Summary updated

BibTeX
@misc{zhang2024bridging,
  author = {Daoan Zhang and Guangchen Lan and Dong-Jun Han and Wenlin Yao and Xiaoman Pan and Hongming Zhang and Mingxiao Li and Pengcheng Chen and Dong Yü and Christopher Brinton and Jiebo Luo},
  title = {{Bridging SFT and DPO for Diffusion Model Alignment with Self-Sampling Preference Optimization}},
  year = {2024},
  eprint = {2410.05255},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.05255},
}
Figure