Human Preference Score: Better Aligning Text-to-image Models with Human Preference

Xiaoshi Wu, Keqiang Sun, Feng Zhu, Rui Zhao, Hongsheng Li

Abstract

While text-to-image (T2I) models have achieved remarkable success in generating high-fidelity images from natural language, they often fail to align with human aesthetic preferences. Existing metrics like FID and CLIP score do not adequately capture human "taste," leading to models that frequently produce structural artifacts. We present the Human Preference Score (HPS), a new metric trained on a massive dataset of human choices. By fine-tuning Stable Diffusion using HPS-guided Low-Rank Adaptation (LoRA), we achieve a model that produces images preferred by users 74% of the time over the original version.

Introduction: The Aesthetic Preference Gap

Text-to-image models like Stable Diffusion and DALL·E often generate what researchers call "nightmare fuel"—images with distorted faces, fused limbs, or unappealing compositions that technically follow a prompt but fail aesthetically. This "preference gap" exists because standard evaluation tools, such as the Inception Score (IS) and Fréchet Inception Distance (FID), measure feature distributions rather than human beauty. Even the CLIP score, which measures semantic alignment, is often "blind" to aesthetic quality.

Structural artifacts, such as distorted limbs, illustrate the "preference gap" where models follow prompts but fail aesthetically.

Methodology

The researchers developed a three-phase approach to bridge this gap:

  1. Metric Development (HPS): A CLIP (ViT-L/14) model was fine-tuned as a human preference classifier using a contrastive learning objective. It was trained to maximize similarity between a prompt and the image a human selected as "best" in a set.
  2. The Human Preference Dataset: The model was trained on a new dataset from the Stable Foundation Discord, containing 98,807 images across 25,205 prompts, capturing real-world A/B testing by 2,659 users.
  3. Model Adaptation via LoRA: To avoid the cost of retraining, the team used Low-Rank Adaptation (LoRA). They used HPS to label images as "preferred" or "non-preferred" and trained the model to associate the latter with a specific prefix (e.g., "Weird image"). This prefix is then used as a negative prompt during inference to steer the model away from low-quality outputs.

Key Results and Insights

The HPS classifier achieved 43.5% accuracy in predicting human choices, outperforming standard CLIP (33.1%) and even slightly exceeding the human baseline in the study's test set.

The HPS-adapted model selects and generates images that better align with human aesthetic preferences across diverse prompts.

In head-to-head user studies, the HPS-adapted Stable Diffusion model was preferred 74% of the time over the original v1.4 model. Qualitative analysis showed a significant reduction in "spaghetti limbs" and distorted features, resulting in cleaner, more professional-looking compositions.

Discussion and Limitations

While HPS significantly improves visual quality, it introduces a subtle "alignment tax" where the model may occasionally prioritize beauty over literal prompt adherence. Additionally, the dataset's origin in a specific Discord community may introduce biases toward certain digital art styles. Future work could involve integrating HPS directly into the diffusion sampling process or refining Reinforcement Learning from Human Feedback (RLHF) pipelines.

Conclusion

The Human Preference Score provides a necessary "North Star" for aligning generative models with human taste. By combining a robust preference metric with efficient adaptation techniques like LoRA and negative prompting, researchers can significantly improve the aesthetic reliability of text-to-image systems.

Summary updated

BibTeX
@inproceedings{wu2023human,
  author = {Xiaoshi Wu and Keqiang Sun and Feng Zhu and Rui Zhao and Hongsheng Li},
  title = {{Human Preference Score: Better Aligning Text-to-image Models with Human Preference}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00200},
}
Figure