Abstract
Fine-tuning text-to-image diffusion models with Reinforcement Learning (RL) often leads to "reward hacking," where models exploit flaws in proxy reward functions to achieve high scores while producing distorted or repetitive images. We introduce GARDO (Gated and Adaptive Regularization with Diversity-aware Optimization), a novel framework that uses gated, adaptive regularization and diversity-aware optimization. GARDO allows models to train as fast as unconstrained RL while maintaining high visual quality and creative variety, effectively overcoming the limitations of static KL-regularization.
The Challenge of Reward Hacking
When fine-tuning diffusion models (like Stable Diffusion) to follow human preferences, researchers typically use a "proxy reward"—a separate AI model that scores how well an image matches a prompt or its aesthetic quality. However, these proxy models are imperfect. If an RL agent is given a flawed reward function, it often finds "adversarial" solutions. For example, in text-rendering tasks, a model might generate clear text but place it on a noisy, blurry background because the reward model fails to penalize background degradation.
The standard solution is KL-regularization, which forces the model to stay close to its original version. However, this creates a "leash" problem: a tight leash (high regularization) stalls learning, while a loose leash (low regularization) permits reward hacking. Furthermore, a static anchor prevents the model from discovering superior behaviors not present in the original distribution.
The GARDO Framework
GARDO introduces three mechanisms to balance training speed, image quality, and diversity:
- Gated KL Mechanism: Instead of penalizing every sample, GARDO only applies the KL penalty when the reward signal is "untrustworthy." This is measured by checking the disagreement between an ensemble of reward models. If models disagree, the sample is likely out-of-distribution, and the penalty keeps the agent in a safe zone.
- Adaptive Regularization: Rather than tethering the agent to a static starting model, GARDO periodically updates the reference model to match the current policy. This ensures the regularization target remains relevant as the model improves.
- Diversity-aware Advantage Shaping: To prevent "mode collapse," GARDO calculates a diversity score for each image using DINOv3 feature embeddings. It multiplies the RL advantage by this score for high-quality samples, rewarding the model for being both accurate and unique.
Experimental Results
GARDO was evaluated across several challenging tasks, including GenEval (compositional prompts) and OCR (text rendering), using base models like SD3.5-Medium and Flux.1-dev.
- Efficiency and Quality: On OCR tasks, GARDO reached peak reward scores in just 600 steps—matching the speed of unregularized RL. Crucially, while unregularized RL saw its aesthetic scores plummet due to hacking, GARDO maintained high visual fidelity.
- Diversity: In GenEval benchmarks, GARDO increased the generation diversity score from 19.98 (standard RL) to 24.95, effectively solving the mode collapse issue.
- Emerging Capabilities: GARDO demonstrated the ability to solve complex "counting" tasks (e.g., generating 10-11 objects) that the base models initially failed to perform.
Key Insights and Future Work
A significant finding is that regularization is not a universal requirement; penalizing only the most uncertain samples (~10%) allows for maximum training speed without quality loss. Additionally, multiplicative diversity bonuses proved more stable than additive ones, preventing the generation of "diverse garbage."
Future work will focus on reducing the dependency on auxiliary reward models for uncertainty estimation and scaling these techniques to resource-intensive video generative models, where training efficiency is even more critical.
Summary updated