UniGRPO: Unified Policy Optimization for Reasoning-Driven Visual Generation
Organizations: The Chinese University of Hong Kong · ByteDance Seed
Abstract
Unified models capable of interleaved generation have emerged as a promising paradigm, with the community increasingly converging on autoregressive modeling for text and flow matching for image generation. To advance this direction, we propose a unified reinforcement learning framework tailored for interleaved generation. We validate our approach on its fundamental unit: a single round of reasoning-driven image generation, where the model first expands the user prompt through reasoning, followed by image synthesis. Formulating this multimodal generation process as a Markov Decision Process with sparse terminal rewards, we introduce UniGRPO to jointly optimize text and image generation policies using GRPO. Adopting a minimalist methodology to avoid over-design, we leverage established training recipes for both modalities by seamlessly integrating standard GRPO for reasoning and FlowGRPO for visual synthesis. To ensure scalability to multi-round interleaved generation, we introduce two critical modifications to the original FlowGRPO: (1) eliminating classifier-free guidance to maintain linear, unbranched rollouts, which is essential for scaling to complex scenarios involving multi-turn interactions and multi-condition generation (e.g., editing); and (2) replacing the standard latent KL penalty with an MSE penalty directly on the velocity fields, providing a more robust and direct regularization signal to mitigate reward hacking effectively. Our experiments demonstrate that this unified training recipe significantly enhances image generation quality through reasoning, providing a robust and scalable baseline for the future post-training of fully interleaved models.
Figures & tables
| Model / Method | Thinking | TA Score | GenEval |
| Bagel | 0.6810 | 0.78 | |
| Bagel | 0.7132 | 0.79 | |
| SFT | 0.7486 | 0.83 | |
| SFT | 0.7769 | 0.82 | |
| ReFL | 0.7786 | 0.85 | |
| ReFL | 0.8120 | 0.84 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Model / Method | Thinking | Overall | Single Obj. | Two Obj. | Counting | Colors | Position | Attr. Binding |
| Bagel | 0.78 | 0.98 | 0.96 | 0.78 | 0.84 | 0.52 | 0.58 | |
| Bagel | 0.79 | 0.99 | 0.92 | 0.77 | 0.88 | 0.56 | 0.62 | |
| SFT | 0.83 | 0.99 | 0.95 | 0.83 | 0.89 | 0.58 | 0.75 | |
| SFT | 0.82 | 0.98 | 0.93 | 0.63 | 0.91 | 0.68 | 0.79 | |
| ReFL | 0.85 | 1.00 | 0.97 | 0.86 | 0.92 | 0.57 | 0.81 | |
| ReFL | 0.84 | 0.99 | 0.96 | 0.63 | 0.94 | 0.70 | 0.82 |
| Model Configuration | |
| Training Timesteps | 25 |
| CFG Scale | 1 |
| Timestep Shift | 3 |
| Image Resolution | 1024 |
| Evaluation Timesteps | 50 |
| Training | |