Introduction
Text-to-Image (T2I) diffusion models, such as Stable Diffusion, have revolutionized creative workflows. To better align these models with human preferences, researchers often employ "reward models" for fine-tuning. However, a persistent challenge remains: reward hacking. This phenomenon occurs when a model learns to maximize reward scores by generating a narrow set of high-scoring but repetitive images, leading to a significant loss in the diversity of the original base model.
The Challenge: Reward Hacking and Mode Collapse
Standard reward maximization techniques often result in mode collapse, where the model's output distribution narrows down to a few "safe" high-reward peaks. While KL-divergence regularization is a common countermeasure, it is computationally expensive to tune and often acts as a blunt instrument, penalizing desirable stylistic shifts alongside diversity loss.
Methods: Annealed Importance Guidance (AIG)
To address these issues, researchers from the University of Pennsylvania and NVIDIA introduced Annealed Importance Guidance (AIG). AIG is an inference-time technique that leverages the asymmetric nature of the diffusion process.
The core insight is that early timesteps in the diffusion process (high noise) determine the global structure and "mode" of the image, while later timesteps (low noise) refine details. AIG uses a scheduling function $\gamma(t)$ to blend the guidance:
- Early Stages: The base model guides the generation, preserving the rich diversity of the original distribution.
- Later Stages: The reward-tuned model takes over, ensuring the final output aligns with desired preferences and high-quality details.
Additionally, the authors proposed Spectral Covariance Distance (SCD), a new metric that measures the "spread" of generated data independently of its exact position in feature space. This allows for a more accurate assessment of diversity that doesn't unfairly penalize stylistic improvements.
Key Results
The effectiveness of AIG was evaluated across Stable Diffusion v1.4 and SDXL using human preference (PickScore) and aesthetic (HPSv2) reward models.
Pareto Optimality
AIG consistently achieves a superior balance between reward and diversity. On reward-diversity plots, AIG forms the Pareto front, meaning it provides the highest possible reward for any given level of diversity compared to alternative methods like LoRA scaling or standard KL-divergence.
User Preference and Robustness
In a user study involving 36 participants and over 1,500 votes, AIG emerged as the clear favorite. It achieved an ~80% win rate in diversity and a ~50% win rate in quality over the standard Direct Reward Fine-Tuning (DRaFT) baseline. Crucially, AIG is applied during sampling, allowing for flexible control over the reward-diversity tradeoff without the need for costly retraining.
Conclusion
Annealed Importance Guidance offers a robust, inference-time solution to the fundamental tension between quality and variety in generative models. By intelligently scheduling the influence of base and fine-tuned models, AIG prevents reward hacking and ensures that text-to-image models remain both high-performing and creatively diverse.
Summary updated