Stepwise Credit Assignment for GRPO on Flow-Matching Models
Organizations: Carnegie Mellon University · Adobe Research
Abstract
Flow-GRPO successfully applies reinforcement learning to flow models, but uses uniform credit assignment across all steps. This ignores the temporal structure of diffusion generation: early steps determine composition and content (low-frequency structure), while late steps resolve details and textures (high-frequency details). Moreover, assigning uniform credit based solely on the final image can inadvertently reward suboptimal intermediate steps, especially when errors are corrected later in the diffusion trajectory. We propose Stepwise-Flow-GRPO, which assigns credit based on each step's reward improvement. By leveraging Tweedie's formula to obtain intermediate reward estimates and introducing gain-based advantages, our method achieves superior sample efficiency and faster convergence. We also introduce a DDIM-inspired SDE that improves reward quality while preserving stochasticity for policy gradients.
Figures & tables
| Experiment | Overall | Single Obj. | Two Objs. | Counting | Colors | Position | Attr. Binding |
|---|---|---|---|---|---|---|---|
| Pretrained Models | |||||||
| SD3.5-M (cfg=1.0) | 0.28 | 0.71 | 0.23 | 0.15 | 0.45 | 0.05 | 0.08 |
| SD3.5-M (cfg=4.5) | 0.63 | 0.98 | 0.78 | 0.50 | 0.81 | 0.24 | 0.52 |
| Fine-tuned Models | |||||||
| SD3.5-M+Flow-GRPO (cfg=1.0 PickScore) | 0.60 | 0.96 | 0.73 | 0.67 | 0.67 | 0.21 | 0.35 |
| SD3.5-M+Ours (cfg=1.0 PickScore) | 0.60 | 0.96 | 0.75 | 0.67 | 0.67 | 0.21 | 0.34 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Method (Reward) | Generation (s) | Reward eval (s) |
|---|---|---|
| Ours (PickScore) | 24.4 0.0 | 2.8 0.0 |
| Flow-GRPO (PickScore) | 13.7 0.9 | 1.4 1.3 |
| Ours (ImageReward) | 29.8 0.2 | 8.2 0.2 |
| Flow-GRPO (ImageReward) | 7.9 0.0 | 0.7 0.0 |
| Ours (UnifiedReward) | 136.1 5.8 | 114.6 5.8 |
| Flow-GRPO (UnifiedReward) | 56.0 30.9 | 48.8 30.9 |
| Model | Overall | Single Obj. | Two Objs. | Counting | Colors | Position | Attr. Binding |
|---|---|---|---|---|---|---|---|
| Pretrained Models | |||||||
| SD3.5-M (cfg=1.0) | 0.28 | 0.71 | 0.23 | 0.15 | 0.45 | 0.05 | 0.08 |
| SD3.5-M (cfg=4.5) | 0.63 | 0.98 | 0.78 | 0.50 | 0.81 | 0.24 | 0.52 |
| Standard Training Duration | |||||||
| Flow-GRPO (cfg=1.0, PickScore) | 0.60 | 0.96 | 0.73 | 0.67 | 0.67 | 0.21 | 0.35 |
| Ours (cfg=1.0, PickScore) | 0.60 | 0.96 | 0.75 | 0.67 | 0.67 | 0.21 | 0.34 |
RL for Diffusion Models
Reinforcement learning for diffusion models adapts denoising and sampling to rewards, preferences, and task outcomes.
See all 179 papers