Aligning Text-to-Image Diffusion Models to Human Preference by Classification

Longquan Dai, Xiaolu Wei, He Wang, Shaomeng Wang, Jinhui TangNeurIPS 2025

This paper introduces a novel framework called ABC (Alignment by Classification) that simplifies and improves how we fine-tune models like Stable Diffusion to better match human tastes.

TL;DR

ABC reframes the challenge of aligning diffusion models with human preferences as a simple classification problem. By ditching the need for a "reference model" and using a clever data augmentation strategy, it achieves state-of-the-art alignment on SD1.5 and SDXL while being more memory-efficient than existing methods like DPO.

What Problem Does This Paper Address?

Text-to-image diffusion models are usually trained on massive, uncurated scrapes of the web. Consequently, they often generate images that are aesthetically "meh" or fail to follow complex instructions (e.g., "put the red ball to the left of the blue cube").

To fix this, researchers use Preference Learning. The gold standard has been Reinforcement Learning from Human Feedback (RLHF), but that requires training a separate "reward model," which is computationally expensive and prone to "reward hacking" (where the model finds a loophole to get a high score without actually being better).

A newer alternative, Direct Preference Optimization (DPO), skips the reward model but relies on a "reference model" (usually the original pre-trained model). The authors argue that this reference model is often suboptimal, which acts as a "ceiling" on how much the model can actually improve.

Methods

The core "aha!" moment of this paper is that alignment is essentially classification in disguise.

  1. The Theoretical Link: The authors provide two theorems showing that minimizing the DPO loss is mathematically equivalent to minimizing a classification loss. They argue that if you want a model to generate "good" images, you are essentially training it to "classify" a good image as the correct match for a given prompt.
  2. From Semi-Supervised to Supervised: In a standard preference dataset, you have a prompt ($y$) and two images: a preferred one ($x^+$) and a dispreferred one ($x^-$). Usually, we only have a "label" for the good image. ABC uses Data Augmentation to create a label for the bad one. They append a suffix like "The image that aligns less with human preferences" to the original prompt to create a synthetic "negative" prompt. This turns the task into a fully supervised binary classification.
  3. The ABC Loss: Instead of the standard DPO loss, they use a variant of Circle Loss. This loss function enforces a "margin" ($\delta$) between the scores of preferred and dispreferred images. Crucially, it does this without needing a reference model in memory during training, which significantly reduces VRAM usage.

Datasets

The authors utilized several industry-standard datasets and benchmarks:

  • Training: Pick-a-Pic, a large-scale dataset of human preferences for text-to-image generation.
  • Evaluation (Automated): HPS (Human Preference Score), PickScore, LAION Aesthetics, and CLIP (for text-image alignment).
  • Evaluation (Compositional): GenEval, which specifically tests a model's ability to handle attributes, positions, and numbers (e.g., "three red apples").
  • Zero-Shot Classification: To prove their theory, they tested the models on standard vision datasets like CIFAR-10, Food-101, and Pets.

Key Insights and Ideas

  • The Reference-Free Advantage: By treating alignment as classification, you don't need to keep a frozen copy of the model (the reference) in VRAM. This makes fine-tuning much more accessible for researchers with limited hardware.
  • Alignment Improves Discriminative Power: One of the most surprising findings is that a model aligned with ABC actually becomes a better image classifier. An SD1.5 model fine-tuned with ABC outperformed the base model on zero-shot classification tasks across six different datasets.
  • The "Ideal Reference" Assumption: Rather than comparing against a flawed SFT model, ABC's math assumes an "ideal" reference exists. This allows the model to push past the limitations of its starting point.

Key Results

Quantitative Win Rates
  • Win Rates: On the HPS benchmark, SDXL-ABC achieved a 70.17% win rate against the original SDXL-Base and consistently outperformed other popular methods like DPO, SPO, and MAPO.
  • Compositional Accuracy: In the GenEval benchmark, ABC showed significant gains in "Complex" prompts (3-in-1 tasks), outperforming DPO by a healthy margin.
Qualitative Comparisons
  • Qualitative Improvements: The paper showcases examples where ABC correctly handles tricky prompts, such as "A pineapple with one beer left and two beers right," where other models often get the count or the positioning wrong.

Limitations and Future Work

  • Noisy Data: Human preference data is inherently noisy—different people have different tastes. The authors acknowledge that their current formulation doesn't explicitly account for "label noise" in the preference pairs.
  • Subjectivity: Defining what makes an image "better" remains a moving target.
  • Future Directions: The authors suggest that future work could involve applying more advanced techniques from the "classification under label noise" literature to make preference learning even more robust.

Summary updated

BibTeX
@inproceedings{dai2025aligning,
  author = {Longquan Dai and Xiaolu Wei and He Wang and Shaomeng Wang and Jinhui Tang},
  title = {{Aligning Text-to-Image Diffusion Models to Human Preference by Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=YvypxK4kut},
}
Figure