Co-GRPO: Co-Optimized Group Relative Policy Optimization for Masked Image Generation

Renping Zhou, Zanlin Ni, Tianyi Chen, Zeyu Liu, Yang Yue, Yulin Wang, Yuxuan Wang, Jingshu Liu, Gao HuangNeurIPS 2026

TL;DR

Masked Diffusion Models (MDMs) generate images rapidly by decoding visual tokens in chunks, yet they rely on rigid, hand-crafted rules during inference that they never actually experience during training. Co-GRPO closes this gap using reinforcement learning to simultaneously co-evolve both the image-generating neural network and its step-by-step decoding schedule. The result is sharper aesthetics, stronger prompt adherence, and dramatic quality boosts—especially when generating images in very few steps.

What Problem Does This Paper Address?

Imagine training a painter by covering random patches of finished paintings and asking them to guess what is underneath all at once. Then, on opening night, you hand them a blank canvas and tell them to paint a masterpiece in 16 sequential stages, following a strict, pre-written rulebook for how much of the canvas to fill at each stage.

This is the exact disconnect inside Masked Diffusion Models (MDMs). Unlike autoregressive models that generate images one token at a time, MDMs start with a fully masked canvas and iteratively infill multiple discrete tokens in parallel over 8 to 48 steps.

To avoid expensive backpropagation through dozens of steps, MDMs are trained with a simplified, single-step BERT-style objective: mask a random subset of tokens and predict them simultaneously. Because training is single-step, the model never learns how to pace itself across a multi-step trajectory. At inference time, engineers rely on manually designed "inference schedules"—mathematical functions governing the re-masking ratio, sampling temperature, re-mask temperature, and classifier-free guidance scale at each step. Even when researchers apply reinforcement learning (like Naive GRPO) to fine-tune MDMs, they freeze the schedule and only update the model, leaving half of the generation machinery unoptimized.

Figure 2: Comparison between the conventional MDM post-training framework and our Co-GRPO. Naive GRPO collects trajectories using a trainable MDM model under a fixed, predefined inference sched- ule. Our proposed Co-GRPO challenges this convention by cooperatively optimizing both the MDM model and the inference schedule based on the reward feedback.

Methods

The authors introduce Co-GRPO (Co-Optimized Group Relative Policy Optimization), which unifies the token-predicting model and the inference schedule into a single Markov Decision Process (MDP).

Instead of treating the four scheduling parameters as fixed hyperparameters, Co-GRPO treats them as continuous, trainable actions chosen dynamically at every denoising step alongside the visual tokens. The joint policy is cleanly factorized into two cooperating components:

  1. The Model Policy ($\pi_{\text{model}}$): The standard MDM backbone that predicts visual tokens, now conditioned on the dynamically chosen schedule.
  2. The Scheduling Policy ($\pi_{\text{schedule}}$): A lightweight neural network that observes the current canvas and prompt, outputting a multivariate Gaussian distribution to sample the next step's scheduling parameters.

Using Group Relative Policy Optimization (GRPO)—an RL algorithm that scores a group of generated trajectories at the final step to compute relative advantages—Co-GRPO updates both policies under a shared reward without backpropagating through the multi-step generation chain.

Figure 3: Overview of our proposed Co-GRPO. During the trajectory collection phase, both the sampled visual tokens (V) and their associated inference schedule (A) are collected at each step. These trajectories are evaluated by the reward model, and the resulting scores are aggregated and normalized at the group level to compute individual advantages. In the subsequent policy optimization phase, the joint policy is factorized into a model policy πθ and a scheduling policy πϕ. By estimating their respective likelihoods and applying an alternating optimization strategy, our approach enables the cooperative refinement of both policies toward improved generation quality.

What’s novel in training: Updating a massive 1B-parameter vision model and a tiny scheduling network at the exact same time causes training instability. Leveraging the mathematical separability of their factorized policy, the authors introduce an alternating co-optimization strategy: they freeze the schedule while updating the model for $N_m$ iterations, then freeze the model while updating the schedule for $N_s$ iterations, allowing each to adapt to a stable counterpart.

Datasets

