MixGRPO: Unlocking Flow-based GRPO Efficiency with Mixed ODE-SDE
Jun-Zhe Li, Yu-Tao Cui, Tao Huang, Wei-Jie Kong, Yi-Ming Cheng, Chu-Xuan Zeng, Yi-Ting Ma, Chun Fan, Miles Yang, Zhao Zhong, Lie-Feng Bo
arXiv:2507.21802 · 2026-11-03 공개 · arXiv · PDF
grpo training-efficiency flow-based-models sliding-window sampling-strategies human-preference-alignment ode-sde mixgrpo
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). 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%.
한국어 요약
한 줄 요약
MixGRPO는 SDE와 ODE를 결합한 새로운 GRPO 훈련 프레임워크로, 훈련 시간을 50% 이상 단축시키며 생성 이미지의 인간 선호도를 향상시킨다.
핵심 기여도
- **SDE-ODE 혼합 샘플링 전략**을 도입하여 GRPO 최적화 과정을 단순화하고 효율성을 향상.
- **슬라이딩 윈도우 메커니즘**을 통해 SDE 샘플링과 GRPO 최적화를 특정 시간 구간에만 적용, 훈련 오버헤드를 50% 감소.
- **MixGRPO-Flash** 버전은 고차 ODE 솔버(DPMSolver++)를 도입하여 훈련 시간을 추가로 71% 감소.
- **ImageReward** 지표에서 1.629 (DanceGRPO 대비 +13.4%) 성능 향상.
핵심 아이디어
기존 GRPO 기반 흐름 매칭 모델은 모든 디노이징 단계에서 SDE 샘플링과 최적화를 수행해야 하여 훈련 효율성이 낮았다. MixGRPO는 이 문제를 해결하기 위해 **SDE와 ODE 샘플링을 결합한 혼합 전략**을 제안한다. 특히, **슬라이딩 윈도우 메커니즘**을 통해 SDE 샘플링과 GRPO 최적화를 특정 시간 구간에만 적용함으로써, 불필요한 랜덤성과 계산 오버헤드를 줄인다. 이는 강화 학습에서의 시간 할인 요인과 유사한 아이디어로, 초기 디노이징 단계(노이즈 제거가 가장 큰 단계)에 집중적으로 최적화를 수행함으로써 **더 빠른 수렴과 높은 품질의 이미지 생성**을 가능하게 한다.
기술적 접근법
- **SDE-ODE 혼합 샘플링**: SDE는 슬라이딩 윈도우 내에서만 적용, ODE는 나머지 단계에서 사용.
- **슬라이딩 윈도우**: GRPO 최적화를 특정 시간 구간에만 적용, 랜덤성을 제한.
- **DPMSolver++**: 고차 ODE 솔버를 사용해 `π_θ_old` 샘플링을 가속화.
- **훈련 데이터셋**: HPDv2 (103,700개 훈련 프롬프트, 400개 테스트 프롬프트).
- **기본 모델**: FLUX.1 Dev.
- **성능 평가 지표**: HPS-v2.1, Pick Score, ImageReward, Unified Reward.
주요 결과
- **ImageReward** 지표에서 1.629 (DanceGRPO: 1.436, +13.4%) 달성.
- **DanceGRPO 대비 훈련 시간 50% 감소**, MixGRPO-Flash는 추가로 71% 감소.
- **단일 RM (HPS-v2.1) 및 다중 RM (HPS-v2.1 + CLIP Score) 모두에서 우수한 성능**.
- **NFE (Function Evaluation) 감소**: `NFE_π_θ_old`와 `NFE_π_θ` 모두 감소.
의의 및 한계
MixGRPO는 GRPO 기반 흐름 매칭 모델의 효율성 문제를 해결하며, **인간 선호도 기반 이미지 생성의 새로운 가능성을 열었다**. 특히, 슬라이딩 윈도우와 고차 ODE 솔버의 결합은 훈련 시간을 대폭 줄이며, **실용적 이미지 생성 시스템에 즉각적으로 적용 가능한 기술**이다. 그러나, **슬라이딩 윈도우 크기나 위치에 따른 성능 변동**은 추가 연구가 필요하며, **다양한 스타일의 이미지 생성에서의 일반화 능력**도 검증이 필요하다.
실용적 활용
MixGRPO는 **인간 선호도 기반 이미지 생성 시스템**, 특히 **커스터마이징된 이미지 생성 플랫폼** 및 **광고, 콘텐츠 제작 분야**에서 활용 가능하다. 또한, **다중 보상 모델을 사용한 복합적 평가 시스템**에서의 적용 가능성도 높으며, **AI 생성 콘텐츠의 품질과 효율성 향상**에 기여할 수 있다.