Diffusion models like Stable Diffusion generate photorealistic images, but they don’t always match what humans actually want. The alignment problem—getting outputs to reflect preferences like aesthetic quality or hard-to-prompt intent—has largely been solved for language models through reinforcement learning from human feedback. ChatGPT’s conversational ability is a direct result of RLHF. Image models haven’t had the same treatment, until now.
Black et al. introduced Denoising Diffusion Policy Optimization, or DDPO, as a way to apply RL directly to diffusion models. The key insight is treating the entire denoising process as a multistep Markov Decision Process rather than a single shot. Each denoising step becomes a decision point, with the reward arriving only at the end. This reframing lets the policy be an isotropic Gaussian, which makes the exact likelihood of each step trivial to compute. The previous approach, reward-weighted regression, relied on two layers of approximation—a maximum likelihood objective that isn’t exact—and those errors compound quickly.
The TRL library, which has become a go-to for RLHF workflows on language models, now includes a DDPOTrainer. That’s significant because it brings diffusion model alignment into the same tooling ecosystem that fine-tunes LLMs. Practitioners can now run the familiar three-step RLHF pipeline—supervised fine-tuning, reward model training, then RL fine-tuning—on Stable Diffusion. The reward model captures human preference data, and DDPO uses PPO-style policy gradients to optimize against it.
What’s notable here is how closely DDPO mirrors PPO for language models, with the trajectory collection portion being the main customization. For teams already running RLHF on LLMs, the learning curve should be modest. The real question is whether the gains in aesthetic alignment justify the added complexity and compute compared to simply prompting better. Early evidence suggests it does for specific, well-defined reward signals, but general-purpose aesthetic improvement remains harder to pin down.