NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Better Alignment: Training Diffusion Models with Reinforcement Learning Against Sparse Rewards

Zijing Hu, Fengda Zhang, Long Chen, Kun Kuang, Jiahui Li, Kaifeng Gao, Jun Xiao, Xin Wang, Wenwu Zhu

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:

  1. 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.
  2. 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.
Comparison of SD, DDPO, and $B^2$-DiffuRL on the 'fox riding a bike' prompt.

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.

Visual comparison for the 'pigs playing chess' prompt.

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

BibTeX
@inproceedings{hu2025towards,
  author = {Zijing Hu and Fengda Zhang and Long Chen and Kun Kuang and Jiahui Li and Kaifeng Gao and Jun Xiao and Xin Wang and Wenwu Zhu},
  title = {{Towards Better Alignment: Training Diffusion Models with Reinforcement Learning Against Sparse Rewards}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02198},
}
Figure