TL;DR
Diffusion LAIR moves beyond binary winner-loser pairs for aligning text-to-image models, utilizing listwise candidate groups and continuous reward scores instead. By optimizing an advantage-weighted implicit reward with a quadratic penalty, it achieves superior alignment and compositional control on Stable Diffusion 1.5 and XL while remaining highly computationally efficient.
What Problem Does This Paper Address?
To ensure text-to-image diffusion models generate high-quality, aesthetically pleasing, and prompt-faithful images, researchers use post-training alignment. While online reinforcement learning (RLHF) works well, it is computationally expensive and difficult to parallelize because it couples image generation, reward evaluation, and policy updates in real time.
Offline preference optimization (like Diffusion-DPO) solves this by learning from pre-collected datasets. However, existing offline methods reduce this data to binary pairwise comparisons (i.e., "Image A is better than Image B"). This pairwise reduction throws away two crucial pieces of information:
- Listwise Context: Datasets often contain multiple candidate images for a single prompt, not just two.
- Cardinal Reward Gaps: A simple binary label ignores how much better one image is compared to another.
Methods
The authors introduce Diffusion LAIR (Listwise Advantage-weighted Implicit Reward) to handle listwise, reward-aware preference optimization directly.
Instead of breaking a group of images into isolated pairs, LAIR processes the entire candidate list for a prompt simultaneously through a two-step approach:
- Score & Center: It takes continuous reward scores for all candidate images from an offline reward model, normalizes them using a softmax function, and subtracts a uniform baseline. This creates zero-sum centered advantage weights ($w_i$). Images performing above the group average get positive weights (promoted), while below-average images get negative weights (suppressed).
- Implicit Reward Regression with Quadratic Regularization: LAIR optimizes the model's "implicit reward"—defined as the denoising-loss improvement of the current model over a fixed reference model. Crucially, it adds a quadratic penalty to prevent the implicit reward from exploding.
This mathematical formulation yields a clean, bounded closed-form optimum: $s_i^* = \frac{N_c}{2\lambda} w_i$. This means every image receives a stable, finite target directly proportional to its relative advantage within the group, explicitly controlled by the regularization strength ($\lambda$).
Datasets
- Training: The model is trained on the Pick-a-Pic v2 dataset. Instead of treating the data as independent pairs, the authors aggregate unique prompts to form lists of candidate images (up to a maximum list size $N$). All images are scored offline using PickScore.
- Evaluation: To test general human preference alignment and specific capabilities, the authors evaluate on HPD v2, Parti-prompts, GenEval (for compositional text-to-image generation), and InstructPix2Pix (for instruction-based image editing).
Key Insights and Ideas
- Zero-Sum Redistribution: Because the advantage weights sum to zero ($\sum w_i = 0$), the objective naturally redistributes implicit reward within the candidate group. Alignment is fundamentally a relative problem; the goal isn't to make every single output better, but to shift probability mass toward the highest-quality candidates.
- Bounded Targets Prevent Overfitting: In standard pairwise DPO, the logistic loss can continuously push rewards down for losing samples, even in noisy comparisons. LAIR’s quadratic regularization enforces finite targets, making the optimization much more stable and robust against reward hacking.
- The Value of Cardinal Gaps: Through ablation studies, the authors show that keeping the continuous reward magnitudes (cardinal information) consistently outperforms simply sorting the images and assigning equally spaced ranks (rank-only ordinal information).
Key Results
- State-of-the-Art Alignment: Diffusion LAIR consistently outperforms strong baselines like Diffusion-DPO, DSPO, and InPO across independent reward metrics (such as ImageReward and HPS v2) on both SD1.5 and SDXL benchmarks.
- Compositional Mastery: On the rigorous GenEval benchmark, LAIR-SD1.5 achieved an overall score of 51.44, significantly outperforming Diffusion-DPO (43.28) and SPO (44.04). It showed massive improvements in satisfying complex constraints like object positioning, color attribution, and counting.
- High Efficiency: LAIR avoids expensive online trajectory sampling. Fine-tuning takes only ~24 GPU hours for SD1.5 and ~140 GPU hours for SDXL on A100s, making it up to 5 times more efficient than some online RL counterparts.
Limitations and Future Work
- Reward Model Dependency: LAIR's performance is inherently bounded by the quality of the offline reward model used to score the candidate lists. If the reward model contains biases or struggles with specific concepts, the fine-tuned diffusion model will inherit those flaws.
- Idealized Theoretical Assumptions: The mathematical proof for the surrogate KL bound relies on standard but idealized assumptions, such as approximating the log-ratio via the Evidence Lower Bound (ELBO) and assuming a full-support extension of the implicit reward.
- Future Directions: Promising next steps include scaling LAIR to handle even larger candidate list sizes and integrating multi-modal reward models that can provide fine-grained, attribute-specific feedback.
Summary updated