|
Download README.md from LGirrbach/uc-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 15.2 kB
-
https://huggingface.co/datasets/LGirrbach/uc-benchmark/resolve/main/README.md
- Command line
-
hf download hf://datasets/LGirrbach/uc-benchmark/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/LGirrbach/uc-benchmark/resolve/main/README.md
15.2 kB
| configs: | |
| - config_name: questions | |
| default: true | |
| data_files: | |
| - split: test | |
| path: questions/test-*.parquet | |
| - config_name: images | |
| data_files: | |
| - split: test | |
| path: images/test-*.parquet | |
| task_categories: | |
| - visual-question-answering | |
| - zero-shot-classification | |
| language: | |
| - en | |
| pretty_name: Universal classifier benchmark (uc-benchmark) | |
| # uc-benchmark: yes/no questions about images | |
| The evaluation suite of the universal-classifier project: given an image and a yes/no question about it ("Is the | |
| earring silver?", "Is the cat left of the dog?"), predict a calibrated P(yes). We report AUROC and ECE per benchmark. | |
| 794,830 questions on 45,876 images (7.7 GiB) from 27 benchmarks. All labels come from | |
| existing human-labelled datasets, converted into a common binary format. For the skill benchmarks (counting, | |
| negation, OCR) the questions were generated from templates or rewritten by an LLM; the labels are still human. The | |
| NaturalBench questions were written by GPT-4 and verified by humans; the What'sUp captions were turned into questions by templates. | |
| ## Loading | |
| ```python | |
| from datasets import load_dataset | |
| questions = load_dataset("LGirrbach/uc-benchmark", "questions", split="test") # image_id, benchmark, question, answer | |
| images = load_dataset("LGirrbach/uc-benchmark", "images", split="test") # image_id, image (PIL) | |
| idx = {iid: i for i, iid in enumerate(images["image_id"])} | |
| q = questions[0] | |
| img = images[idx[q["image_id"]]]["image"] | |
| ``` | |
| Hugging Face splits of one config must share their columns, so the two tables are two **configs**, `questions` and | |
| `images`, each with a single `test` split. | |
| | config | column | content | | |
| |---|---|---| | |
| | `questions` | `image_id` | key into `images` | | |
| | | `benchmark` | benchmark name (table below) | | |
| | | `question` | the question, or for VSR and VALSE the statement / caption to verify | | |
| | | `answer` | `yes` or `no` | | |
| | `images` | `image_id` | `<image source>/<path in that source>`, e.g. `coco2017/val2017/000000000139.jpg` | | |
| | | `image` | the image (original file bytes) | | |
| An image used by several benchmarks is stored once. The image ids match the `image_source/image_path` columns of | |
| `LGirrbach/uc-dataset` (training data); none of these images appears in its train or validation split, except for | |
| RePOPE and What'sUp's GQA-spatial subsets (see below). | |
| ## Benchmarks | |
| ### Core | |
| | benchmark | images | questions | yes | | |
| |---|---:|---:|---:| | |
| | `coco_exist` | 4,929 | 393,879 | 3.5% | | |
| | `vqav2` | 4,004 | 9,129 | 48.3% | | |
| | `gqa` | 1,496 | 7,581 | 50.9% | | |
| | `vsr` | 1,874 | 2,195 | 53.8% | | |
| | `ovad` | 500 | 15,023 | 50.7% | | |
| | `vaw` | 1,714 | 15,008 | 39.6% | | |
| | `paco_part` | 2,537 | 11,788 | 66.3% | | |
| | `paco_attr` | 629 | 15,010 | 50.0% | | |
| | `valse` | 6,069 | 15,404 | 50.0% | | |
| | benchmark | what it evaluates | source paper | | |
| |---|---|---| | |
| | `coco_exist` | Object presence: "Is there a {category} in the image?" for all 80 COCO categories on 4.9k held-out COCO train2017 images, labelled by the COCO instance annotations. Only 3.5% yes (calibration under a skewed share of yes answers). | [COCO](https://arxiv.org/abs/1405.0312) | | |
| | `vqav2` | Open-ended human questions about everyday scenes (objects, activities, attributes, counting, common sense). Kept: at least 8 of 10 human answers are yes/no and at least 70% agree. | [VQAv2](https://arxiv.org/abs/1612.00837) | | |
| | `gqa` | Compositional, multi-step questions generated from human scene graphs (objects, relations, attributes, comparisons); balanced split. | [GQA](https://arxiv.org/abs/1902.09506) | | |
| | `vsr` | True/false statements about the spatial relation of two objects (66 relation types: left/right, front/behind, on, touching, facing, ...); official random-split test set. | [VSR](https://arxiv.org/abs/2205.00363) | | |
| | `ovad` | 117 human-annotated attributes of uniquely referable objects on COCO val2017 (colour, material, pattern, texture, cleanliness, maturity, expression, colour quantity, position, ...). | [OVAD](https://arxiv.org/abs/2211.12914) | | |
| | `vaw` | "Is the {object} {attribute}?" on Visual Genome / COCO images: colour, material, shape, size, texture, state, activity. | [VAW](https://arxiv.org/abs/2106.09707) | | |
| | `paco_part` | Part presence on everyday objects: "Does the {object} have a {part}?" for optional parts. | [PACO](https://arxiv.org/abs/2301.01795) | | |
| | `paco_attr` | Colour, pattern/marking, material and transparency of objects and their parts (no same-hue colour negatives). | [PACO](https://arxiv.org/abs/2301.01795) | | |
| | `valse` | Caption vs. minimally changed foil over 11 linguistic phenomena: existence, plurals, counting (3), relations, action replacement, actant swap, coreference (2), FOIL-it. Only validated samples. | [VALSE](https://arxiv.org/abs/2112.07566), [FOIL it!](https://arxiv.org/abs/1705.01359) | | |
| ### Additional existence benchmarks | |
| | benchmark | images | questions | yes | | |
| |---|---:|---:|---:| | |
| | `lvis` | 5,447 | 66,579 | 26.7% | | |
| | `openimages_test` | 5,000 | 33,305 | 60.8% | | |
| | benchmark | what it evaluates | source paper | | |
| |---|---|---| | |
| | `lvis` | Existence over the 1,203 LVIS categories (long tail, including rare classes). LVIS is federated: per image, only the annotated categories (yes) and the verified-absent categories (no) are asked. Images: all COCO val2017 images in LVIS v1 val plus those of the held-out COCO train2017 shard (the other LVIS val images are COCO train2017 images used for training). | [LVIS](https://arxiv.org/abs/1908.03195) | | |
| | `openimages_test` | Existence over the 600 boxable OpenImages classes on 5,000 randomly sampled OpenImages V7 test images (seed 0, upright images only), using the human-verified image-level labels. Verified-absent labels were proposed by a classifier and rejected by annotators, so the negatives are hard. Images are downscaled to a maximum side of 1024 px. | [Open Images](https://arxiv.org/abs/1811.00982) | | |
| ### Skill benchmarks: counting, negation, OCR | |
| | benchmark | images | questions | yes | | |
| |---|---:|---:|---:| | |
| | `count_coco` | 2,002 | 24,816 | 9.1% | | |
| | `count_tallyqa` | 3,655 | 43,329 | 9.1% | | |
| | `neg` | 5,937 | 19,200 | 50.0% | | |
| | `ocr_textocr` | 2,970 | 20,060 | 38.4% | | |
| | `ocr_textvqa` | 1,703 | 4,630 | 45.1% | | |
| | benchmark | what it evaluates | source paper | | |
| |---|---|---| | |
| | `count_coco` | Exact counting. One group per (image, category) with true count n in 0..10 (all instances non-crowd and at least 0.1% of the image; n = 0 is an absent category from the same supercategory as a present one). Every group asks all eleven values ("Are there no {X} in the image?", "Is there exactly one {X} in the image?", "Are there exactly {k} {X} in the image?"), exactly one of which is `yes`. At most 250 groups per true count. Held-out COCO images (val2017 and a held-out train2017 shard). | [COCO](https://arxiv.org/abs/1405.0312) | | |
| | `count_tallyqa` | Exact counting with human "How many ...?" questions, simple ("How many dogs are there?") and complex ("How many people are wearing hats?"). An LLM (Qwen3.8-27B) turned each question into yes/no templates, and all eleven values 0..10 are asked as for `count_coco`. TallyQA test on Visual Genome images. | [TallyQA](https://arxiv.org/abs/1810.12440) | | |
| | `neg` | Negation. Pairs of a question from `coco_exist`, `lvis`, `vaw`, `ovad`, `paco_attr`, `vsr`, `gqa` or `vqav2` (1,200 pairs each, balanced yes/no) and its logical negation with the flipped answer ("Is the table short?" / "Is the table not short?"). "Yes" always means the stated proposition holds; contractions and inverted negative questions ("Isn't there ...?") are never used. Existence questions are negated by rule, the others by an LLM (Qwen3-8B); every LLM negation was accepted by a second LLM (Gemma-4-26B-A4B) as an exact negation. Questions where "not" would be ambiguous (conjunctions, quantifiers, modal verbs) are excluded. | see the source benchmarks | | |
| | `ocr_textocr` | Reading words: 'Does the image contain the text "{w}"?' for annotated legible words in the image (`yes`; at least 4 characters, or numbers with at least 2 digits), a real word at edit distance 1 that does not occur in the image (`no`; numbers: one digit changed), and words from other images (`no`). TextOCR validation images. | [TextOCR](https://arxiv.org/abs/2105.05486) | | |
| | `ocr_textvqa` | Reading in context: an LLM (Qwen3.8-27B) rewrote TextVQA questions into templates such as 'Is the brand of this camera "{answer}"?', asked with the majority human answer (`yes`; at least 4 of 10 annotators agree and the answer is annotated text in the image), another legible word of the same image that is no human answer (`no`), and a real word at edit distance 1 from the answer that does not occur in the image (`no`). About 2% of the templates are clumsy ('Is what is inside the building "..."?'). TextVQA validation images. | [TextVQA](https://arxiv.org/abs/1904.08920) | | |
| The TextOCR / TextVQA images are OpenImages train images; validation images that are also in the training data of | |
| `LGirrbach/uc-dataset` were removed. | |
| ### External benchmarks with their own metrics (added 2026-11-23) | |
| Established human-labelled benchmarks, converted to yes/no items. Besides AUROC / ECE they have native metrics (group | |
| accuracy, mAP, POPE F1), which can be computed from this table as described. | |
| | benchmark | images | questions | yes | | |
| |---|---:|---:|---:| | |
| | `naturalbench` | 2,900 | 5,800 | 50.0% | | |
| | `hico` | 9,658 | 72,353 | 26.5% | | |
| | `repope_random` | 500 | 2,774 | 41.8% | | |
| | `repope_popular` | 500 | 2,727 | 43.7% | | |
| | `repope_adversarial` | 500 | 2,684 | 44.2% | | |
| | `whatsup_q_controlled_a` | 412 | 1,648 | 25.0% | | |
| | `whatsup_q_controlled_b` | 408 | 1,632 | 25.0% | | |
| | `whatsup_q_coco_one` | 1,451 | 4,494 | 50.0% | | |
| | `whatsup_q_coco_two` | 295 | 880 | 50.0% | | |
| | `whatsup_q_gqa_one` | 1,043 | 2,320 | 50.0% | | |
| | `whatsup_q_gqa_two` | 258 | 582 | 50.0% | | |
| | benchmark | what it evaluates | source paper | | |
| |---|---|---| | |
| | `naturalbench` | Natural adversarial questions: every sample has two images and two questions whose answers differ between the two images. The image pairs were mined as failures of CLIP / BLIP-2, the questions were written by GPT-4 and verified by humans; many are long and compositional (actions, counting, spatial relations, attributes, text). The yes/no samples of the release (1,450 of 1,900; the two-option multiple-choice samples are left out). Images from DOCCI and Flickr30k. Every sample is four consecutive rows (image A / question 1, image A / question 2, image B / question 1, image B / question 2), so NaturalBench's question, image and group accuracy (G-Acc: all four correct) can be computed from row order. | [NaturalBench](https://arxiv.org/abs/2410.14669) | | |
| | `hico` | Human-object interactions: "Is a person {verb-ing} {object}?" (e.g. "Is a person riding a horse?") for every interaction class of each object category present in the image, labelled by humans as happening (`yes`) or not (`no`); HICO's ambiguous labels and "no interaction" are left out. 520 interaction classes on the 9,658 HICO test images (the HICO-DET test set). The negatives are hard: the object is in the image, the interaction is not (HICO's known-object setting). One question text per interaction class, so HICO's mAP (average precision per class over the images, averaged over classes) can be computed by grouping on `question`. Labels from `zhimeng/hico_det`, a conversion of the official annotations; a template fills in HICO's verb and object names (two verb spellings corrected). | [HICO](https://openaccess.thecvf.com/content_iccv_2015/html/Chao_HICO_A_Benchmark_ICCV_2015_paper.html) | | |
| | `repope_random`, `repope_popular`, `repope_adversarial` | Object hallucination: POPE's "Is there a {object} in the image?" on 500 COCO val2014 images, with RePOPE's corrected labels and its ambiguous questions removed. The three POPE splits sample the absent objects differently (random; frequent in COCO; frequently co-occurring with the objects that are present) and share most of their present-object questions, so they are three benchmarks. POPE reports accuracy, precision, recall, F1 and the share of `yes` answers per split. **Training overlap:** 372 of the 500 images are COCO train2017 images in the training split of `LGirrbach/uc-dataset` (369 in `LGirrbach/uc-training`). | [RePOPE](https://arxiv.org/abs/2504.15707), [POPE](https://arxiv.org/abs/2305.10355) | | |
| | `whatsup_q_controlled_a`, `whatsup_q_controlled_b`, `whatsup_q_coco_one`, `whatsup_q_coco_two`, `whatsup_q_gqa_one`, `whatsup_q_gqa_two` | Spatial relations: What'sUp's caption options, each rewritten as a yes/no question by fixed templates that use only the caption text ("A mug behind a knife" -> "Is the mug behind the knife?"; one-object captions refer to the image frame: "A photo of a cat on the left" -> "Is the cat on the left side of the image?", "... on the top" -> "... in the top part of the image?"; GQA-spatial's ungrammatical relations are fixed, e.g. "to the behind of" -> "behind"). Exactly one option per sample is true. Controlled A (on / under / left of / right of; household objects photographed by the authors) and Controlled B (left of / right of / in front of / behind; tabletop scenes) have four options per image; COCO-spatial and GQA-spatial (one object relative to the image frame, or two objects: left / right / above / below / front / behind) have two. Every sample is 4 (controlled) or 2 (coco/gqa) consecutive rows on the same image, the true option first, so What'sUp's accuracy (argmax over a sample's options) can be computed from row order. **Training overlap:** 437 of the 1,043 `whatsup_q_gqa_one` and 100 of the 258 `whatsup_q_gqa_two` images are in the training split of `LGirrbach/uc-training` (391 / 91 in `LGirrbach/uc-dataset`); the other subsets have none. | [What'sUp](https://arxiv.org/abs/2310.19785) | | |
| ## Notes | |
| - **Order:** questions keep the benchmark file order (see `naturalbench` and `whatsup_q_*` for their multi-row samples). For `valse`, each caption (`yes`) is immediately followed by its | |
| foil (`no`) on the same image, so pairwise accuracy can be computed from consecutive rows. Likewise, every `neg` | |
| pair is two consecutive rows (original, then negation), and every `count_coco` / `count_tallyqa` group is eleven | |
| consecutive rows (k = 0, 1, ..., 10), so count accuracy (argmax over the group) can be computed from row order. | |
| - **Not exported:** question types (e.g. VSR relation, OVAD attribute type, VALSE subset, NaturalBench image source), soft labels, grounding | |
| boxes. | |
| - **Shared images:** `coco_exist`, `vqav2` and `gqa` share most images (one held-out COCO shard); `paco_part` and | |
| `paco_attr` share 415 images; `lvis` shares images with `ovad` and `coco_exist`; the RePOPE images (COCO) also occur | |
| in other COCO-based benchmarks (e.g. 73 in `lvis`, 50 in `neg`, 38 in `valse`). | |
| - **Image sources:** coco2017 (18,124), hico (9,658), visual_genome (5,198), openimages_v7 (5,000), textvqa (2,970), naturalbench (2,900), swig (1,102), whatsup (820), visdial_v1.0_val2018 (104). Images and annotations keep the licences and terms of their original datasets (see the | |
| linked papers / dataset pages). This collection is for research evaluation. | |