TL;DR
This paper introduces a unified, plug-and-play framework to align text-to-image diffusion and flow matching models with human preferences without expensive full-model fine-tuning. By treating alignment as a reward-weighted sampling problem, the authors deliver a finetuning-free approach for diffusion models that cuts computational costs by over 60% and a completely training-free approach for flow matching models.
What Problem Does This Paper Address?
To generate images that truly align with human preferences (like high aesthetic quality or strict prompt adherence), text-to-image models undergo an "alignment" phase. Standard methods like Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO) achieve this by fine-tuning the entire generative model. However, this is computationally expensive, requires careful training strategies, and struggles to generalize when new reward functions are introduced.
Alternatively, "plug-and-play" guidance methods modify the model's outputs during inference without touching its internal parameters. While appealing, standard diffusion guidance methods suffer from an adversarial nature flaw: because they rely on the gradient of a reward function over a high-dimensional pixel space, increasing the guidance strength inadvertently injects ugly, noisy artifacts into the generated images.
Methods
The authors reframe alignment as a unified sampling problem from a reward-weighted distribution. Mathematically, they prove that the target score function (for diffusion) or velocity field (for flow matching) can be cleanly decomposed into the pre-trained model's original output plus an additional reward-driven guidance term (the conditional expectation of the reward).
- For Diffusion Models (Finetuning-Free): To bypass the adversarial artifact issue, the authors avoid taking direct gradients of the reward function during inference. Instead, they train a lightweight, 72 MB "guidance network" offline to directly estimate the conditional expectation of the reward. They couple this with a consistency regularization strategy that stabilizes and smooths the guidance landscape, making it highly effective even for fast, one-step image generation.
- For Flow Matching Models (Training-Free): The authors derive the exact velocity guidance mathematical form for flow matching. Crucially, they discover that flow matching guidance naturally lacks a gradient operator, meaning it is structurally immune to the adversarial artifact flaw. By using importance sampling, they convert the guidance term into an expectation over the marginal data distribution, making the entire alignment process completely training-free.
Datasets
- Pick-a-Pic V1: An open dataset of human preferences for text-to-image generation. The authors used 583k image preference pairs from this dataset to train their lightweight diffusion guidance network offline.
- Pick-a-Pic V2: Contains over 800k preference pairs, used primarily by the fine-tuning baselines (like Diffusion-DPO) for a fair benchmark comparison.
- Evaluation: The models were evaluated using 500 unique validation prompts from the Pick-a-Pic validation split.
Key Insights and Ideas
- The Geometry of Guidance Matters: Directly backpropagating a reward function's gradient through high-dimensional pixel space acts like an adversarial attack on the image. Estimating the expectation directly via a separate network smooths out these destructive gradients.
- Flow Matching's Hidden Advantage: Because flow matching operates on velocities rather than scores (gradients of log-probabilities), its guidance mechanism is inherently cleaner and doesn't require a separate neural network to stay stable.
- Defying the Step-Count Rule: Typically, more denoising steps equal better images. However, the authors found that applying their regularized guidance network to a one-step generation pipeline yielded higher human preference scores than standard two- or three-step unguided generation.
Key Results
The proposed framework achieves performance comparable to or better than state-of-the-art fine-tuning methods while drastically reducing compute requirements.
- Diffusion Alignment (SDXL): The method achieved a PickScore of 23.08, outperforming Diffusion-DPO (22.64) and matching SPO (23.06). Remarkably, it required only 92 GPU hours of training for its lightweight network, compared to 4,800 GPU hours for Diffusion-DPO.
- Flow Matching Alignment (SD3.5 Large Turbo): Without any training overhead, the training-free framework boosted the baseline model's PickScore from 22.30 to 23.14 and its HPSV2 score from 30.29 to 32.31.
Limitations and Future Work
- While the diffusion framework eliminates full-model fine-tuning, it still requires an offline training phase for the lightweight 72 MB guidance network.
- The training-free flow matching framework relies on importance sampling. In scenarios where the pre-trained model's distribution diverges drastically from the human preference distribution, importance sampling can suffer from high variance, potentially degrading efficiency.
- Future work could explore completely training-free, gradient-free alternatives for diffusion models to remove the offline training step entirely.
Summary updated