Preserving Pretrained CFG Structure in RL for Diffusion Models with Conditional Contrast Regularization
Organizations: Huazhong University of Science and Technology · Ant Group · Central China Normal University
Abstract
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
| 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 | |
| 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 | |
| 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 |
| Setting | Method | Lap. | DPG | MUSIQ | Reward | |
|---|---|---|---|---|---|---|
| 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 |
| Setting | Method | Lap. | DPG | Reward | |
|---|---|---|---|---|---|
| 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 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Reward | Prompt Alignment (DPG) | Visual Clarity (Lap.) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 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 |
RL for Diffusion Models
Reinforcement learning for diffusion models adapts denoising and sampling to rewards, preferences, and task outcomes.
See all 196 papers