Dual-Grained Policy Optimization for Hallucination Reduction in Flow-Based RL
Organizations: Southeast University · Tencent Youtu Lab · Southern University of Science and Technology
Abstract
Reinforcement Fine-Tuning (RFT) on flow-based models is crucial for alignment. However, they often introduce visual hallucinations like over-optimized details and semantic misalignment. This work explains why visual hallucinations arise and shows how to reduce them. We first investigate RFT methods from a unified perspective and trace hallucinations to two mechanisms. Limited exploration from stochastic differential equation (SDE) rollouts yields detail-dominated within-group differences, leading to fine-grained optimization that over-emphasizes local details and neglects global semantics. Trajectory imitation writes reward-selected SDE noise into the velocity field, leading to inconsistent optimization that degrades cross-step consistency. Building on this, we propose DGPO, a general framework to mitigate hallucinations. Specifically, we design Dynamic Granularity Rollout (DGR) to balance global semantics and local details by dynamically scheduling noise sources. We then introduce a Consistent Policy Gradient Optimization that preserves the consistency by aligning the policy with a more stable prior. Experiments show that DGPO reduces low-/high-level hallucinations by 49%/38% and improves the average of out-of-domain (OoD) metrics by +4.9% on FLUX.1.dev, compared with the baseline's -0.7%. Project page: https://xiaofeng-tan.github.io/projects/ConsistentRFT/
Figures & tables
| Method | Reward | Human Preference | Aesthetic | Semantic | Comprehensive | ||||
|---|---|---|---|---|---|---|---|---|---|
| HPS | IR | PS | Aes. | CLIP | UR-S | UR | Avg. | ||
| Flux Dev | - | 0.312 | 1.089 | 0.226 | 5.837 | 0.388 | 3.365 | 3.520 | 2.404 |
| DDPO-Based Methods | |||||||||
| DDPO | HPS | 0.313 +0.3% | 1.129 +3.7% | 0.227 +0.4% | 5.896 +1.0% | 0.391 +0.8% | 3.387 +0.7% | 3.568 +1.4% | 2.433 +1.2% |
| + DGPO | HPS | 0.324 +3.8% | 1.197 +9.9% | 0.228 +0.9% | 5.998 +2.8% | 0.396 +2.1% | 3.476 +3.3% | 3.593 +2.1% | 2.481 +3.2% |
| DPO-Based Methods | |||||||||
| Method | Low | High | Cons. | ||||||
| LV | HF | Edge | Nse. | Sh. | Irr. | Gr. | Avg. | LC | |
| Flux Dev | 977 | 26 | 61 | 0.27 | 1.00 | 0.87 | 0.12 | 0.66 | 0.30 |
| DDPO | 3895 | 68 | 71 | 0.78 | 2.48 | 2.52 | 0.61 | 1.87 | 0.32 |
| w/ DGPO | 1028 | 40 | 66 | 0.62 | 1.07 | 0.92 | 0.12 | 0.70 | 0.30 |
| OnlineDPO | 2752 | 44 | 62 | 0.61 | 2.43 | 2.20 | 0.58 | 1.74 | 0.32 |
| w/ DGPO | 1131 | 37 | 59 | 0.59 | 1.50 | 1.34 | 0.29 | 1.04 | 0.30 |
| Method | Reward | Human Preference | Aesthetic | Semantic | Comprehensive | Time / s | ||||
| HPS | IR | PS | Aes. | CLIP | UR-S | UR | Avg. | |||
| SDXL ( Podell et al., 2023 ) | - | 0.292 | 0.945 | 0.226 | 5.735 | 0.418 | 3.275 | 3.425 | 2.337 | 9 |
| Hunyuan-DiT ( Li et al., 2024 ) | - | 0.302 | 1.094 | 0.225 | 5.616 | 0.411 | 3.296 | 3.458 | 2.350 | 23 |
| Kolors ( Kolors Team, 2024 ) | - | 0.312 | 0.974 | 0.225 | 6.000 | 0.386 | 3.296 | 3.376 | 2.376 | 31 |
| SD-3.5-M ( Esser et al., 2024 ) | - | 0.302 | 1.130 | 0.227 | 5.659 | 0.411 | 3.350 | 3.580 | 2.393 | 14 |
| SD-3.5-L ( Esser et al., 2024 ) | - | 0.303 | 1.143 | 0.228 | 5.853 | 0.410 | 3.330 | 3.627 | 2.432 | 17 |
| Method | Granularity | Time / s | HPS | IR | PS | Aes. | CLIP | UR-S | UR | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| Flux Dev | - | - | 0.312 | 1.09 | 0.226 | 5.84 | 0.388 | 3.37 | 3.52 | 2.41 |
| DanceGRPO | Fine | 665 | 0.353 | 1.16 | 0.226 | 5.90 | 0.361 | 3.30 | 3.38 | 2.39 |
| - | Coarse | 665 | 0.326 | 1.14 | 0.226 | 5.93 | 0.375 | 3.32 | 3.48 | 2.41 |
| + Inter DGR | Dynamic | 665 | 0.349 | 1.19 | 0.230 | 6.14 | 0.376 | 3.35 | 3.50 | 2.46 |
| + CPGO | Dynamic | 665 | 0.348 | 1.30 | 0.230 | 6.20 | 0.384 | 3.41 | 3.62 | 2.52 |
| + Intra DGR | Dynamic | 541 | 0.348 | 1.28 | 0.231 | 6.16 | 0.373 | 3.39 | 3.53 | 2.49 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | DanceGRPO | MixGRPO |
|---|---|---|
| Learning Rate | ||
| Batch Size | 2 | 2 |
| Grad Accum Steps | 12 | 3 |
| Num Generations | 12 | 12 |
| Sampling Steps | 16 | 25 |
| Resolution | 720 720 | 720 720 |
| Method | Period | Ratio | HPS | IR | PS | Aes. | CLIP | UR-S | UR | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| Flux Dev | - | - | 0.312 | 1.09 | 0.226 | 5.84 | 0.388 | 3.37 | 3.52 | 2.41 |
| DanceGRPO ( Xue et al., 2025 ) | - | - | 0.353 | 1.16 | 0.226 | 5.90 | 0.361 | 3.30 | 3.38 | 2.39 |
| DGPO | 20 | 0.25 | 0.351 | 1.28 | 0.231 | 6.16 | 0.378 | 3.38 | 3.57 | 2.50 |
| DGPO | 50 | 0.25 | 0.346 | 1.29 | 0.229 | 6.13 | 0.387 | 3.43 | 3.60 | 2.51 |
| DGPO | 40 | 0.25 | 0.348 | 1.30 | 0.230 | 6.20 | 0.384 | 3.41 | 3.62 | 2.52 |
| DGPO | 40 | 0.75 | 0.342 | 1.25 | 0.228 | 6.04 | 0.389 | 3.46 | 3.55 | 2.49 |