RichHF-18K Rich Feedback on Text-to-Image Output
Mark implausible regions, misaligned prompt words, and four quality scores for an image using image_annotation, span, and likert. Items are illustrative.
Get This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/image/generation-eval/richhf-18k-text-to-image-feedback
potato start config.yamlAbout this dataset
RichHF-18K is a dataset of rich human feedback on text-to-image generations, introduced by Liang and colleagues. The paper received a Best Paper award at CVPR 2024. Annotators read a prompt and examine the generated image, mark points on the image where it is implausible or misaligned with the prompt, mark the prompt words that the image misses, and give four scores on a 5-point Likert scale for plausibility, image-text alignment, aesthetics, and overall quality.
This design reproduces those steps on one page. Two landmark sets on the image stand for the artifact and misalignment points, a span scheme on the prompt marks misaligned words, and four likert schemes take the scores. The paper does not print the end captions of the scales, so Very low and Very high are written for this design. The study used a custom web interface and kept the marked points as heatmaps with an effective radius of one twentieth of the image height, which this design does not model. The inappropriate-image flag from the supplement is also left out.
The items are illustrative. The released labels carry no images, which come from Pick-a-Pic, so each item pairs a CC0 photograph from Wikimedia Commons with a prompt written for this design. The photographs are real photos, not generated images. Each prompt was written to fit its photo. Two prompts keep a deliberate mismatch so that the span and alignment fields have something to mark. Item 002 asks for red roses where the vase holds wildflowers, and item 008 asks for a brown dog where the dog is black and white. No model_training block is included, because no registered Potato trainer consumes these schemes.
- Annotators in the study
- 27
- Annotation effort
- about 3,000 rater-hours
- Scores per image
- 4 (5-point Likert)
- Items in this design
- 8 (illustrative)
Configuration File
This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# RichHF-18K: rich human feedback on text-to-image generations (CVPR 2024 Best Paper)
#
# Paper: Liang et al., "Rich Human Feedback for Text-to-Image Generation", CVPR 2024,
# doi 10.1109/cvpr52733.2024.01835 (arXiv 10.48550/arXiv.2312.10240).
# Award: listed under Best Papers at https://cvpr.thecvf.com/Conferences/2024/News/Awards
# Paper page: https://openaccess.thecvf.com/content/CVPR2024/html/Liang_Rich_Human_Feedback_for_Text-to-Image_Generation_CVPR_2024_paper.html
# Data: https://github.com/google-research-datasets/richhf-18k (labels only, no images; the
# images come from Pick-a-Pic v1 and are matched by file name; no licence file is
# published in the repository).
# Protocol (paper section 3.1): "For each generated image, the annotators are first asked to
# examine the image and read the text prompt used to generate it. Then, they mark points
# on the image to indicate the location of any implausibility/artifact or misalignment
# w.r.t the text prompt." Each point has an "effective radius" (1/20 of the image
# height). "Lastly, annotators label the misaligned keywords and the four types of
# scores for plausibility, image-text alignment, aesthetic, and overall quality,
# respectively, on a 5-point Likert scale." Definitions are in supplementary sections
# 8.1 (artifacts and implausibility) and 8.2 (misalignment, with a what-to-do for each
# kind, for example "Click on that word of the attribute in the text and click on the
# region of the object on the image").
# Adaptations: the study used a custom web interface, three annotators per pair, and kept the
# marked points as heatmaps. Here the points are two labelled landmark sets on the
# image, the misaligned keywords are spans on the prompt, and the four scores are
# 5-point Likert items. The paper does not print the end captions of the scales, so
# "Very low" and "Very high" are written for this design. The inappropriate-image flag
# from supplementary 8.3 is left out. The items are illustrative. The images are CC0
# photographs from Wikimedia Commons, not generated images, and the prompts are
# written for this design. Each prompt was rewritten after looking at its photo, so six of the
# eight match what the photograph shows. Two keep a deliberate mismatch so that the
# misaligned-word and alignment fields have something to mark: item 002 asks for "red
# roses" (the vase holds wildflowers) and item 008 asks for a "brown dog" (the dog is
# black and white). Replace the photographs with generated images and the prompts with
# your own for a real study.
annotation_task_name: "RichHF-18K rich feedback on text-to-image output"
data_files:
- sample-data.json
item_properties:
id_key: id
text_key: image_url
task_dir: .
output_annotation_dir: annotation_output
export_annotation_format: jsonl
instance_display:
fields:
- key: prompt
type: text
label: "Text prompt"
span_target: true
annotation_schemes:
- annotation_type: image_annotation
name: image_points
description: "Click points on the image. Use red for an implausible region or artifact, and blue for a region that does not match the prompt."
source_field: image_url
tools:
- landmark
labels:
- name: "Implausible or artifact"
color: "#DC2626"
- name: "Misaligned with prompt"
color: "#2563EB"
zoom_enabled: true
pan_enabled: true
- annotation_type: span
name: misaligned_words
description: "Select the words in the prompt that are missing from the image or shown incorrectly (a missing item, a wrong attribute, action, number or position)."
labels:
- name: "Misaligned word"
tooltip: "A word in the prompt that the image does not represent"
- annotation_type: likert
name: plausibility
description: "Plausibility. How free is the image of implausible content and artifacts?"
size: 5
min_label: "Very low"
max_label: "Very high"
label_requirement:
required: true
- annotation_type: likert
name: alignment
description: "Image-text alignment. How well does the image match the prompt?"
size: 5
min_label: "Very low"
max_label: "Very high"
label_requirement:
required: true
- annotation_type: likert
name: aesthetics
description: "Aesthetics. How good does the image look?"
size: 5
min_label: "Very low"
max_label: "Very high"
label_requirement:
required: true
- annotation_type: likert
name: overall
description: "Overall quality of the image for this prompt."
size: 5
min_label: "Very low"
max_label: "Very high"
label_requirement:
required: true
user_config:
allow_all_users: true
annotation_instructions: |
Read the prompt, then look at the image. Click a point on each region that looks implausible
or distorted (red) and on each region that does not match the prompt (blue). Each point stands
for a small disk, so a few points cover a region. Then select the prompt words the image does
not represent and give the four 1 to 5 scores.
Sample Data
[
{
"id": "richhf_001",
"image_url": "https://thumb.wikimedia.org/wikipedia/commons/thumb/4/4d/Dog_beach_in_Helsingborg_2024.jpg/960px-Dog_beach_in_Helsingborg_2024.jpg",
"prompt": "a blue and white sign showing a swimming dog with the words \"Voff, voff\" on a metal pole beside the sea",
"image_source": "https://commons.wikimedia.org/wiki/File:Dog_beach_in_Helsingborg_2024.jpg",
"image_licence": "CC0 (Wikimedia Commons)"
},
{
"id": "richhf_002",
"image_url": "https://thumb.wikimedia.org/wikipedia/commons/thumb/0/06/Fruit_bowl%2C_Ehrenbach.jpg/960px-Fruit_bowl%2C_Ehrenbach.jpg",
"prompt": "a cut-glass bowl of raspberries and blueberries next to a plate of blackberries and a vase of red roses",
"image_source": "https://commons.wikimedia.org/wiki/File:Fruit_bowl,_Ehrenbach.jpg",
"image_licence": "CC0 (Wikimedia Commons)"
}
]
// ... and 6 more itemsGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/image/generation-eval/richhf-18k-text-to-image-feedback
potato start config.yamlDataset & paper
Liang et al., CVPR 2024
- Paper DOI
- 10.1109/cvpr52733.2024.01835
Citation (BibTeX)
@inproceedings{Liang_2024,
title = {Rich Human Feedback for Text-to-Image Generation},
url = {http://dx.doi.org/10.1109/cvpr52733.2024.01835},
doi = {10.1109/cvpr52733.2024.01835},
booktitle = {2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
publisher = {IEEE},
author = {Liang, Youwei and He, Junfeng and Li, Gang and Li, Peizhao and Klimovskiy, Arseniy and Carolan, Nicholas and Sun, Jiao and Pont-Tuset, Jordi and Young, Sarah and Yang, Feng and Ke, Junjie and Dvijotham, Krishnamurthy Dj and Collins, Katherine M. and Luo, Yiwen and Li, Yang and Kohlhoff, Kai J and Ramachandran, Deepak and Navalpakkam, Vidhya},
year = {2024},
month = jun,
pages = {19401--19411}
}Details
Annotation Types
Domain
Use Cases
Tags
Found an issue or want to improve this design?
Open an Issue(opens in a new tab)Related Designs
ESA: Error Span Annotation for Machine Translation
Error span annotation for machine translation output. Annotators identify error spans in translations, classify error types (accuracy, fluency, terminology, style), and rate severity.
Interpretable Semantic Textual Similarity
Fine-grained semantic similarity assessment between sentence pairs with span alignment, combining chunk-level annotation with graded similarity scoring. Based on SemEval-2016 Task 2.
LongEval: Faithfulness Evaluation for Long-Form Summarization
LongEval is the EACL 2023 protocol for human evaluation of faithfulness in long-form summaries (Krishna et al.). This Potato config reproduces its fine-grained, clause-level faithfulness judgments against source documents.