Introduction
Fine-tuning large-scale generative models using Reinforcement Learning (RL) has become a cornerstone for aligning AI outputs with human preferences, aesthetics, and complex instructions. Algorithms such as Group Relative Policy Optimization (GRPO) are frequently employed to optimize models like FLUX or Stable Diffusion. These methods rely on generating a "group" of diverse samples for a single prompt to allow the model to distinguish between high- and low-quality outputs. However, introducing the necessary stochasticity for diversity often compromises image quality, particularly in modern "fast" or distilled models.
The Challenge: Noise Mismatch in Flow Matching
In deterministic Flow Matching frameworks, diversity is typically introduced by converting the Ordinary Differential Equation (ODE) into a Stochastic Differential Equation (SDE). This paper identifies a fundamental flaw in this approach: standard SDE-based sampling injects an "excess" of noise that deviates from the model's original training scheduler.
This mismatch results in images that appear grainy or "fried," especially when using a limited number of sampling steps (e.g., the 4-step FLUX.1-schnell). Because reward models—the "judges" in RL—are trained on clean, high-quality images, they struggle to accurately score these noisy samples. This leads to inaccurate gradients, unstable training, and poor final performance.
Proposed Method: Coefficients-Preserving Sampling (CPS)
To resolve the discrepancy between injected noise and the sampling scheduler, the authors introduce Coefficients-Preserving Sampling (CPS).
Mathematical Reformulation
Inspired by Denoising Diffusion Implicit Models (DDIM), CPS ensures that at every timestep, the sum of the coefficients for the predicted sample and the noise remains exactly as defined by the scheduler. This keeps the latent variable on the intended "noise track" throughout the generation process.
Geometric and Theoretical Foundations
The paper provides a geometric interpretation of CPS as a controlled interpolation rather than a linear addition of noise. Furthermore, the authors prove that the commonly used Flow-SDE is merely a first-order Taylor approximation of a more stable process. This approximation fails significantly under high noise levels or low step counts.
Log-Probability Simplification
To enhance numerical stability during RL training, the authors simplified the log-probability objective. By removing a normalization term that previously caused gradients to explode near the end of the sampling process, they achieved more robust optimization.
Experimental Setup
The researchers evaluated CPS across several state-of-the-art models, including FLUX.1-dev, FLUX.1-schnell, and Stable Diffusion 3.5 Medium (SD3.5-M). Performance was measured using:
- GenEval: For compositional skills like counting and spatial relationships.
- OCR (Text Rendering): Using PaddleOCR-based rewards to evaluate spelling accuracy.
- PickScore & HPSv2: Human-preference-based reward models for aesthetics and general quality.
Key Results and Insights
CPS demonstrates significant improvements in both visual fidelity and training efficiency.
- Visual Quality: Unlike Flow-SDE, which produces unrecognizable images at high stochasticity ($\eta = 1.0$), CPS maintains clean, high-quality outputs.
- Faster Convergence: In PickScore and HPSv2 evaluations, Flow-CPS reached higher reward plateaus significantly faster than Flow-GRPO and Dance-GRPO baselines.
- Superior Performance on Distilled Models: On the 4-step FLUX.1-schnell model, CPS achieved a PickScore of 23.78, outperforming standard Flow-GRPO (23.39) and the base model (21.86).
- Training Stability: CPS eliminated the "sudden drops" in reward often observed in RL training, resulting in a smoother optimization curve.
Conclusion and Future Work
Coefficients-Preserving Sampling addresses a critical bottleneck in applying RL to Flow Matching models. By ensuring that sampling trajectories remain consistent with the model's training distribution, CPS enables the generation of clean samples that reward models can accurately evaluate.
While CPS provides a vital foundation for fast generative AI, the authors note that challenges like "reward hacking" (where models over-saturate textures to boost scores) and optimal credit assignment in multi-step processes remain open areas for future research.
Summary updated