MAR-GRPO: Stabilized GRPO for AR-diffusion Hybrid Image Generation

Xiaoxiao Ma, Jiachen Lei, Tianfei Ren, Jie Huang, Siming Fu +4 more
4/8/2026
cs.CV

Official code: AMAP-ML/mar-grpo (2 stars, last commit 2026-04-08).

Abstract

Reinforcement learning (RL) has been successfully applied to autoregressive (AR) and diffusion models. However, extending RL to hybrid AR-diffusion frameworks remains challenging due to interleaved inference and noisy log-probability estimation. In this work, we study masked autoregressive models (MAR) and show that the diffusion head plays a critical role in training dynamics, often introducing noisy gradients that lead to instability and early performance saturation. To address this issue, we propose a stabilized RL framework for MAR. We introduce multi-trajectory expectation (MTE), which estimates the optimization direction by averaging over multiple diffusion trajectories, thereby reducing diffusion-induced gradient noise. To avoid over-smoothing, we further estimate token-wise uncertainty from multiple trajectories and apply multi-trajectory optimization only to the top-k% uncertain tokens. In addition, we introduce a consistency-aware token selection strategy that filters out AR tokens that are less aligned with the final generated content. Extensive experiments across multiple benchmarks demonstrate that our method consistently improves visual quality, training stability, and spatial structure understanding over baseline GRPO and pre-RL models. Code is available at: https://github.com/AMAP-ML/mar-grpo.

View on arXivView PDF

Code Implementations(1)

AMAP-ML/mar-grpoOfficial100%
20C++, CudaApr 8, 20266 months ago

Similar Papers

Cite this paper

@article{ma2026margrpo,
  title  = {MAR-GRPO: Stabilized GRPO for AR-diffusion Hybrid Image Generation},
  author = {Xiaoxiao Ma and Jiachen Lei and Tianfei Ren and Jie Huang and Siming Fu and Aiming Hao and Jiahong Wu and Xiangxiang Chu and Feng Zhao},
  year   = {2026},
  eprint = {2604.06966},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.06966v1}
}

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/2604.06966.svg)](https://codeofpaper.com/paper/2604.06966)

Discussion