Reinforcement Learning (RL) has become an important component in the post-training of diffusion models. In practice, however, standard RL often improves the target reward without reliably preserving holistic generation quality, leading to unstable reward-quality trade-offs that we view as a form of reward hacking. Since Classifier-Free Guidance (CFG) is known to improve visual clarity, prompt alignment, and perceptual quality in generation, we investigate whether its underlying structure can serve as a useful prior during RL. We present a unified geometric view that interprets both CFG and RL as correction vectors in a common prediction space, and identify the projection of the RL-induced correction onto the pretrained CFG correction as a useful diagnostic of quality-related structural preservation. Geometric analysis and rotation intervention further show that the pretrained CFG direction carries information useful for generation quality that reward-driven RL updates do not necessarily preserve. Based on this insight, we propose Conditional Contrast Regularization (CCR), which uses the frozen reference model's conditional contrast as a local structural prior during RL. Experiments across multiple reward settings and backbones show that CCR more consistently preserves generation quality while maintaining competitive reward, yielding a better reward-quality trade-off than standard RL and generic regularization methods.
Figures & tables
Figure 1: Conceptual illustration of CCR. (a) RL may produce a correction that deviates from the CFG correction direction, while CCR helps preserve the CFG-aligned component. (b) Representative images generated without CFG, with CFG, after RL fine-tuning, and after RL+CCR fine-tuning.
Figure 2: Effect of rotating the learned correction after RL with GenEval reward. (a) Visual clarity. (b) Prompt alignment. (c) GenEval reward. Dashed lines mark pretrained and RL baselines.
Figure 3: Visualization of rotating the learned correction. All images use the prompt ”a Ferari car that is made out of wood”.
Figure 4: Method overview. From a rollout sample x0 , the RL/NFT branch computes LRL=LNFT+λKLLKL , while the CCR branch builds a local contrast target from conditional and unconditional reference predictions. The final objective is L=LRL+λLCCR .
Setting
Method
Visual Clarity ↑
Prompt Alignment ↑
Perceptual Quality ↑
Reward ↑
Lap.
CLIP-IQA
DPG
VQA
MUSIQ
MANIQA
DEQA
GenEval
PickScore
HPSv2.1
Multi-rew.
Pretrained
w/o CFG
1064
0.62
78.5
0.69
63.2
0.35
3.02
0.258
0.713
0.218
1.157
w/ CFG=2
1192
0.78
84.7
0.89
67.7
0.44
3.50
0.558
0.754
0.260
1.270
w/ CFG=5
1279
0.88
86.0
0.93
70.9
0.53
3.92
0.667
0.770
0.279
1.318
Table 1: Effect of inference-time CFG scale on pretrained Z-Image. The best and second-best results are shown in bold and underlined .
Setting
Method
Visual Clarity ↑
Prompt Alignment ↑
Perceptual Quality ↑
Reward ↑
Lap.
CLIP-IQA
DPG
VQA
MUSIQ
MANIQA
DEQA
GenEval
Default KL
208
0.75
79.8
0.82
67.6
0.39
3.24
0.938
Larger KL
331
0.60
83.3
0.87
64.7
0.35
3.17
0.952
DDRL [ 52 ]
542
0.80
81.8
0.86
70.0
0.50
3.64
0.923
GARDO [ 15 ]
821
0.73
79.3
0.78
65.5
0.49
3.36
0.758
CCR
841
0.96
83.1
0.87
74.7
0.67
4.33
0.960
Table 2: Quantitative comparison of RL regularization methods on Z-Image across four reward settings. CCR achieves a better overall reward–quality trade-off, substantially improving image quality while maintaining competitive reward scores.
Figure 5: Visual comparison on Z-Image. For each prompt, we show pretrained outputs at different CFG scales and RL outputs from Default KL, DDRL, and CCR under four reward settings.
Figure 6: Visual clarity and prompt alignment versus final reward across four reward settings. The top and bottom rows show Laplacian variance and DPG score, respectively.
Figure 7: Average projection coefficient along the CFG correction during training across four reward settings.
Setting
Method
Lap. ↑
DPG ↑
MUSIQ ↑
GenEval ↑
Pretrained
w/o CFG
242
85.0
68.2
0.677
GenEval
Default KL
169
85.5
66.0
0.947
GenEval
CCR
744
86.3
72.3
0.933
Table 3: Quantitative evaluation of CCR on Qwen-Image.
Figure 8: Additional analyses. (a) External CFG versus CCR on Z-Image with GenEval reward, showing Laplacian variance (top) and DPG score (bottom) versus final reward. (b) Dynamics of projection coefficients across backbones during NFT training.
Setting
Method
Lap. ↑
DPG ↑
MUSIQ ↑
Reward ↑
αˉfinal
GenEval
Default KL
208
79.8
67.6
0.938
-0.173
CFG distill.
1743
81.5
73.1
0.935
0.606
CCR
841
83.1
74.7
0.960
0.301
Table 4: Comparison between direct CFG distillation and CCR.
Setting
Method
Lap. ↑
DPG ↑
Reward ↑
αˉfinal
GenEval
Default KL
208
79.8
0.938
-0.173
CCR ( λ =0.03)
623
83.4
0.950
0.112
CCR ( λ =0.05)
841
83.1
0.960
0.301
CCR ( λ =0.10)
1487
80.9
0.944
0.213
PickScore
Default KL
229
82.8
0.842
-0.175
CCR ( λ =0.03)
535
84.3
0.839
0.077
Table 5: Effect of the CCR weight λ across four reward settings.
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Setting
Reward ↑
Prompt Alignment (DPG) ↑
Visual Clarity (Lap.) ↑
10−4
10−3
10−2
10−4
10−3
10−2
10−4
10−3
10−2
GenEval
0.938
0.953
0.952
79.8
82.7
83.3
208
108
331
PickScore
0.842
0.842
0.830
82.8
82.0
82.2
229
240
443
HPSv2.1
0.377
0.373
0.350
80.4
82.1
82.8
928
943
875
Multi-rew.
1.456
1.456
1.407
85.8
85.7
85.7
755
692
954
Appendix
Table 6: KL-coefficient sweep for NFT on Z-Image across four reward settings. We compare λKL∈{10−4,10−3,10−2} . Increasing KL regularization does not yield a consistent improvement in the reward–quality trade-off: stronger KL can improve some prompt-alignment or sharpness metrics in certain settings, but the trend is not stable across rewards or metrics.
Δcfg(xt,c,t)=vθpre(xt,c,t)−vθpre(xt,∅,t)
Appendix
Algorithm 1 Computation of the average projection coefficient
At the core of reinforcement learning is the idea of learning beyond the performance in the data. However, scaling such systems has proven notoriously tricky. In contrast, techniques from generative modeling have proven remarkably scalable and are simple to train. In this work, we combine these strengths, by deriving a direct relation between policy improvement and guidance of diffusion models. The resulting framework, CFGRL, is trained with the simplicity of supervised learning, yet can further improve on the policies in the data. On offline RL tasks, we observe a reliable trend -- increased guidance weighting leads to increased performance. Of particular importance, CFGRL can operate without explicitly learning a value function, allowing us to generalize simple supervised methods (e.g., goal-conditioned behavioral cloning) to further prioritize optimality, gaining performance for "free" across the board.
Diffusion and flow models achieve State-Of-The-Art (SOTA) generative performance, yet many practically important behaviors such as fine-grained prompt fidelity, compositional correctness, and text rendering are weakly specified by score or flow matching pretraining objectives. Reinforcement Learning (RL) fine-tuning with external, black-box rewards is a natural remedy, but diffusion RL is often brittle. Trajectory-based methods incur high memory cost and high-variance gradient estimates; forward-process approaches converge faster but can suffer from distribution drift, and hence reward hacking. In this work, we present Centered Reward Distillation (CRD), a diffusion RL framework derived from KL-regularized reward maximization built on forward-process-based fine-tuning. The key insight is that the intractable normalizing constant cancels under within-prompt centering, yielding a well-posed reward-matching objective. To enable reliable text-to-image fine-tuning, we introduce techniques that explicitly control distribution drift: (i) decoupling the sampler from the moving reference to prevent ratio-signal collapse, (ii) KL anchoring to a CFG-guided pretrained model to control long-run drift and align with the inference-time semantics of the pre-trained model, and (iii) reward-adaptive KL strength to accelerate early learning under large KL regularization while reducing late-stage exploitation of reward-model loopholes. Experiments on text-to-image post-training with GenEval and OCR rewards show that CRD achieves competitive SOTA reward optimization results with fast convergence and reduced reward hacking, as validated on unseen preference metrics.
Diffusion models generate samples by learning to reverse a fixed corruption process, and classifier-free guidance (CFG) is the standard mechanism for conditioning this process on a desired class or prompt. CFG can be applied at varying guidance strengths, and while higher strengths improve image quality and conditional alignment, too high a guidance strength can degrade image quality and diversity. Furthermore, CFG violates principled diffusion sampling dynamics, and existing explanations for why it works despite the violation disagree on the underlying theory or do not extend to deterministic samplers used in practice. We address both these issues. We first frame CFG sampling as a continuous-time optimal control problem, treating the sampling trajectory as a sequence of controls chosen to maximise the probability of the desired condition. Solving the resulting Hamilton--Jacobi--Bellman equation shows that CFG is recovered under specific path costs when using an unconstrained control set. We argue this lack of constraint is responsible for CFG's failure at high guidance strengths, since it permits the sampling path to move arbitrarily far from the current image estimate. To fix this, we propose curvature-aware CFG (CACFG), which constrains the control set to a hypersphere informed by the Gaussian regularisation used when training variational autoencoders. We show that the control inputs produced by CFG sampling routinely violate this bound, and that across diffusion models, datasets, and guidance schedules, CACFG achieves superior generative quality at mid-to-high guidance strengths with a less severe quality-diversity tradeoff than regular CFG.
Max Collins, Dasith de Silva Edirimuni, Jordan Vice +2
School of Physics, Maths and Computing The University of Western Australia Perth, WA 6009