Abstract: Direct preference optimization (DPO) has shown success in aligning diffusion models with human preference. Previous approaches typically assume a consistent preference label between final generations and noisy samples at intermediate steps, and directly apply DPO to these noisy samples for fine-tuning. However, we theoretically identify inherent issues in this assumption and its impacts on the effectiveness of preference alignment. We first demonstrate the inherent issues from two perspectives: gradient direction and preference order, and then propose a Tailored Preference Optimization (TailorPO) framework for aligning diffusion models with human preference, underpinned by some theoretical insights. Our approach directly ranks intermediate noisy samples based on their step-wise reward, and effectively resolves the gradient direction issues through a simple yet efficient design. Additionally, we incorporate the gradient guidance of diffusion models into preference alignment to further enhance the optimization effectiveness. Experimental results demonstrate that our method significantly improves the model's ability to generate aesthetically pleasing and human-preferred images.
Introduction
Direct Preference Optimization (DPO) has emerged as a powerful tool for aligning generative models with human preferences. While highly successful in Large Language Models (LLMs), its application to diffusion models for text-to-image generation presents unique challenges. Diffusion models are iterative, transforming noise into structured images over multiple timesteps.
Previous alignment strategies, such as D3PO, typically employ "trajectory-level" ranking. In this paradigm, preference labels are assigned to entire generation paths based on the final image. However, this approach relies on the assumption that if a final image is preferred, every intermediate noisy step in its trajectory is also superior to the corresponding step in a competing trajectory. This paper identifies critical theoretical flaws in this assumption and proposes a more robust alternative.
Identifying Theoretical Flaws
The authors identify two primary issues with trajectory-level ranking:
- Inaccurate Preference Order: Diffusion steps serve different functions; early steps determine global layout, while later steps refine local texture. A final preference based on texture might incorrectly penalize a superior early layout in the losing trajectory.
- Disturbed Gradient Direction: Because trajectories originate from different initial noise and diverge, the model often compares "apples to oranges." Mathematically, this mismatch can introduce noise into the gradient, potentially increasing the probability of generating dis-preferred samples.
The TailorPO Framework
To address these limitations, the authors propose TailorPO (Tailored Preference Optimization). This framework shifts the optimization from the trajectory level to the individual step level, ensuring that the model learns from direct local comparisons.
Key Innovations:
- Same-Input Sampling: At each timestep $t$, TailorPO starts from a single noisy image $x_t$ and generates two candidate next-step samples ($x^0_{t-1}$ and $x^1_{t-1}$). This ensures the gradient points directly toward the preferred local transition without interference from different starting conditions.
- Step-wise Reward Approximation: Since human feedback for every intermediate step is impractical, the model uses a "step-wise reward." By passing the predicted clean image ($\hat{x}_0$) from a noisy step into a standard reward model, the framework obtains a reliable ranking signal. This is theoretically supported by the Jensen gap (Proposition 1).
- TailorPO-G (Gradient Guidance): This variant incorporates the gradient of the reward model to further push the preferred sample toward higher reward regions, widening the optimization gap and accelerating learning.
Experimental Results
The framework was evaluated using Stable Diffusion v1.5 on datasets like Pick-a-Pic and specific animal prompts. Performance was measured using Aesthetic Scorer, ImageReward, HPSv2, and PickScore.
Key Findings:
- Aesthetic Superiority: TailorPO-G achieved an Aesthetic Score of 6.96, significantly outperforming the base model (5.79) and prior methods like DDPO and SPO (~6.5).
- Human Alignment: In head-to-head user studies, TailorPO was preferred in approximately 60% of cases against established baselines.
- Efficiency and Stability: The method remains effective even when fine-tuning on a small subset of intermediate steps (e.g., 5 steps), reducing computational costs without sacrificing quality.
- Generalization: Even when trained on simple animal prompts, the model generalized well to complex, unseen prompts, producing more colorful and detailed images than the baselines.
Conclusion
While TailorPO significantly improves alignment, the authors note the ongoing challenge of "reward hacking," where models exploit specific metrics at the expense of visual quality. Future work will explore ensemble reward models and dynamic hyperparameter adjustment to mitigate these effects. In conclusion, by resolving the theoretical inconsistencies of trajectory-level DPO, TailorPO provides a more robust and effective framework for aligning diffusion models with human aesthetic and semantic preferences.
Summary updated