统一强化学习框架提升推理驱动图像生成质量
UniGRPO: Unified Policy Optimization for Reasoning-Driven Visual Generation
- 用强化学习联合优化文本与图像生成策略
- 推理后生成的图像质量显著提升,支持多轮交互
- 适合构建端到端可扩展的多模态生成系统
能够交替生成的统一模型正成为主流方向,社区逐渐趋向于采用自回归建模处理文本、流匹配方法生成图像。为此,本文提出一种面向交替生成的统一强化学习框架。在单轮推理驱动图像生成任务中验证该方法:模型先通过推理扩展用户提示,再生成图像。将此多模态生成过程建模为具有稀疏终态奖励的马尔可夫决策过程,引入UniGRPO联合优化文本与图像生成策略。采用极简设计,无缝整合标准GRPO用于推理和FlowGRPO用于视觉合成。为实现多轮交替生成的可扩展性,对原始FlowGRPO进行两项关键改进:(1) 去除无分类器引导以维持线性、非分支的采样路径,确保复杂场景(如多轮交互、多条件生成)下的可扩展性;(2) 用速度场上的均方误差惩罚替代标准潜在空间KL惩罚,提供更稳定直接的正则化信号,有效防止奖励劫持。实验表明,该统一训练方案通过推理显著提升了图像生成质量,为未来全交替生成模型的后训练提供了鲁棒且可扩展的基准。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。