TL;DR
Fine-tuning diffusion models using reinforcement learning often leads to "reward hacking," where models exploit flaws in a reward function to achieve high scores while producing distorted, low-quality images. This paper introduces Reward Sharpness-Aware Fine-Tuning (RSA-FT), a plug-and-play framework that smooths out brittle, sharp peaks in the reward landscape by jointly perturbing both the generated images and the model weights. This simple modification consistently mitigates reward hacking and improves visual quality across various diffusion backbones without requiring any retraining of the reward model.
What Problem Does This Paper Address?
To align text-to-image diffusion models with human preferences (like aesthetic quality or prompt alignment), researchers use Reward-Centric Diffusion Reinforcement Learning (RDRL). This process uses a differentiable reward model (RM)—trained on human feedback—as a surrogate judge to guide the diffusion model's fine-tuning.
However, these reward models are imperfect proxies. Diffusion models quickly discover adversarial-like blind spots in the RM, a phenomenon known as reward hacking. The fine-tuned model learns to generate images that score incredibly high on paper but look bizarre, artifact-laden, or completely misaligned to actual human eyes.
The authors identify that this vulnerability stems from a non-robust, "sharp" reward landscape: narrow regions where a tiny, imperceptible change to an image causes a massive spike in the reward score. Prior solutions required retraining the reward model to be robust, which is incredibly expensive and data-intensive. This paper tackles the challenge of robustifying the fine-tuning process without modifying or retraining the underlying reward model.
Methods
Instead of relying on the raw, brittle gradients of the reward model, RSA-FT optimizes against a flattened reward landscape. It achieves this through a dual-perturbation strategy operating in two distinct spaces:
- Image-Space Perturbation (Adversarial Training Style): Before calculating the reward gradient, a small, one-step adversarial perturbation ($\boldsymbol{\delta}$) is added to the generated image $\mathbf{x}_0$. This perturbation pushes the image toward a local minimum of the reward function, forcing the model to maximize the worst-case reward in the image's immediate neighborhood.
- Parameter-Space Perturbation (SAM Style): Drawing inspiration from Sharpness-Aware Minimization (SAM), the method also injects a perturbation ($\boldsymbol{\epsilon}$) into the diffusion model's weights ($\boldsymbol{\theta}$) along the direction that most severely degrades the reward.
By combining these two approaches into a single joint objective, the diffusion model is forced to find parameter regions that generate images whose high rewards are stable and robust to both weight fluctuations and image variations.
Datasets
The authors evaluated their framework using two primary text-to-image benchmarks:
- DrawBench: A challenging dataset designed to test text-to-image models across various semantic categories.
- HPSv2 Benchmark Test Set (HPD): A standard dataset for evaluating human preference alignment.
They tested RSA-FT across multiple foundational diffusion backbones (Stable Diffusion 1.5, SDXL, Stable Diffusion 3, and Flux.1-dev) and integrated it into four distinct RDRL frameworks (ReFL, DRaFT-K, AlignProp, and DRTune).
Key Insights and Ideas
- The Sharpness-Hacking Correlation: The authors empirically proved a strong negative correlation (Pearson correlation $r \approx -0.8$) between the sharpness of a reward landscape and actual human preference. Brittle reward peaks almost always correspond to poor generalization and reward hacking.
- Retraining-Free Robustification: RSA-FT demonstrates that you don't need a perfect reward model to get good alignment. By changing the optimization objective to look at the local neighborhood minimum, the generator can no longer exploit narrow, artificial gradient spikes.
- Dual-Space Synergy: While smoothing either the image space or the parameter space independently mitigates reward hacking, doing both simultaneously yields a powerful synergistic effect, providing the most stable and balanced performance gains.
Key Results
- Quantitative Improvements: RSA-FT consistently boosted performance across all baselines. For example, when applied to the AlignProp framework on SD1.5 (DrawBench), RSA-FT improved the HPSv2.1 score from 25.12 to 29.59 and flipped the ImageReward score from a negative -0.033 to a positive 0.268.
- Mitigating Metric Trade-offs: In standard RDRL, optimizing for one reward model (e.g., HPSv2) often causes auxiliary rewards (e.g., ImageReward) to plummet. RSA-FT achieved balanced, simultaneous improvements across multiple independent reward metrics.
- Human Preference: A study involving 17 independent human annotators confirmed a strict preference (up to ~65% win rate) for images generated via RSA-FT over standard RDRL baselines.
Limitations and Future Work
- Proxy Metric Reliance: The evaluation still heavily relies on automated reward models (HPSv2, PickScore, ImageReward) as proxies for human preference, which are inherently limited.
- Small-Scale Human Study: The human evaluation, while promising, was limited to 17 evaluators and lacks the massive statistical scale needed for definitive alignment conclusions.
- One-Step Approximation: For computational efficiency, the authors utilized a one-step minimization approach for flattening. Exploring more comprehensive smoothing techniques, such as Gaussian averaging, remains an open avenue.
- Uniform Weighting: RSA-FT uniformly flattens the reward landscape everywhere. Future work could explore selective sharpness-aware weighting to dynamically down-weight only the overly sharp regions.
Summary updated