The paper does not introduce new datasets, nor does the main text specify the exact prompt dataset used during RL trajectory collection (deferring training hyperparameters to the appendix).

  • Reward Models (Training & In-Distribution Eval): Models are trained using an equal 50/50 weighted combination of ImageReward and HPSv2, and evaluated on their respective benchmarks.
  • Out-of-Distribution Benchmarks (Zero-Shot Eval): To test generalization and prompt adherence without fine-tuning, the authors evaluate on GenEval and DPG-Bench, plus orthogonal reward metrics MPS and CLIP-Score.

Key Insights and Ideas

  • Tiny schedules wield massive leverage: In a preliminary test, merely tweaking the exponent of a cosine masking schedule from $1.0$ to $1.5$ caused the 16-step ImageReward score to jump from $0.735$ to $0.896$. This sensitivity explains why simultaneous training is unstable—tiny updates to the small scheduling network drastically shift the generation dynamics—making alternating optimization essential.
  • Co-evolution beats post-hoc search: Searching for an optimal schedule on a frozen RL-tuned model improves scores modestly, whereas co-evolving them together unlocks a superior joint solution—the model learns what to generate based on how the schedule paces it, and vice versa.
  • Learned schedules shine brightest under tight budgets: When a policy trained at 48 steps is interpolated down to just 8 steps, performance explodes compared to the baseline. Smart pacing matters most when you only have a few steps to paint the picture.

Key Results

Applied to the 1B-parameter Meissonic MDM (at 48 steps), Co-GRPO outperforms both the base model, larger diffusion models, and competing RL baselines (Naive GRPO, MaskGRPO, UniGRPO):

  • Reward Alignment: Boosts ImageReward from $0.942$ to $1.122$ (vs. $1.014$ for Naive GRPO) and HPSv2 from $28.83$ to $29.37$, outperforming much larger models like Flux.2 Klein (9.2B, $1.083$ ImageReward).
  • Zero-Shot Generalization: Without training on their prompts, Co-GRPO lifts Meissonic's GenEval score from $0.47$ to $0.55$ and DPG-Bench from $64.57$ to $70.10$.
  • Low-Step Transfer: Evaluated at just 8 inference steps, the 48-step-trained Co-GRPO leaps from a baseline ImageReward of $0.133$ to $0.874$.
  • Model-Agnostic: Applied to a second MDM backbone (Show-o, 1.3B), Co-GRPO raises ImageReward from $1.028$ to $1.216$ and GenEval from $0.64$ to $0.75$.
Figure 1: Qualitative and quantitative comparison of Co-GRPO against baseline approaches. Through cooperative optimization of the MDM model and inference schedule, Co-GRPO produces images with markedly superior quality compared to baseline. Prompts are provided in table 8.

Limitations and Future Work

Due to computational constraints, the authors only validated Co-GRPO on ~1B-parameter models (Meissonic and Show-o) and have not yet scaled the framework to massive multimodal MDMs such as the 8B-parameter MMaDA. Scaling this cooperative RL paradigm to larger foundation models remains an open direction for future work.

Summary updated

Abstract

Recently, Masked Diffusion Models (MDMs) have shown promising potential across vision, language, and cross-modal generation. However, a notable discrepancy exists between their training and inference procedures. In particular, MDM inference is a multi-step, iterative process governed not only by the model itself but also by various schedules that dictate the token-decoding trajectory (e.g., how many tokens to decode at each step). In contrast, MDMs are typically trained using a simplified, single-step BERT-style objective that masks a subset of tokens and predicts all of them simultaneously. This step-level simplification fundamentally disconnects the training paradigm from the trajectory-level nature of inference, leaving the inference schedules never optimized during training. In this paper, we introduce Co-GRPO, which reformulates MDM generation as a unified Markov Decision Process (MDP) that jointly incorporates both the model and the inference schedule. By applying Group Relative Policy Optimization at the trajectory level, Co-GRPO cooperatively optimizes model parameters and schedule parameters under a shared reward, without requiring costly backpropagation through the multi-step generation process. This holistic optimization aligns training with inference more thoroughly and substantially improves generation quality. Empirical results across four benchmarks-ImageReward, HPSv2, GenEval, and DPG-Bench-demonstrate the effectiveness of our approach.
BibTeX
@inproceedings{zhou2026co,
  author = {Renping Zhou and Zanlin Ni and Tianyi Chen and Zeyu Liu and Yang Yue and Yulin Wang and Yuxuan Wang and Jingshu Liu and Gao Huang},
  title = {{Co-GRPO: Co-Optimized Group Relative Policy Optimization for Masked Image Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ydt2nVtol8},
}
Figure