Reinforcement Learning Meets Masked Generative Models: Mask-GRPO for Text-to-Image Generation

Yifu Luo, Xinhao Hu, Keyu Fan, Haoyuan Sun, Zeyu Chen +4 more
10/15/2025
cs.CV

Official code: xingzhejun/Mask-GRPO (14 stars, last commit 2025-12-18).

Abstract

Reinforcement learning (RL) has garnered increasing attention in text-to-image (T2I) generation. However, most existing RL approaches are tailored to either diffusion models or autoregressive models, overlooking an important alternative: masked generative models. In this work, we propose Mask-GRPO, the first method to incorporate Group Relative Policy Optimization (GRPO)-based RL into this overlooked paradigm. Our core insight is to redefine the transition probability, which is different from current approaches, and formulate the unmasking process as a multi-step decision-making problem. To further enhance our method, we explore several useful strategies, including removing the KL constraint, applying the reduction strategy, and filtering out low-quality samples. Using Mask-GRPO, we improve a base model, Show-o, with substantial improvements on standard T2I benchmarks and preference alignment, outperforming existing state-of-the-art approaches. The code is available on https://github.com/xingzhejun/Mask-GRPO

View on arXivView PDF

Code Implementations(1)

141Shell, PythonOct 9, 202510 months ago

Similar Papers

Cite this paper

@article{luo2025reinforcement,
  title  = {Reinforcement Learning Meets Masked Generative Models: Mask-GRPO for Text-to-Image Generation},
  author = {Yifu Luo and Xinhao Hu and Keyu Fan and Haoyuan Sun and Zeyu Chen and Bo Xia and Tiantian Zhang and Yongzhe Chang and Xueqian Wang},
  year   = {2025},
  eprint = {2510.13418},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.13418v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.13418.svg)](https://codeofpaper.com/paper/2510.13418)

Discussion