Scalable Ranked Preference Optimization for Text-to-Image Generation

Shyamgopal Karthik, Huseyin Coskun, Zeynep Akata, Sergey Tulyakov, Jian Ren, Anil Kag · Submission to ICLR 2025 · Rejected

TL;DR

Direct Preference Optimization (DPO) has become the standard method for aligning text-to-image models, but it relies on expensive, quickly outdated human-annotated image pairs. This paper introduces Syn-Pic, a fully synthetic dataset scored by an ensemble of off-the-shelf reward models for less than $200 (down from ~$50K for human labels), and RankDPO, a learning-to-rank loss formulation that optimizes multi-image ranked preferences instead of simple pairs. Across SDXL and SD3-Medium, RankDPO significantly boosts prompt adherence and visual quality using $3\times$ to $8\times$ fewer samples than existing preference baselines.

What Problem Does This Paper Address?

Text-to-image (T2I) diffusion and flow-matching models struggle with compositional semantics—such as attribute binding ("a red cube next to a blue sphere"), text rendering, and counting. While Reinforcement Learning from Human Feedback (RLHF) and DPO have successfully addressed similar problems in LLMs, applying them to image generation faces two major bottlenecks:

  1. High annotation cost & model obsolescence: Curating datasets like Pick-a-Picv2 requires collecting millions of human pairwise votes, costing upwards of $50,000 for low-resolution ($512^2$) images. As generative models rapidly transition to higher native resolutions ($1024^2$), static human datasets quickly become obsolete.
  2. Suboptimal pairwise supervision: Most DPO formulations compare isolated pairs (winner vs. loser). This discards relative ranking information across multiple candidate generations for the same prompt and treats all preference margins equally.

Methods

The authors tackle these challenges with a two-part framework:

[Prompt] ──> Generate images across 4 T2I models (SDXL, SD3, PixArt-Σ, Cascade)
              │
              ▼
         Score with 5 Reward Models (HPSv2.1, MPS, PickScore, VQAScore, ImageReward)
              │
              ▼
         Derive Target Ranking & Reward Probabilities (Syn-Pic)
              │
              ▼
         Optimize Diffusion Model with RankDPO (DCG-weighted pairwise loss)

1. Synthetically Labeled Preference Dataset (Syn-Pic)

Instead of recruiting human raters, the authors generate images for 58K prompts (reused from Pick-a-Picv2) across four modern open-source models: SDXL, SD3-Medium, PixArt-$\Sigma$, and Stable Cascade.

To eliminate human labeling costs and prevent single-model "reward hacking," each image is evaluated against an ensemble of five vision-language reward models: HPSv2.1, MPS, PickScore, VQAScore, and ImageReward. By computing pairwise win rates across all rewards, each image receives an aggregate score $\phi(x)$, yielding a fully ranked list of candidate images per prompt.

2. Ranking-based Preference Optimization (RankDPO)

Standard Diffusion-DPO optimizes pairwise loss between a single winning image $x^w$ and losing image $x^l$. Drawing inspiration from Learning to Rank (specifically LambdaLoss), RankDPO expands this to a full ranked list $\{x^1, \dots, x^k\}$:

$$\mathcal{L}_{\text{RankDPO}}(\theta) = -\mathbb{E} \sum_{i > j} \Delta_{i,j} \log \sigma \Big(-\beta \big(s(x^i) - s(x^j)\big)\Big)$$

Where:

  • $s(x)$ measures denoising error improvement relative to a frozen reference model.
  • $\Delta_{i,j} = |G_i - G_j| \cdot \left| \frac{1}{D(\tau(i))} - \frac{1}{D(\tau(j))} \right|$ acts as a Discounted Cumulative Gain (DCG) weight.
  • $G_i = 2^{\phi(i)} - 1$ represents sample gain, and $D(\tau(i)) = \log(1 + \tau(i))$ discounts lower ranks.

This weighting heavily penalizes severe misorderings (e.g., swapping rank 1 with rank 4) while dampening the penalty for minor discrepancies among low-ranked outputs.

Datasets

  • Training:
  • Pick-a-Picv2: Used as the source of 58K text prompts and as a human-annotated baseline dataset (0.85M pairs).
  • Syn-Pic (Ours): 240K synthetic images generated by 4 models on 58K prompts, labeled with multi-reward rankings.
  • Syn-Pic-SDXL (Ablation): An alternate version generated strictly using SDXL across four random seeds.
  • Evaluation Benchmarks:
  • GenEval: Evaluates fine-grained compositional alignment (single/multiple objects, colors, counting, positions).
  • T2I-CompBench: Measures attribute binding (color, shape, texture) and spatial/non-spatial relationships.
  • DPG-Bench: Evaluates dense, paragraph-length prompts using Davidsonian Scene Graph (DSG) parsing, VQAScore, and Q-Align.

Key Insights and Ideas

  • Reward ensembling prevents reward hacking: Fine-tuning against a single reward model (e.g., HPSv2.1 alone) yields aesthetic gains but often fails on text-image alignment. Averaging votes over five distinct reward models smooths out individual metric biases.
  • Cross-model diversity matters: Training on multi-model outputs outperforms training on multi-seed outputs from a single architecture (Syn-Pic vs. Syn-Pic-SDXL), because exposure to diverse structural representations helps the denoiser learn broader image priors.
  • Even heavily aligned models have room to grow: SD3-Medium was pre-aligned with 3 million human DPO pairs during development. Fine-tuning it on just 240K Syn-Pic images via RankDPO still produced substantial gains, particularly in counting and attribute binding.
  • Radical cost reduction: Curation costs drop from ~$50,000 to under $200, enabling continuous model retraining as newer base architectures emerge.

Key Results

  • GenEval: SDXL baseline improves from 0.55 to 0.61 overall (outperforming Diffusion-DPO at 0.59 and CaPO-SDXL at 0.59). SD3-Medium improves from 0.70 to 0.74, jumping from 0.63 to 0.72 in counting and 0.58 to 0.66 in color attribution.
  • T2I-CompBench: SDXL achieves large improvements in Color (58.79 $\rightarrow$ 72.33), Texture (52.99 $\rightarrow$ 69.67), and Complex prompts (32.37 $\rightarrow$ 45.47).
  • DPG-Bench (Long Prompts): SDXL improves DSG alignment score from 74.65 to 79.26 and visual quality (Q-Align) from 0.72 to 0.81, matching or beating supervised and pairwise DPO baselines.
  • Human Evaluation: In side-by-side user preference studies on DPG-Bench, RankDPO achieves a 59.9% win rate over base SDXL and a 56.0% win rate over Diffusion-DPO.

Limitations and Future Work

  • Dependence on reward models: If all reward models share correlated blind spots or visual artifacts, the synthetic ranking pipeline will perpetuate those failure modes.
  • Restricted scope of modalities: The current empirical study focuses exclusively on 2D image generation (diffusion and rectified flow). Extending RankDPO to text-to-video or multimodal autoregressive transformers remains unexplored.
  • Ranking scale: Experiments rank $k=4$ images per prompt due to generation overhead; exploring larger candidate pools ($k \ge 8$) could provide richer listwise ranking signals.

Summary updated

BibTeX
@misc{karthik2024scalable,
  author = {Shyamgopal Karthik and Huseyin Coskun and Zeynep Akata and Sergey Tulyakov and Jian Ren and Anil Kag},
  title = {{Scalable Ranked Preference Optimization for Text-to-Image Generation}},
  year = {2024},
  eprint = {2410.18013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.18013},
}
Figure