Abstract
Text-to-image diffusion models, while capable of generating high-quality imagery, often struggle with prompt fidelity, aesthetic alignment, and inherent societal biases. This paper introduces a scalable Reinforcement Learning (RL) framework designed to fine-tune these models across millions of prompts. By employing diverse reward functions and technical innovations like per-batch reward normalization, the proposed method achieves an 80.3% human preference rate over base models and significantly improves compositional accuracy and social diversity.
Introduction: Addressing the Limitations of Diffusion Models
Despite the success of models like Stable Diffusion (SD), they are fundamentally limited by their training data. Large-scale, uncurated datasets often lead to three primary issues:
- Fidelity and Compositionality: Models frequently fail to accurately render complex spatial relationships or multiple objects (e.g., failing to place an avocado near an apple).
- Aesthetic Mismatch: Statistical likelihood in training data does not always align with human aesthetic preferences.
- Bias and Stereotypes: Models often propagate societal biases, such as lack of diversity in professional roles like "doctor" or "judge."
Previous RL-based attempts to address these issues were constrained by scalability, often limited to a few hundred prompts due to the memory overhead of tracking rewards per prompt.
Methodology: Scalable RL for Diffusion
The authors frame the iterative denoising process as a Multi-step Markov Decision Process (MDP). To enable scaling to millions of prompts, several key innovations were introduced:
- Per-Batch Reward Normalization: By normalizing rewards within training batches rather than per-prompt, the framework eliminates the memory bottleneck, allowing for training on massive datasets like DiffusionDB (1.5M prompts).
- Multi-Objective Joint Training: To mitigate the "Alignment Tax"—where optimizing for one metric degrades another—the model is trained on multiple reward functions simultaneously.
- Distribution-based Rewards: A reward based on Statistical Parity was implemented to ensure a diverse distribution of attributes (e.g., skintones) across batches of images.
- Pretraining Loss Integration: Mixing the RL objective with the original diffusion loss prevents the model from losing its ability to generate realistic images while pursuing high rewards.
Key Results and Insights
The RL-tuned model demonstrates significant improvements across multiple benchmarks:
- Human Preference: In head-to-head evaluations, the RL-tuned model was preferred 80.3% of the time over Stable Diffusion v2.
- Compositionality: Object detection scores for multi-object scenes more than doubled compared to the base model.
- Fairness and Diversity: The model successfully reduced skintone bias. For prompts like "a portrait of a doctor," the output distribution became significantly more equitable.
- Robustness against Reward Hacking: Unlike direct gradient-based optimization (e.g., ReFL), the RL approach proved more robust against "reward hacking," where models generate distorted but high-scoring images.
Conclusion
This work transitions RL for diffusion models from a small-scale experimental technique to a production-ready framework. By scaling to millions of prompts and balancing multiple objectives, the researchers have created a more controllable, aesthetic, and fair generative model. Future work will aim to address more complex compositional logic and broader dimensions of social representation beyond skintone.
Summary updated