A Simple and Effective Reinforcement Learning Method for Text-to-Image Diffusion Fine-tuning

Shashank Gupta, Chaitanya Ahuja, Tsung-Yu Lin, Sreya Dutta Roy, Harrie Oosterhuis, Maarten de Rijke, Satya Narayan Shukla

TL;DR

This paper introduces Leave-One-Out PPO (LOOP), a simple yet highly effective reinforcement learning (RL) method for fine-tuning text-to-image diffusion models. By combining the sample reuse capabilities of Proximal Policy Optimization (PPO) with the low-variance baseline corrections of REINFORCE variants, LOOP significantly improves attribute binding and aesthetic quality in generated images while mitigating mode collapse.

What Problem Does This Paper Address?

Pre-trained text-to-image diffusion models often struggle to align perfectly with complex user prompts—frequently failing at "attribute binding" (e.g., drawing a black ball next to a white cat instead of mixing up the colors). To fix this, researchers use RL to fine-tune models against black-box reward functions.

However, current RL approaches present a harsh trade-off:

  1. PPO (and its diffusion variant, DDPO): Highly sample-efficient because it allows trajectory reuse via importance sampling, but it suffers from high computational/memory overhead and extreme sensitivity to hyperparameters.
  2. REINFORCE: Much simpler to implement and lightweight, but highly sample-inefficient and plagued by high gradient variance.

The authors set out to bridge this gap, systematically analyzing the efficiency-effectiveness trade-off to create a method that is both stable and sample-efficient.

Methods

The authors propose LOOP (Leave-One-Out PPO), which elegantly merges the best components of PPO and REINFORCE:

  • From REINFORCE (RLOO): For each input prompt, LOOP samples $K$ independent diffusion trajectories. It computes a leave-one-out baseline correction term (the average reward of the other $K-1$ trajectories) to evaluate each action. This drastically reduces gradient variance without introducing bias.
  • From PPO: It retains importance sampling and clipping. This allows the algorithm to reuse sampled trajectories across multiple mini-batch updates safely, preventing the policy from drifting too far from the reference model.

Conceptually, LOOP shares similarities with the popular GRPO algorithm used in Large Language Models (LLMs), but with key modifications tailored for diffusion: it omits standard-deviation normalization, drops the explicit KL penalty (since diffusion models naturally maintain proximity to the base policy), and skips sequence-length normalization due to the fixed nature of diffusion denoising steps.

The LOOP Algorithm Pseudo-code

Datasets

The method was evaluated using Stable Diffusion v2 as the base model across several tasks:

  • T2I-CompBench: A comprehensive benchmark for open-world compositional text-to-image generation, specifically testing attribute binding across categories like Color, Shape, Texture, 2D Spatial, and Numeracy.
  • Aesthetic Quality Prompts: A dataset optimized using a black-box aesthetic reward model to evaluate visual appeal.
  • Image-Text Semantic Alignment: Prompts evaluated for overall text-to-image fidelity.

Key Insights and Ideas

  • The Power of Multi-Trajectory Baselines: Single-trajectory reward estimation in standard PPO introduces massive variance. Sampling multiple trajectories per prompt and contrasting them against each other provides a much cleaner optimization signal.
  • Implicit KL Regularization: The authors found that explicit KL-divergence penalties are unnecessary during online diffusion fine-tuning. The iterative, multi-step nature of the reverse diffusion process inherently acts as a regularizer, keeping the fine-tuned model close to its base distribution.
  • Mitigating Mode Collapse: Standard PPO optimization often causes the model to converge on a narrow set of high-reward images (mode collapse). Because LOOP reinforces relative improvements across diverse trajectories, it naturally encourages exploration and maintains high generation diversity.

Key Results

LOOP consistently outperformed standard PPO (DDPO) and various supervised baselines across all seven evaluated tasks:

  • Attribute Binding: On the T2I-CompBench benchmark, LOOP ($K=4$) achieved substantial relative improvements over DDPO, notably 18.1% on shape binding and 15.2% on color binding.
  • Aesthetics: LOOP achieved a 15.4% relative improvement over PPO in generating aesthetically pleasing images.
Evaluating REINFORCE vs. PPO trade-off across image attributes

Qualitatively, the differences are striking. As seen in the paper's examples, when prompted with "White cat playing with black ball," standard Stable Diffusion and DDPO often fail to color the ball correctly, whereas LOOP successfully binds the attributes.

Qualitative examples showing LOOP successfully binding attributes where SD and DDPO fail

Limitations and Future Work

The primary limitation of LOOP is its computational overhead. Because it requires $K$ diffusion sampling passes per prompt during training, it introduces an $O(K)$ wall-clock time penalty compared to standard single-trajectory PPO.

To address this, the authors point to several promising future directions:

  • Developing adaptive sampling strategies to dynamically adjust $K$.
  • Implementing asynchronous generation pipelines or distributed trajectory sampling to reduce training time.
  • Extending the LOOP framework to other generative modalities and architectures beyond text-to-image diffusion.

Summary updated

BibTeX
@article{gupta2026simple,
  author = {Shashank Gupta and Chaitanya Ahuja and Tsung-Yu Lin and Sreya Dutta Roy and Harrie Oosterhuis and Maarten de Rijke and Satya Narayan Shukla},
  title = {{A Simple and Effective Reinforcement Learning Method for Text-to-Image Diffusion Fine-tuning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure