GARDO: Reinforcing Diffusion Models without Reward Hacking

Haoran He, Yuxiao Ye, Jie Liu, Jiajun Liang, Zhiyong Wang, Ziyang Yuan, Xintao Wang, Hangyu Mao, Meng Wang, Pengfei Wan, Ling Pan

TL;DR

When you fine-tune an image generator using Reinforcement Learning (RL), it inevitably figures out how to cheat—producing weird, noisy images that trick the scoring model while looking terrible to humans. GARDO stops this "reward hacking" without putting the model in a creative straitjacket. By selectively penalizing only suspicious outputs, dynamically updating its baseline, and rewarding diverse ideas, it lets models learn fast, stay sharp, and discover genuinely new skills.

What Problem Does This Paper Address?

Pre-trained diffusion models are great at painting pretty pictures, yet they often struggle with precise human instructions—like spelling words or counting objects. Researchers use RL to fix this, steering the generator with a "reward model" that scores its outputs.

Unlike math or coding, however, there is no absolute, verifiable ground truth for "a good image." We rely on imperfect proxy rewards, like an Optical Character Recognition (OCR) tool to check spelling, or a neural network trained on human preferences. Optimize too hard against a proxy, and you get reward hacking: the generator discovers adversarial glitches—like extreme saturation or bizarre background noise—that max out the proxy score while tanking actual image quality and diversity.

Figure 2: Setting OCR as the proxy reward, vanilla RL methods like Flow-GRPO exploit the OCR reward at the cost of losing real image quality, leading to reward hacking. It generates unrealistic, noisy images with blurry backgrounds and visual artifacts. In contrast, our method maintains better image quality and diversity. Prompt:“A storefront with ‘GARDO’ written on it".

The standard fix is KL regularization—essentially tying an elastic leash between the learning model and the original, frozen base model so it can't wander too far. Unfortunately, applying this leash to every single image slows learning to a crawl and traps the model near its mediocre starting point, preventing it from discovering cool new capabilities.

Methods

Building on Group Relative Policy Optimization (GRPO, a popular RL algorithm that compares groups of generated images against each other), the authors propose GARDO (Gated and Adaptive Regularization with Diversity-aware Optimization). It rethinks regularization along three axes:

Figure 1: Overview of GARDO. GARDO introduces an uncertainty-driven, gated KL mechanism to control the proportion of regularization, avoiding unnecessary penalties. Our proposed diversity- aware advantage shaping effectively encourages exploration of novel states.
  • When to regularize (Gated KL): Instead of penalizing every update, GARDO only unleashes the KL penalty on roughly 10% of samples—specifically those with high uncertainty. To spot a cheated score cheaply, it compares the primary proxy reward's ranking within a batch against a small ensemble of lightweight, off-the-shelf "auxiliary" evaluators (Aesthetic and ImageReward). If the main proxy loves an image that the auxiliary models hate, a gate opens and applies the KL penalty. Otherwise, the model optimizes freely.
  • Where to regularize (Moving Reference Anchor): Tethering an improving model to a static, inferior starting point eventually chokes progress. GARDO periodically resets the reference anchor to a recent snapshot of the current model whenever the KL divergence crosses a threshold (or after a set number of steps), allowing continuous, safe improvement.
  • How to preserve diversity (Diversity-Aware Advantage Shaping): RL naturally suffers from "mode collapse," latching onto one safe way to answer a prompt. GARDO extracts semantic features from generated images using DINOv3 and measures how isolated each image is from its peers. It then multiplies the RL advantage score by this diversity distance—but only for images with positive advantages. This ensures the model gets bonus points for novel, high-quality variations, rather than getting rewarded for generating bizarre garbage just to be different.

Datasets

The authors evaluate GARDO without introducing new datasets, relying instead on established benchmarks from the Flow-GRPO setup:

  • Proxy Tasks (Training & Testing): GenEval (testing complex compositional prompts like object counting and spatial relations) and Text Render / OCR (measuring text accuracy in images). They also run a custom counting experiment trained on 1–9 objects and tested on 10–11 objects.
  • Unseen Metrics (Out-of-Distribution Evaluation): To verify the model isn't secretly ruining image quality to please the proxy, outputs are judged by held-out models: Aesthetic, PickScore, ImageReward, ClipScore, and HPSv3.

Key Insights and Ideas

  • Regularization isn't universally needed: You only need a safety leash when the proxy reward is lying to you. Leaving ~90% of samples unpenalized gives you the speed of unconstrained RL with the safety of regularized RL.
  • Drop the standard deviation in GRPO: Standard GRPO divides advantage scores by the group's reward standard deviation. When a batch of images looks similar, that standard deviation approaches zero—wildly amplifying tiny, meaningless noise in the rewards and triggering reward hacking. Simply removing this division noticeably stabilizes training on its own.
  • Exploration unlocks emergent skills: Because GARDO moves its reference anchor and encourages diversity, it isn't trapped by what the base model already knows, allowing it to find high-reward solutions in regions the original model almost never visited.
Figure 3: We train a diffusion model with 3-layer MLP on Gaussian mixtures (pre-trained distribution), with the goal to capture multimodal high-reward clusters as shown in the reward landscape. The vanilla RL method (DDPO [3]) with a large KL coefficient β is overly constrained and fails to increase rewards. Conversely, a small β incurs severe mode collapse. Our proposed diversity-aware optimization, when applied alone, successfully captures the multimodal modes, including the central cluster with the lowest probability density in the reference policy πref. Our full GARDO framework simultaneously achieves maximum reward and discovers all high-reward clusters.

Key Results

Tested primarily on Stable Diffusion 3.5-Medium (with additional checks on Flux.1-dev), GARDO hits the sweet spot between speed and quality:

  • 3x–4x Sample Efficiency: GARDO matches the rapid learning curves of unregularized GRPO, achieving a 0.95 GenEval score in 2,000 steps (compared to 0.81 for standard KL-regularized GRPO at the same budget) and 0.91 on OCR in just 600 steps.
  • Zero Hacking, Higher Diversity: On GenEval, unregularized GRPO's unseen quality metrics drop by 10.65% relative to the base model, and its diversity plunges from 21.84 to 15.6. GARDO boosts unseen metrics by +6.56% overall while increasing generation diversity to 24.95.
  • Emergent Counting: When trained on 1–9 objects and asked to generate 10 objects—a task where the base SD3.5-M model gets 0.01 accuracy—GARDO achieves 0.38 accuracy, beating standard unregularized GRPO (0.28) and heavily regularized GRPO (0.09).

Limitations and Future Work

GARDO's uncertainty gate relies on off-the-shelf auxiliary reward models to act as honest referees. As the authors note, these auxiliary models are also imperfect learned proxies; theoretically, an aggressive RL policy could eventually find blind spots that fool both the primary and auxiliary rewards simultaneously. Furthermore, whether this framework scales smoothly to the massive computational demands of video generation remains an open question for future work.

Summary updated

BibTeX
@inproceedings{he2026gardo,
  author = {Haoran He and Yuxiao Ye and Jie Liu and Jiajun Liang and Zhiyong Wang and Ziyang Yuan and Xintao Wang and Hangyu Mao and Meng Wang and Pengfei Wan and Ling Pan},
  title = {{GARDO: Reinforcing Diffusion Models without Reward Hacking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dmPzzDSb7m},
}
Figure