Abstract
Reinforcement Fine-Tuning (RFT) on flow-based models is crucial for preference alignment. However, they often introduce visual hallucinations like over-optimized details and semantic misalignment. This work preliminarily explores why visual hallucinations arise and how to reduce them. We first investigate RFT methods from a unified perspective, and reveal the core problems stemming from two aspects, exploration and exploitation: (1) limited exploration during stochastic differential equation (SDE) rollouts, leading to an over-emphasis on local details at the expense of global semantics, and (2) trajectory imitation process inherent in policy gradient methods, distorting the model's foundational vector field and its cross-step consistency. Building on this, we propose ConsistentRFT, a general framework to mitigate these hallucinations. Specifically, we design a Dynamic Granularity Rollout (DGR) mechanism to balance exploration between global semantics and local details by dynamically scheduling different noise sources. We then introduce a Consistent Policy Gradient Optimization (CPGO) that preserves the model's consistency by aligning the current policy with a more stable prior. Extensive experiments demonstrate that ConsistentRFT significantly mitigates visual hallucinations, achieving average reductions of 49% for low-level and 38% for high-level perceptual hallucinations. Furthermore, ConsistentRFT outperforms other RFT methods on out-of-domain metrics, showing an improvement of 5.1% (v.s. the baseline's decrease of -0.4%) over FLUX1.dev. This is Project Page.
Introduction
Flow matching models, such as FLUX, represent the state-of-the-art in image generation. To align these models with complex human preferences, researchers employ Reinforcement Fine-Tuning (RFT) techniques like DDPO, DPO, or GRPO. However, a significant side effect of RFT in flow models is the emergence of visual hallucinations. These manifest as over-sharpened textures, unnatural grid patterns, and a drift away from the original prompt's global semantics.
The authors identify two primary drivers of these hallucinations:
- Exploration Constraints: Standard RFT relies on Stochastic Differential Equation (SDE) rollouts that primarily explore fine-grained variations. This leads the model to over-optimize local details to maximize rewards, often at the cost of global structural integrity.
- Optimization Conflicts: Policy gradient methods force the model to imitate noisy SDE trajectories, which distorts the clean, deterministic vector fields established during pre-training. This results in inconsistent generation across sampling steps.
ConsistentRFT Framework
To address these challenges, the paper introduces ConsistentRFT, a plug-and-play framework designed to enhance existing RFT algorithms.
Dynamic Granularity Rollout (DGR)
DGR addresses the exploration imbalance by alternating between different noise sources:
- Inter-Group Scheduling: The system toggles between "coarse-grained" rollouts (varying initial noise for global semantics) and "fine-grained" rollouts (varying in-trajectory noise for local details).
- Intra-Group Scheduling: To optimize compute, the process pauses at intermediate steps to "peek" at potential outcomes. It then clusters these states and only completes the generation for a diverse subset, ensuring representative exploration without excessive cost.
Consistent Policy Gradient Optimization (CPGO)
CPGO mitigates the exploitation problem by introducing a regularization term. This term ensures that the model's deterministic ODE predictions remain consistent with the stable trajectories of the pre-trained model. By preserving the foundational vector field, CPGO prevents the "mangling" effect typically caused by noisy SDE imitation.
VH-Evaluator
Standard benchmarks often fail to capture over-optimization artifacts. The authors developed the VH-Evaluator, which combines low-level metrics (e.g., Laplacian variance for over-sharpening) with high-level assessments from a Vision-Language Model (Qwen-VL-72B) to quantify hallucinations accurately.
Experimental Results
ConsistentRFT was evaluated using prompts from the HPDv2 dataset and the GenEval benchmark, with FLUX.1 dev as the base model.
- Hallucination Mitigation: The framework achieved a 49% reduction in low-level artifacts and a 38% reduction in high-level perceptual hallucinations compared to standard RFT baselines.
- Better Generalization: Unlike standard RFT, which often suffers from a "reward hacking" trade-off where out-of-domain performance drops, ConsistentRFT improved out-of-domain comprehension by 5.1%, whereas the baseline actually decreased by -0.4%.
- Efficiency Gains: The intra-group clustering mechanism improved training speed by approximately 18.6% while maintaining sample diversity.
Conclusion
ConsistentRFT provides a robust solution to the visual hallucination problem in flow-based RFT. By balancing exploration granularity and enforcing trajectory consistency, it allows for effective preference alignment without sacrificing image quality or semantic accuracy. Future work remains focused on developing more robust reward models that are less susceptible to over-optimization tricks.
Summary updated