GDRO: Group-level Reward Post-training Suitable for Diffusion Models

Yiyang Wang, Xi Chen, Xiaogang Xu, Yu Liu, Hengshuang Zhao

TL;DR

Group-level Direct Reward Optimization (GDRO) brings the efficiency of group-level reward alignment to text-to-image rectified flow diffusion models without the massive computational overhead of online sampling. By utilizing an implicit reward function derived from pre-generated image groups, GDRO enables fully offline, sampler-independent training that achieves superior text rendering and layout planning while robustly preventing reward hacking.

What Problem Does This Paper Address?

Aligning text-to-image diffusion models with human preferences or specific downstream metrics (like OCR accuracy or complex layout alignment) typically relies on online Reinforcement Learning (RL). However, translating online RL success from Large Language Models (LLMs) to diffusion models introduces three major roadblocks:

  1. Low Efficiency: Generating images (rollouts) during training requires running the full multi-step diffusion denoising chain repeatedly, which dominates training time and computational cost.
  2. Sampler Dependency: Modern rectified flow models are inherently deterministic once initial noise is fixed. Online RL policy gradients require stochasticity, forcing previous methods to use suboptimal Stochastic Differential Equation (SDE) approximations that degrade image quality.
  3. Reward Hacking: Models optimized via online RL quickly learn to "cheat" the reward function. For instance, to maximize an OCR reward, a model might make text unnaturally massive and flat, destroying the overall aesthetic quality and detail of the image.

GDRO addresses these challenges by introducing a post-training paradigm that is completely offline, independent of the choice of diffusion sampler, and highly resilient to reward hacking.

Methods

The authors introduce GDRO (Group-level Direct Reward Optimization). Instead of generating images online during the optimization loop, GDRO operates entirely on pre-generated groups of images, drastically reducing training overhead.

Pre-Generated Image Group -> Perturb with Noise -> Diffusion Model (Predict Velocity) -> Calculate Implicit Reward -> Loss
  • Implicit Reward Function: Inspired by Direct Preference Optimization (DPO), GDRO bypasses explicit reward model calls during training. It optimizes an implicit reward derived directly from the diffusion model's predicted velocity or noise at any arbitrary timestep.
  • Group-level Ranking: GDRO extends this formulation from pairwise comparisons to entire groups of $k$ images using a Plackett-Luce ranking model. This allows the model to learn from a soft target distribution scaled by explicit rewards, distributing credit proportionally across all candidates.
  • Top-1 Likelihood Stabilization: The authors observed that optimizing purely for ranking can inadvertently degrade the absolute likelihood of the best-performing images. To preserve generation quality, they introduce a regularization loss ($\mathcal{L}_{\text{reg}}$) that stabilizes the top-1 sample's likelihood.
Figure 2. Overview of our method. Given a pre-generated image group synthesized from the same prompt and their corresponding explicit rewards, we perturb the images with noise on different time steps, feed them to the diffusion model to predict the velocity, and calculate the implicit rewards accordingly to get the final loss.

Datasets

The method was evaluated on two primary tasks using the FLUX.1-dev model as a baseline:

  • OCR Task: A dataset containing 19,653 training prompts and 1,024 test prompts, evaluated using PaddleOCR to measure text rendering accuracy.
  • GenEval Task: A benchmark designed to evaluate compositional text-to-image alignment (e.g., attribute binding, position, and counting) containing 50,000 training prompts and 2,212 test prompts.

For both tasks, the authors pre-generated 16 images per prompt to construct the offline training groups.

Key Insights and Ideas

  • Timestep Independence Enables Offline Diffusion RL: Because the implicit reward can be calculated at any single random timestep by adding noise to a pre-generated image, the training process does not need to simulate the entire multi-step denoising chain. This completely decouples post-training from online image generation.
  • The Reward Hacking Trap: Higher evaluation scores often mask severe visual degradation. Online RL methods like Flow-GRPO maximize OCR scores by blowing up text sizes and flattening backgrounds into cartoonish banners.
  • Corrected Evaluation Metrics: To combat misleadingly high rewards from hacking, the authors introduce a "corrected score" that combines the task reward with aesthetic, coherence, and style metrics (measured via UnifiedReward). This provides a more objective measure of true model improvement.

Key Results

  • Massive Efficiency Gains: GDRO achieves a 2× speedup on the OCR task and a 3.7× speedup on the GenEval task compared to online Flow-GRPO. GDRO required only 29.6 GPU hours for the OCR task compared to Flow-GRPO's 149.1 hours.
  • Mitigating Reward Hacking: While Flow-GRPO's corrected score plummets over time due to severe quality degradation, GDRO successfully maintains high image quality, preserving fine details and natural layouts.
  • Quantitative Superiority: On the OCR task, GDRO achieved a peak corrected score of 0.5701 (outperforming Flow-GRPO's peak of 0.5482 and the baseline's 0.4486). On GenEval, GDRO reached a corrected score of 0.5148 (compared to the baseline's 0.4646).

Limitations and Future Work

  • Lack of Online Exploration: As a fully offline method, GDRO's optimization capability is bounded by the quality and diversity of the pre-generated image pool. It cannot actively explore new image spaces to discover better solutions.
  • Metric Imperfection: The proposed corrected score relies heavily on UnifiedReward to track reward hacking. While effective, it cannot perfectly or interpretably capture every nuance of visual degradation, leaving room for more robust evaluation frameworks in future work.

Summary updated

BibTeX
@inproceedings{wang2026gdro,
  author = {Yiyang Wang and Xi Chen and Xiaogang Xu and Yu Liu and Hengshuang Zhao},
  title = {{GDRO: Group-level Reward Post-training Suitable for Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=NpArZTT0Jg},
}
Figure