École Polytechnique's CRD Fixes the Reward Hacking Flaw Poisoning Diffusion RL
A new diffusion RL recipe cancels an intractable normalizer through within-prompt centering, cutting reward hacking while keeping forward-process training fast.
ProTakeaways
- New diffusion RL method uses within-prompt centering to cancel an intractable normalizer term.
- CRD reframes diffusion RL as regression between centered external rewards and centered ELBO-based implicit rewards.
- Recovers reward distillation, GVPO, and InfoNCA as special cases of one framework.
- Reaches 0.93 on GenEval and 0.92 OCR accuracy on SD3.5-Medium fine-tuning.
- Three stabilizers: decoupled sampler, CFG-anchored KL, and reward-adaptive KL strength.
- Full paper on arXiv; built on the DiffusionNFT codebase with LoRA.
Fine-tuning text-to-image diffusion models with reinforcement learning has become the default way to fix behaviors that pretraining leaves fuzzy: prompt fidelity, compositional correctness, and legible text inside images. But the recipes are fragile. A new paper from researchers at École Polytechnique and Inria proposes Centered Reward Distillation (CRD), a framework that reframes diffusion RL as a well-posed regression problem by mathematically canceling the term that has been quietly poisoning previous forward-process methods.
Two camps, both compromised
Current diffusion RL splits into two families, and each has a nasty tradeoff. GRPO-style methods (like Flow-GRPO and follow-ups) view denoising as an explicit Markov Decision Process, where each denoising step is treated as an action and the full SDE sampling trajectory plays the role of an RL rollout. That framing gives clean credit assignment, but it typically requires storing the full SDE trajectory and suffers from high-variance training signals, imposing high memory and compute overhead that slows convergence.
The other camp is faster. Forward-process methods decouple sampling from training states: clean samples are first generated from the current model, noisy latents are then obtained via the forward diffusion process, and training proceeds on these synthetically noised states. The catch: a fixed reference model becomes a poor surrogate as training progresses, and if a moving reference tracks too aggressively, it will enable iterative drift. That drift is exactly what reward hackers exploit.
The trick: cancel what you cannot compute
CRD starts from the standard KL-regularized reward maximization objective, where the optimal fine-tuned model is a reward-tilted version of the reference. Rearranging gives an expression that says: the reward equals a scaled log-density ratio plus a prompt-dependent normalizer Z(c). Because this normalizer is intractable, directly regressing model likelihood ratios toward absolute rewards is ill-posed.
The key observation is disarmingly simple. For a group of K samples drawn from the same prompt, that unknown normalizer is identical across all of them. Subtract a weighted group mean and it disappears. The centered matching problem is well-posed regardless of the unknown normalizer, and directly motivates the objective: train the model so that its implicit reward is consistent with the external rewards.
The implicit reward is approximated with a diffusion Evidence Lower Bound (ELBO) surrogate, essentially a squared-error difference between the current model's velocity prediction and the reference model's prediction on noised versions of generated samples. The loss then boils down to matching centered external rewards to centered implicit model rewards:
# For each prompt group of K samples:
# 1. Compute raw rewards r_i and normalize
# 2. Compute implicit rewards R_i via ELBO diff between current and old model
# 3. Softmax-weight with temperature tau (tau -> inf = uniform mean)
# 4. Subtract weighted group means from both
# 5. Minimize MSE between centered r and centered R
loss = ((r_i - r_mean) - (R_i - R_mean)) ** 2
Elegantly, this framework recovers prior reward distillation methods and GVPO-style objectives as special cases and admits a ratio-based variant connected to InfoNCA under appropriate parameterization. Two-sample reward distillation pops out when K=2 and temperature approaches zero; GVPO appears when temperature goes to infinity and weights become uniform.
Three anti-drift patches
The centering identity is the math. Making it actually work on Stable Diffusion 3.5-Medium required three practical fixes:
- Decoupled sampling. The paper uses a separate EMA-tracked sampler model, distinct from the moving reference used in the log-ratio. If the reference drifts too close to the current model, the log-ratio signal collapses toward zero and training destabilizes.
- CFG-anchored KL penalty. A KL term anchors the model to the pretrained network, but crucially to its classifier-free-guided version. Anchoring too strongly to a weak non-CFG reference can introduce a training mismatch: the KL term may dominate and pull the model toward low-quality regions of the pretrained conditional model, meanwhile counteracting reward optimization.
- Reward-adaptive KL strength. The anchor is weaker on low-reward samples (allowing bigger updates) and stronger on high-reward ones (preventing late-stage exploitation of reward-model loopholes).
Numbers on GenEval and OCR
All experiments fine-tune SD3.5-Medium with LoRA adapters at r=32, alpha=64, generating 512x512 images at group size K=24, running on up to four H100s and finishing in under 36 hours. The two reward signals tested are both non-differentiable: GenEval for compositional correctness (counting, positioning, attribute binding) and an OCR reward for legible visual text rendering.
Against SD3.5-M's baseline GenEval score of 0.63, CRD reaches 0.93. Flow-GRPO edges it out at 0.95, but CRD is the only method that improves Aesthetics over the base model (5.44 vs. 5.39) while also raising human preference scores like PickScore and HPSv2.1. On OCR, CRD hits 0.92 accuracy matching Flow-GRPO with KL, while competitors DiffusionNFT and AWM-without-CFG rack up strong OCR scores but tank ImageReward into negative territory (-0.81 and -0.64), meaning they satisfied the reward metric by producing plain text on flat backgrounds while losing all scene coherence.
What breaks, what doesn't
The fast-decay ablation is the clearest illustration of what CRD is actually preventing. Using a fast decay yields faster convergence, but it also causes highly unstable KL divergence with the pretrained model. This instability and large KL value usually correspond to severe reward hacking - generations collapse into text on featureless backgrounds that ace the OCR reward while destroying the image.
CRD is largely insensitive to the softmax temperature (the authors use uniform weighting throughout), and even a group size of K=2 gives meaningful learning, though K=24 hits near-perfect OCR by end of training. The framework still inherits some limits from its forward-process roots: it relies on the pretrained model's coverage. If the base model rarely produces trajectories showing a desired behavior, the reward signal has little to bootstrap from, and continued self-training can further narrow diversity.
Why this matters if you fine-tune diffusion models
CRD is not a wholesale replacement for Flow-GRPO - the trajectory-based method still wins on raw GenEval by two points. But it addresses the practical failure mode that has haunted forward-process RL: the moment your reward signal has any exploitable weakness, moving-reference methods find it. CRD's within-prompt centering plus CFG-anchored KL gives a principled way to push hard on rewards without the model collapsing into pathological shortcuts. The implementation sits on top of the DiffusionNFT codebase, uses LoRA adapters, and fits comfortably in a single-node H100 setup - no rewrite of your existing diffusion RL stack required.