Skip to main content
QUICK REVIEW

[Paper Review] Human Preference Score: Better Aligning Text-to-Image Models with Human Preference

Xiaoshi Wu, Keqiang Sun|arXiv (Cornell University)|Mar 25, 2023
Generative Adversarial Networks and Image SynthesisComputer Science9 citations
TL;DR

The paper collects a large human-annotated dataset of preferences over Stable Diffusion outputs, shows traditional metrics do not predict human choices well, trains a human preference classifier to derive a Human Preference Score (HPS), and uses HPS to adapt Stable Diffusion to generate more human-preferred images.

ABSTRACT

Recent years have witnessed a rapid growth of deep generative models, with text-to-image models gaining significant attention from the public. However, existing models often generate images that do not align well with human preferences, such as awkward combinations of limbs and facial expressions. To address this issue, we collect a dataset of human choices on generated images from the Stable Foundation Discord channel. Our experiments demonstrate that current evaluation metrics for generative models do not correlate well with human choices. Thus, we train a human preference classifier with the collected dataset and derive a Human Preference Score (HPS) based on the classifier. Using HPS, we propose a simple yet effective method to adapt Stable Diffusion to better align with human preferences. Our experiments show that HPS outperforms CLIP in predicting human choices and has good generalization capability toward images generated from other models. By tuning Stable Diffusion with the guidance of HPS, the adapted model is able to generate images that are more preferred by human users. The project page is available here: https://tgxs002.github.io/align_sd_web/ .

Motivation & Objective

  • Create a large-scale dataset of human choices on images generated with a common prompt.
  • Evaluate how existing metrics (IS, FID, CLIP) correlate with human preferences.
  • Develop a human preference classifier fine-tuned on the dataset to derive HPS.
  • Demonstrate how HPS can guide adaptation of Stable Diffusion to produce more human-preferred images.

Proposed method

  • Train a human preference classifier by fine-tuning CLIP ViT-L/14 on prompts with multiple generated images and one preferred image.
  • Define Human Preference Score (HPS) as 100 times the cosine similarity between the visual and text embeddings from the human preference classifier.
  • Construct a training dataset by labeling prompts with preferred and non-preferred images using the classifier.
  • Adapt Stable Diffusion via LoRA by creating a training set that pairs prompts with preferred/non-preferred images and prefixes non-preferred captions to guide the model away from artifacts.
  • During inference, use the special identifier as a negative prompt in classifier-free guidance to avoid non-preferred outputs.
Figure 1: Generated images often do not align well with human preferences and intentions. Input prompts are shown below images.
Figure 1: Generated images often do not align well with human preferences and intentions. Input prompts are shown below images.

Experimental results

Research questions

  • RQ1How well do standard metrics (IS, FID, CLIP) correlate with human preferences on generated images?
  • RQ2Can a human preference classifier trained on a large annotated dataset predict human choices more accurately than CLIP alone?
  • RQ3Can we use a human-preference-guided objective to adapt Stable Diffusion to produce more preferred images?
  • RQ4Does HPS generalize across different text-to-image models beyond Stable Diffusion?

Key findings

  • IS, FID, and CLIP scores do not fully match human choices on the dataset.
  • A fine-tuned CLIP-based human preference classifier yields higher agreement with human choices than CLIP alone.
  • HPS correlates with human preferences and can generalize to images from other models (e.g., DALL·E, Stable Diffusion).
  • Adapting Stable Diffusion with LoRA guided by HPS yields images with fewer artifacts and higher human preference in user studies.
  • Quantitative comparison shows the adapted SD v1.4 model has lower FID and higher Aesthetic Score and CLIP/HPS metrics compared to the baseline (SD v1.4).
Figure 3: Examples of the collected data. The images are generated by Stable Diffusion, with corresponding prompts shown below each row of images. The preferred images are highlighted with red borders. More examples can be found in the appendix.
Figure 3: Examples of the collected data. The images are generated by Stable Diffusion, with corresponding prompts shown below each row of images. The preferred images are highlighted with red borders. More examples can be found in the appendix.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.