Abstract
Aligning large language models with human preferences has emerged as a critical focus in language modeling research. Yet, integrating preference learning into Text-to-Image (T2I) generative models is still relatively uncharted territory. The Diffusion-DPO technique made initial strides by employing pairwise preference learning in diffusion models tailored for specific text prompts. We introduce Diffusion-RPO, a new method designed to align diffusion-based T2I models with human preferences more effectively. This approach leverages both prompt-image pairs with identical prompts and those with semantically related content across various modalities. Furthermore, we have developed a new evaluation metric, style alignment, aimed at overcoming the challenges of high costs, low reproducibility, and limited interpretability prevalent in current evaluations of human preference alignment. Our findings demonstrate that Diffusion-RPO outperforms established methods such as Supervised Fine-Tuning and Diffusion-DPO in tuning Stable Diffusion versions 1.5 and XL-1.0, achieving superior results in both automated evaluations of human preferences and style alignment.
Introduction
Text-to-Image (T2I) models like Stable Diffusion have revolutionized content creation, yet they often struggle to consistently produce images that align with human aesthetic preferences. This misalignment typically stems from training on massive, uncurated web datasets where the "one-stage" training process fails to capture the nuances of human taste or specific prompt instructions.
While techniques like Direct Preference Optimization (DPO) have been adapted from the LLM domain to T2I models (Diffusion-DPO), they are often limited to comparing "chosen" and "rejected" images for identical prompts. This narrow focus ignores the broader patterns of human preference that span semantically related concepts. Diffusion-RPO addresses this by introducing a framework that learns from relative preferences across similar prompts and modalities.
Methodology: Relative Preference Optimization
The core of Diffusion-RPO is the adaptation of Relative Preference Optimization to the diffusion denoising process. Unlike standard approaches that treat image generation as a black box, Diffusion-RPO optimizes at every denoising step.
Step-wise Optimization
The framework utilizes a simplified loss function derived to apply across the entire denoising trajectory. This provides a denser and more stable learning signal compared to methods that only evaluate the final generated image.
Contrastive Weighting and Multi-Modal Similarity
Diffusion-RPO employs a CLIP-based encoder to calculate semantic similarity between different prompts in a training batch. By using a weighting scheme, the model learns to penalize instances where it prefers a "rejected" image of one prompt over a "chosen" image of a semantically related prompt. This multi-modal approach allows the model to discern overarching aesthetic patterns—such as lighting, composition, and color harmony—that generalize across different subjects.
Experimental Setup
The researchers evaluated Diffusion-RPO using two primary datasets:
- Pick-a-Pic V2: A standard large-scale dataset for general human preference alignment.
- Style Alignment Dataset: A new benchmark introduced by the authors containing 30,000 preference pairs across three styles: Van Gogh, Sketch, and Winter. This dataset was constructed using high-quality style transfer to provide clear, interpretable metrics for aesthetic learning.
Results and Analysis
Diffusion-RPO demonstrates state-of-the-art performance across both automated metrics and qualitative assessments. On the Stable Diffusion XL-1.0 (SDXL) model, it achieved a HPSv2 score of 28.658 and a Pick Score of 23.208, surpassing both the base model and Diffusion-DPO.
Qualitatively, the model produces images with significantly enhanced detail and more vibrant color palettes. For instance, in fantasy-themed prompts, Diffusion-RPO generates more "magical" lighting effects and intricate textures that better reflect human aesthetic ideals.
In the Style Alignment task, Diffusion-RPO achieved the lowest Fréchet Inception Distance (FID) scores, indicating that its generated images were mathematically closest to the target style distributions compared to Supervised Fine-Tuning (SFT) or DPO.
Conclusion
Diffusion-RPO represents a significant step forward in aligning T2I models with human preferences. By looking beyond identical prompt pairs and optimizing the denoising process step-wise, the framework achieves superior aesthetic quality and style adherence. Future work will focus on increasing data diversity to capture a broader range of cultural preferences and reducing the computational overhead associated with calculating similarity matrices during training.
Summary updated