Introduction
Training text-to-image diffusion models using Reinforcement Learning (RL) has emerged as a promising path for aligning model outputs with human intent. However, these efforts often struggle due to the "sparse reward" problem: feedback is only provided after the final image is generated, making it difficult for the model to identify which specific denoising steps contributed to a successful or failed outcome. This paper introduces $B^2$-DiffuRL, a framework designed to pinpoint effective denoising actions through backward progressive training and branch-based sampling.
The Challenge of Sparse Rewards and Diversity Collapse
While models like Stable Diffusion are powerful, they frequently exhibit failures in spatial reasoning or attribute binding (e.g., placing a dog on the wrong side of a person). RL fine-tuning attempts to correct this by rewarding the model when outputs match prompts. Yet, in a typical 20-50 step denoising process, the lack of granular feedback leads to two primary issues:
- Poor Alignment: Without knowing if a mistake occurred during initial layout (step 40) or fine detailing (step 5), the model struggles to learn a robust policy.
- Diversity Collapse: To maximize rewards, models often "cheat" by gravitating toward a single, safe style—frequently a high-contrast "cartoonish" aesthetic—that reward models like CLIP happen to prefer. This comes at the expense of the original model's visual variety.
The $B^2$-DiffuRL Framework
The authors propose two core strategies to bridge the feedback gap:
Backward Progressive Training (BPT)
Instead of training on the entire denoising sequence simultaneously, BPT employs a curriculum approach. It begins by training only on the final timesteps, where the image is mostly formed. As the model masters these steps, the training interval is gradually extended backward toward the initial random noise. This allows the model to "anchor" fine details before tackling the more complex task of global layout organization.
Branch-based Sampling (BS)
To isolate the impact of specific actions, the framework performs multiple "branches" from the same intermediate noisy state. By comparing the best and worst outcomes from these parallel paths, the model can more accurately determine the value of its denoising policy within that specific interval.
Experimental Results
The researchers evaluated $B^2$-DiffuRL using Stable Diffusion v1.4 across three prompt templates: Animal-Activity, Color-Fruit/Vegetable, and Positional Relationships.
Key Findings
- Superior Alignment: $B^2$-DiffuRL consistently outperformed the previous state-of-the-art, DDPO, in both CLIPScore and BERTScore (using LLaVA descriptions) across all test categories.
- Preserving Diversity: Unlike DDPO, which saw a significant drop in Inception Score (IS) as it over-optimized for style shortcuts, $B^2$-DiffuRL maintained a diversity level much closer to the original Stable Diffusion model.
- Human Preference: In a study with 80 human raters, $B^2$-DiffuRL was preferred over both the base SD and DDPO, achieving a 90.25% preference rate for complex animal-activity prompts.
Conclusion
$B^2$-DiffuRL demonstrates that by addressing the granularity of feedback in the denoising process, RL can significantly improve prompt alignment without sacrificing the inherent diversity of diffusion models. While the framework remains dependent on the quality of the underlying reward model, its ability to avoid the "cartoon trap" and generalize to unseen prompts marks a significant step forward in fine-tuning generative AI.
Summary updated