MixGRPO: Unlocking Flow-based GRPO Efficiency with Mixed ODE-SDE

Junzhe Li, Yutao Cui, Tao Huang, Yinping Ma, Chun Fan +3 more
7/29/2025
195 citations
cs.AIcs.CV
rlhf-rlvr-dpo

No official code found. Best implementation: Tencent-Hunyuan/MixGRPO (1,184 stars, Python, last commit 2026-02-26).

Abstract

Although GRPO substantially enhances flow matching models in human preference alignment of image generation, methods such as FlowGRPO and DanceGRPO still exhibit inefficiency due to the necessity of sampling and optimizing over all denoising steps specified by the Markov Decision Process (MDP). In this paper, we propose $\textbf{MixGRPO}$, a novel framework that leverages the flexibility of mixed sampling strategies through the integration of stochastic differential equations (SDE) and ordinary differential equations (ODE).

Show full abstract

This streamlines the optimization process within the MDP to improve efficiency and boost performance. Specifically, MixGRPO introduces a sliding window mechanism, using SDE sampling and GRPO-guided optimization only within the window, while applying ODE sampling outside. This design confines sampling randomness to the time-steps within the window, thereby reducing the optimization overhead, and allowing for more focused gradient updates to accelerate convergence. Additionally, as time-steps beyond the sliding window are not involved in optimization, higher-order solvers are supported for faster sampling. So we present a faster variant, termed $\textbf{MixGRPO-Flash}$, which further improves training efficiency while achieving comparable performance. MixGRPO exhibits substantial gains across multiple dimensions of human preference alignment, outperforming DanceGRPO in both effectiveness and efficiency, with nearly 50% lower training time. Notably, MixGRPO-Flash further reduces training time by 71%.

View on arXivView PDF

Code Implementations(1)

(arXiv) MixGRPO: Unlocking Flow-based GRPO Efficiency with Mixed ODE-SDE

1,18453Python, ShellJul 29, 20259 months agoNOASSERTION
diffusiongrporeinforcement-learning

Similar Papers

Cite this paper

@article{li2025mixgrpo,
  title  = {MixGRPO: Unlocking Flow-based GRPO Efficiency with Mixed ODE-SDE},
  author = {Junzhe Li and Yutao Cui and Tao Huang and Yinping Ma and Chun Fan and Miles Yang and Zhao Zhong and Liefeng Bo},
  year   = {2025},
  eprint = {2507.21802},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.21802v5}
}

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

Discussion