NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fine-Grained GRPO for Precise Preference Alignment in Flow Models

Yujie Zhou, Pengyang Ling, Jiazi Bu, Yibin Wang, Yuhang Zang, Jiaqi Wang, Li Niu, Guangtao Zhai

TL;DR

The paper introduces Granular-GRPO ($G^2$RPO), a novel online reinforcement learning framework designed to precisely align flow-based generative models (like Flux.1) with human preferences. By isolating stochastic exploration to individual sampling steps and evaluating generation trajectories across multiple granularities, $G^2$RPO overcomes the classic RL pitfalls of sparse rewards and poor credit assignment, yielding images with significantly better prompt adherence and detail fidelity.

What Problem Does This Paper Address?

Reinforcement Learning from Human Feedback (RLHF) has successfully aligned Large Language Models, and recent work attempts to bring these techniques to diffusion and flow-based visual models using Group Relative Policy Optimization (GRPO). To explore alternative generation paths, standard flow-based GRPO methods convert deterministic Ordinary Differential Equation (ODE) samplers into stochastic Stochastic Differential Equation (SDE) samplers.

However, current approaches suffer from two major limitations:

  1. Sparse Rewards: Stochasticity is injected at every denoising step. Because the reward model only scores the final image, it is incredibly difficult to determine which specific random perturbation at which step actually caused a good or bad outcome (the credit assignment problem).
  2. Incomplete Evaluation: Each denoising direction is rigidly evaluated using a fixed number of sampling steps. However, a truly robust denoising direction should maintain its quality regardless of whether the remaining trajectory is rendered with fine or coarse granularity.

Methods

To resolve these issues, the authors propose $G^2$RPO, which introduces two key mechanisms:

  • Singular Stochastic Sampling: Instead of applying SDE sampling across the entire trajectory, $G^2$RPO restricts stochastic exploration to a single selected timestep ($x_k$). All preceding and subsequent steps use deterministic ODE sampling. Because the variance in the final group of images is entirely driven by the choices made at step $k$, the framework establishes a direct, dense reward signal for that specific step.
  • Multi-Granularity Advantage Integration (MGAI): To ensure a denoising direction is robust, the framework branches the trajectory after the stochastic step into multiple paths, each using a different number of remaining ODE steps (different granularities). The advantages calculated from these multi-scale images are then aggregated into a single, comprehensive advantage estimate.
Figure 1. (a) G2RPO outperforms DanceGRPO in reward scores (HPS-v2.1 in this figure). (b) Sampling strategy comparison. G2RPO acquire a dense reward by confining stochasticity to individual sampling steps. (c) Sampling grain comparison. G2RPO achieves a com- prehensive evaluation of each sampling direction by integrating advantages from multi-granularity ODE denoising. (d) Visual Comparison. Compared to the baseline method, the images generated by G2RPO are more aligned with human preferences.

Datasets

  • Training & Testing Prompts: The authors utilized the HPSv2 dataset, which contains 103,700 text prompts for training and 400 diverse evaluation prompts.
  • Base Model: All experiments were conducted using the state-of-the-art Flux.1-dev flow model.
  • Reward Models (Evaluation): Alignment was measured using a suite of preference models: HPS-v2.1, CLIP Score, Pick Score (PS), Image Reward (IR), and Unified Reward (UR).

Key Insights and Ideas

  • Concentrated Randomness Enables Credit Assignment: In generative modeling, less randomness can sometimes mean better learning. Confining the SDE to a single step acts as a controlled experiment for the policy, making it clear exactly how much value that specific step's direction added.
  • Granularity Robustness as a Proxy for Quality: High-quality semantic layouts are robust to scale. By forcing the model to evaluate directions across both coarse and fine denoising intervals, $G^2$RPO prevents the model from exploiting quirks of a specific step-count, mitigating the common issue of "reward model hacking."

Key Results

The authors evaluated $G^2$RPO under two settings: training solely on HPS-v2.1, and joint training on both HPS and CLIP Score.

  • Quantitative Performance: In joint HPS & CLIP training, $G^2$RPO achieved an HPS score of 0.376 and a CLIP score of 0.406, outperforming the primary baseline DanceGRPO (HPS: 0.331, CLIP: 0.389) and MixGRPO (HPS: 0.363, CLIP: 0.399).
  • Robustness to Inference Steps: When the total inference steps were compressed down to 10 or 20 steps, $G^2$RPO maintained a significant performance edge over baselines, proving the efficacy of the multi-granularity training.
  • Qualitative Improvements: Visually, images generated via $G^2$RPO show superior text-prompt adherence (e.g., correctly rendering complex spatial text instructions like "a wooden sign with the word Protect Animals") and sharper details.

Limitations and Future Work

While $G^2$RPO significantly improves preference alignment, the authors note that optimizing against a single reward model (like HPS-v2.1 alone) can still lead to model hacking and a degradation in out-of-domain metrics—though joint reward training helps alleviate this. Future work could explore extending this fine-grained credit assignment framework to video generation models, where sparse rewards and temporal consistency present even steeper challenges.

Summary updated

BibTeX
@inproceedings{zhou2026fine,
  author = {Yujie Zhou and Pengyang Ling and Jiazi Bu and Yibin Wang and Yuhang Zang and Jiaqi Wang and Li Niu and Guangtao Zhai},
  title = {{Fine-Grained GRPO for Precise Preference Alignment in Flow Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=YAURHvqKn1},
}
Figure