Diffusion Fine-Tuning via Reparameterized Policy Gradient of the Soft Q-Function

Hyeongyu Kang, Jaewoo Lee, Woocheol Shin, Kiyoung Om, Jinkyoo Park

TL;DR

Soft Q-based Diffusion Finetuning (SQDF) is a novel reinforcement learning framework designed to align diffusion models with specific rewards (like aesthetic quality) without falling into the trap of "reward over-optimization." By using a training-free, differentiable approximation of the soft Q-function and a consistency model for better image estimation, SQDF achieves high rewards while preserving the naturalness and diversity of the original model.

The Challenge: Reward Over-Optimization

Diffusion models are the current gold standard for generating high-quality images and videos. However, "out of the box" models often need to be fine-tuned to meet specific goals, such as following a prompt more accurately or producing more "aesthetic" results.

The primary challenge is that current fine-tuning methods often suffer from reward over-optimization. When pushed to maximize a reward score (like an aesthetic predictor), the model often finds "shortcuts"—generating weird, abstract textures that the reward model loves but humans find ugly or repetitive. This leads to:

  • Semantic collapse: The image no longer matches the original prompt.
  • Diversity collapse: The model generates the same few "high-scoring" patterns repeatedly.

Existing solutions either require training unstable value functions or rely on high-variance gradient estimators that make training slow and unreliable.

Introducing SQDF

The authors propose SQDF, which treats the diffusion denoising process as a Markov Decision Process (MDP) and applies a KL-regularized Reinforcement Learning (RL) approach.

SQDF Pipeline Overview

The framework relies on three core innovations:

  1. Training-Free Soft Q-Function: Instead of the notoriously difficult task of training a separate Q-value network, SQDF approximates the soft Q-function using a single-step estimation of the final clean image ($x_0$). This makes the reward signal differentiable and easy to use for updates without extra training overhead.
  2. Consistency Model Integration: Standard diffusion math (like Tweedie’s formula) is notoriously bad at predicting the final image from very noisy early states. SQDF swaps this out for a Consistency Model, which is specifically designed to predict the final image in one step, providing a much more accurate and stable training signal.
  3. Discounted MDP and Replay Buffer: The authors introduce a discount factor ($\gamma$) to acknowledge that early denoising steps have less influence on the final image than later ones. They also use an off-policy replay buffer, allowing the model to learn from a diverse set of previously generated samples. This helps maintain mode coverage and prevents the model from "forgetting" how to generate variety.

Key Insights

  • Bypassing the Value Function: You don't actually need to train a Q-network if you have a reliable way to estimate the final state. By using a Consistency Model as a proxy for the final image, the reward gradient can be backpropagated directly into the diffusion model.
  • The Importance of Credit Assignment: By introducing the discount factor $\gamma$, the authors show that "punishing" or "rewarding" the model too heavily during the initial, high-noise denoising steps is counterproductive. Downweighting these steps leads to more stable and natural-looking results.
  • Off-Policy Learning for Diversity: Most diffusion RL methods are on-policy (learning only from the very latest images). By using a replay buffer, SQDF can revisit "rare" high-reward samples, helping the model explore the data distribution more effectively and maintain diversity.

Experimental Results

The researchers evaluated SQDF across challenging tasks, including text-to-image alignment (fine-tuning Stable Diffusion v1.5 and SDXL) using the LAION aesthetic predictor and HPSv2 as target rewards.

SQDF consistently outperformed state-of-the-art baselines like DDPO, DRaFT, and ReFL:

  • Pareto Superiority: In trade-off curves, SQDF achieved higher rewards at the same levels of diversity (LPIPS) and prompt alignment compared to other methods.
  • Online Black-Box Optimization: SQDF reached an aesthetic score of 7.87 while maintaining a diversity score of 0.51. In contrast, the baseline SEIKO-UCB achieved a lower reward (7.49) and much lower diversity (0.40).
Qualitative Comparison of Fine-Tuning Methods

Qualitative Quality: As seen in the visual comparisons, while other methods eventually devolved into abstract patterns or lost prompt alignment to satisfy the aesthetic reward, SQDF continued to produce recognizable, high-quality images of the intended subjects (e.g., frogs, cats, and bees).

Limitations and Future Work

While powerful, SQDF has a few areas for improvement:

  • Computational Overhead: Fine-tuning is slower than some direct backpropagation methods, taking between 62 and 401 seconds per update step depending on the reward model used.
  • Proxy Dependence: The method's success is tied to the accuracy of the Consistency Model and the reward model. If the reward model itself is flawed, the "alignment" will be to a flawed objective.

Future directions include exploring more advanced distillation models for even better $x_0$ estimation and developing more sophisticated strategies for managing the replay buffer to further enhance sample efficiency.

Summary updated

BibTeX
@inproceedings{kang2026diffusion,
  author = {Hyeongyu Kang and Jaewoo Lee and Woocheol Shin and Kiyoung Om and Jinkyoo Park},
  title = {{Diffusion Fine-Tuning via Reparameterized Policy Gradient of the Soft Q-Function}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=8zoxC9e23q},
}
Figure