Introduction
While diffusion models like Stable Diffusion and Flux produce stunning images, "steering" them to meet specific user intents—such as aesthetic appeal or human preference—remains a patchwork of heuristics. Researchers currently oscillate between inference-time guidance, which can degrade image quality, and training-time adaptation like LoRA, which requires "white-box" access to the model's internal layers.
The field has lacked a unified mathematical language to describe these different control mechanisms. Furthermore, there is a persistent trade-off: the more you steer a model toward a reward, the further you drift from the pretrained model’s stability, often resulting in distorted or "deep-fried" images.
To bridge this gap, researchers introduce Diffusion Controller (DiffCon), a unified control-theoretic framework that treats the denoising process as a stochastic control problem. By deriving principled reinforcement learning algorithms and a lightweight "gray-box" side-network, DiffCon achieves superior preference alignment and image quality compared to standard methods, even without accessing the model's internal weights.
A Control-Theoretic Framework
DiffCon casts the reverse diffusion process as a Linearly-Solvable Markov Decision Process (LS-MDP).
Instead of treating "actions" as the next pixel values, the framework views control as reweighting the transition kernels of the pretrained model. This mathematical formulation allows the system to balance a terminal reward (the final image quality) against an $f$-divergence cost (the penalty for straying too far from the original model's distribution).
From this theoretical foundation, the authors derive two practical Reinforcement Learning Fine-Tuning (RLFT) methods:
- PPO for DiffCon: A policy-gradient approach utilizing a "soft advantage" function to update the model.
- Reward-Weighted Loss (RWL): A regression-based approach that uses exponential or polynomial weighting functions to prioritize high-reward trajectories.
The Power of Gray-Box Parameterization
Perhaps the most novel practical contribution of DiffCon is its side-network architecture. Instead of modifying the "backbone" model directly (a white-box approach like LoRA), the authors attach a lightweight side-network.
Crucially, this network is conditioned on the implied mean ($\mu_0$) of the denoising step, rather than just the noisy image $x_t$. This allows the controller to "see" what the backbone is attempting to generate before it adds its correction. The underlying math shows that the "perfect" steered score naturally decomposes into the pretrained score plus a control correction. This justifies why side-networks work so well—they are literally computing this exact correction term.
Experimental Validation
The researchers evaluated DiffCon using Stable Diffusion v1.4 as the base model. They utilized the Human Preference Dataset (HPD) v2 for Supervised Fine-Tuning (SFT) and the HPS-v2 reward model to provide feedback during RL training. Performance was benchmarked using PickScore, CLIP, and CLIP-Aesthetics to ensure that steering for preference didn't destroy general image-text alignment or basic visual appeal.
Key Results
- Outperforming LoRA: In both SFT and RWL settings, the gray-box DiffCon achieved higher HPS-v2 win rates than LoRA while using fewer parameters ($1.2 \times 10^7$ vs $1.7 \times 10^7$). The authors found that a gray-box model can outperform a white-box model if given the right information (specifically the intermediate denoising outputs).
- High Win Rates: When using PPO, the white-box versions of DiffCon reached win rates of over 93% against the pretrained model, significantly outperforming standard "naive" side-networks.
- Improved Efficiency: DiffCon demonstrated a superior quality-efficiency trade-off, maintaining high image aesthetics even when pushed for high preference scores.
Limitations and Future Directions
While DiffCon successfully unifies training-time fine-tuning and inference-time guidance under one mathematical umbrella, the current experiments focused primarily on text-to-image alignment. The authors suggest extending this control-theoretic view to other domains, such as personalization (fine-tuning for specific subjects), safety alignment (steering away from harmful content), and transfer learning. Additionally, like most RL-based diffusion methods, the online sampling required for PPO remains computationally expensive, presenting an area for future optimization.
Summary updated