Dataset Viewer
Auto-converted to Parquet Duplicate
image_id
stringlengths
17
17
image
imagewidth (px)
25
189
image_url
stringclasses
0 values
label
int32
0
42
label_name
stringclasses
43 values
dataset
stringclasses
1 value
00004/00039_00029
null
4
70 Kph Limit
GTSRB
00004/00035_00017
null
4
70 Kph Limit
GTSRB
00001/00016_00003
null
1
30 Kph Limit
GTSRB
00017/00014_00004
null
17
No Entry
GTSRB
00005/00021_00020
null
5
80 Kph Limit
GTSRB
00011/00002_00015
null
11
Right-Of-Way At Intersection
GTSRB
00004/00007_00018
null
4
70 Kph Limit
GTSRB
00004/00043_00028
null
4
70 Kph Limit
GTSRB
00002/00030_00019
null
2
50 Kph Limit
GTSRB
00025/00030_00027
null
25
Construction/Road Work Warning
GTSRB
00036/00001_00028
null
36
Forward-Right Arrow
GTSRB
00009/00030_00028
null
9
No Cars Passing
GTSRB
00004/00010_00020
null
4
70 Kph Limit
GTSRB
00012/00008_00018
null
12
Priority Road
GTSRB
00010/00018_00010
null
10
No Trucks Passing
GTSRB
00010/00006_00003
null
10
No Trucks Passing
GTSRB
00035/00010_00004
null
35
Forward Arrow
GTSRB
00001/00048_00023
null
1
30 Kph Limit
GTSRB
00007/00003_00026
null
7
100 Kph Limit
GTSRB
00008/00018_00022
null
8
120 Kph Limit
GTSRB
00035/00019_00028
null
35
Forward Arrow
GTSRB
00028/00009_00023
null
28
Child And Pedestrian Warning
GTSRB
00015/00000_00017
null
15
Empty Circle
GTSRB
00010/00001_00025
null
10
No Trucks Passing
GTSRB
00007/00019_00002
null
7
100 Kph Limit
GTSRB
00005/00032_00020
null
5
80 Kph Limit
GTSRB
00013/00033_00011
null
13
Yield
GTSRB
00026/00000_00013
null
26
Traffic Light Warning
GTSRB
00031/00008_00012
null
31
Deer Warning
GTSRB
00030/00002_00013
null
30
Ice/Snow Warning
GTSRB
00035/00022_00006
null
35
Forward Arrow
GTSRB
00005/00000_00029
null
5
80 Kph Limit
GTSRB
00019/00001_00027
null
19
Left Curve Warning
GTSRB
00013/00002_00020
null
13
Yield
GTSRB
00018/00024_00026
null
18
Exclamation Mark Warning
GTSRB
00001/00023_00014
null
1
30 Kph Limit
GTSRB
00010/00019_00014
null
10
No Trucks Passing
GTSRB
00025/00016_00007
null
25
Construction/Road Work Warning
GTSRB
00012/00025_00010
null
12
Priority Road
GTSRB
00025/00018_00011
null
25
Construction/Road Work Warning
GTSRB
00007/00024_00000
null
7
100 Kph Limit
GTSRB
00001/00034_00013
null
1
30 Kph Limit
GTSRB
00002/00036_00002
null
2
50 Kph Limit
GTSRB
00002/00046_00002
null
2
50 Kph Limit
GTSRB
00007/00026_00007
null
7
100 Kph Limit
GTSRB
00003/00028_00014
null
3
60 Kph Limit
GTSRB
00012/00003_00021
null
12
Priority Road
GTSRB
00013/00037_00028
null
13
Yield
GTSRB
00015/00003_00020
null
15
Empty Circle
GTSRB
00007/00021_00001
null
7
100 Kph Limit
GTSRB
00025/00012_00000
null
25
Construction/Road Work Warning
GTSRB
00002/00047_00021
null
2
50 Kph Limit
GTSRB
00021/00004_00029
null
21
Double Curve Warning
GTSRB
00028/00001_00021
null
28
Child And Pedestrian Warning
GTSRB
00004/00026_00013
null
4
70 Kph Limit
GTSRB
00040/00005_00009
null
40
Circle Arrow
GTSRB
00003/00006_00002
null
3
60 Kph Limit
GTSRB
00007/00016_00019
null
7
100 Kph Limit
GTSRB
00034/00004_00024
null
34
Left Arrow
GTSRB
00039/00002_00008
null
39
Keep-Left Arrow
GTSRB
00012/00017_00002
null
12
Priority Road
GTSRB
00012/00041_00007
null
12
Priority Road
GTSRB
00003/00004_00007
null
3
60 Kph Limit
GTSRB
00002/00012_00001
null
2
50 Kph Limit
GTSRB
00002/00028_00020
null
2
50 Kph Limit
GTSRB
00011/00025_00013
null
11
Right-Of-Way At Intersection
GTSRB
00025/00024_00007
null
25
Construction/Road Work Warning
GTSRB
00008/00029_00028
null
8
120 Kph Limit
GTSRB
00005/00022_00008
null
5
80 Kph Limit
GTSRB
00004/00003_00015
null
4
70 Kph Limit
GTSRB
00005/00011_00027
null
5
80 Kph Limit
GTSRB
00010/00008_00012
null
10
No Trucks Passing
GTSRB
00010/00044_00027
null
10
No Trucks Passing
GTSRB
00011/00000_00025
null
11
Right-Of-Way At Intersection
GTSRB
00009/00001_00018
null
9
No Cars Passing
GTSRB
00014/00011_00016
null
14
Stop
GTSRB
00012/00027_00019
null
12
Priority Road
GTSRB
00023/00001_00003
null
23
Slippery Road Warning
GTSRB
00024/00001_00014
null
24
Merging/Narrow Lanes Warning
GTSRB
00025/00025_00002
null
25
Construction/Road Work Warning
GTSRB
00031/00010_00005
null
31
Deer Warning
GTSRB
00002/00049_00002
null
2
50 Kph Limit
GTSRB
00035/00018_00024
null
35
Forward Arrow
GTSRB
00006/00008_00017
null
6
End Of Restriction
GTSRB
00014/00014_00003
null
14
Stop
GTSRB
00006/00002_00024
null
6
End Of Restriction
GTSRB
00012/00019_00005
null
12
Priority Road
GTSRB
00033/00009_00014
null
33
Right Arrow
GTSRB
00030/00007_00009
null
30
Ice/Snow Warning
GTSRB
00003/00013_00023
null
3
60 Kph Limit
GTSRB
00002/00029_00027
null
2
50 Kph Limit
GTSRB
00007/00002_00025
null
7
100 Kph Limit
GTSRB
00008/00021_00009
null
8
120 Kph Limit
GTSRB
00005/00027_00023
null
5
80 Kph Limit
GTSRB
00003/00019_00026
null
3
60 Kph Limit
GTSRB
00014/00012_00021
null
14
Stop
GTSRB
00002/00045_00009
null
2
50 Kph Limit
GTSRB
00038/00036_00026
null
38
Keep-Right Arrow
GTSRB
00004/00004_00012
null
4
70 Kph Limit
GTSRB
00008/00008_00006
null
8
120 Kph Limit
GTSRB
End of preview. Expand in Data Studio

MYOPIA: Understanding the Limits of Tree-Based Reasoning in Vision-Language Models

MYOPIA is a benchmark for testing whether vision-language models (VLMs) classify images better when they follow a human-designed decision tree, one question at a time, than when they are asked for the label directly (zero-shot).

It provides:

  • Four fixed evaluation subsets: GTSRB (901 images, 43 classes), MNIST (1,000, 10), CIFAR-10 (1,000, 10), and single-object MSCOCO (850, 90).

  • One decision tree per dataset (128 internal nodes and 153 leaves in total). Each internal node asks a visual question with a closed answer set, and each leaf is a class.

  • Every prompt used in the paper: tree-node and zero-shot templates, ten zero-shot paraphrases per dataset, and class descriptions.

  • Reference predictions from GPT-4o, Qwen-VL-Max, and LLaMA-3.2-11B-Vision: 114,177 per-image records with full tree-traversal paths.

  • An evaluation harness that runs any model behind an OpenAI-compatible API.

  • Paper: arXiv:2610.21573

  • Code: github.com/islammesabah/VLM_Classification

Headline result

Accuracy (%) at temperature 0.7 in the primary condition (no conversation history, no descriptions), computed from the predictions config:

Dataset Model Zero-shot Tree
GTSRB GPT-4o 71.14 57.71
Qwen-VL-Max 47.06 24.64
LLaMA-3.2-V 37.07 33.19
MNIST GPT-4o 91.50 34.60
Qwen-VL-Max 94.40 29.30
LLaMA-3.2-V 59.30 7.70
CIFAR-10 GPT-4o 87.90 76.00
Qwen-VL-Max 77.60 56.60
LLaMA-3.2-V 36.70 16.40
MSCOCO GPT-4o 72.82 46.71
Qwen-VL-Max 74.82 39.65
LLaMA-3.2-V 23.76 3.65

Tree-based inference is below zero-shot in every cell.

Quick start

from datasets import load_dataset

gtsrb = load_dataset("IslamMesabah/myopia-benchmark", "gtsrb", split="test")
print(gtsrb[0])
# {'image_id': '00004/00039_00029', 'image': <PIL.Image>, 'image_url': None,
#  'label': 4, 'label_name': '70 Kph Limit', 'dataset': 'GTSRB'}

preds = load_dataset("IslamMesabah/myopia-benchmark", "predictions", split="gtsrb")

Download the trees and prompts with the rest of the repository:

hf download IslamMesabah/myopia-benchmark --repo-type dataset --local-dir myopia-benchmark

Repository layout

data/<dataset>/test.parquet        evaluation subset
data/<dataset>/class_names.json    label id -> class name
trees/<dataset>.json               decision tree, machine-readable
trees/<dataset>.txt                decision tree, human-readable
prompts/templates.json             all prompt templates used by the harness
prompts/<DATASET>/zs_prompts.json  ten zero-shot paraphrases (index 0 is the paper's)
prompts/<DATASET>/classes_description.json   short and long class descriptions
predictions/<dataset>.parquet      reference model outputs
evaluation/evaluate.py             evaluation harness

<dataset> is one of gtsrb, mnist, cifar10, mscoco.

Data fields

gtsrb, mnist, cifar10, mscoco

Field Type Description
image_id string Identifier in the source dataset (GTSRB class/track_frame, MNIST training index, CIFAR-10 batch_<b>_image_<i>, COCO image id)
image image The image. null for MSCOCO (see Licensing)
image_url string Official COCO URL for MSCOCO, null otherwise
label int Ground-truth class id (COCO category ids are 1-based and non-contiguous)
label_name string Class name
dataset string Source dataset

Trees (trees/<dataset>.json)

{
  "dataset": "GTSRB", "num_internal_nodes": 22, "num_leaves": 43,
  "node_prompt": "{question} Choose one of these answers: {answers}.",
  "root": {
    "id": "n0", "question": "What's the sign's primary shape?",
    "answers": ["triangle", "circle", "diamond", "inverted-triangle", "octagon"],
    "children": {"triangle": {"id": "n1", "question": "...", "...": "..."}}
  }
}

Internal nodes have question, answers, and children (answer -> node). Leaves have label and label_name. To run tree inference, start at root, fill node_prompt with the node's question and answer list, match the model's reply against answers (case-insensitive, whole word, longest answer first), and move to that child. Stop at a leaf. If no answer matches, the prediction is -1.

predictions

One row per (image, model, condition). Each row holds a tree-based and a zero-shot output for the same image.

Field Description
dataset, image_id, label Join keys to the evaluation subsets
model gpt-4o, qwen-vl-max, or llama3.2-vision:11b-instruct-fp16
temperature Sampling temperature (0.0 or 0.7)
run_id Zero-shot prompt paraphrase index (0-9); 0 is the primary prompt
include_memory Tree questions asked in one conversation, with history (+H)
include_description 0: none; 1: image and class descriptions added to tree inference (Tree+D); 2: added to zero-shot inference (ZS+D)
include_zero_shot_label Reserved; always false
tree_path JSON list of {question, answer} steps the model took
tree_prediction Leaf reached, or -1 if traversal failed
zero_shot_output Raw zero-shot response; "0" where the zero-shot half was not run for that row
zero_shot_prediction Parsed class id, or -1

Not every condition was run for every model and dataset. The paper reports a condition only when it covers at least 90% of a dataset, so check row counts before averaging.

Evaluate a model

pip install -r evaluation/requirements.txt
export OPENROUTER_API_KEY=...

# Tree-based inference
python evaluation/evaluate.py run --dataset gtsrb --method tree \
    --model openai/gpt-4o --base-url https://openrouter.ai/api/v1 \
    --api-key-env OPENROUTER_API_KEY --out gtsrb_tree.jsonl

# Zero-shot baseline
python evaluation/evaluate.py run --dataset gtsrb --method zero_shot \
    --model openai/gpt-4o --base-url https://openrouter.ai/api/v1 \
    --api-key-env OPENROUTER_API_KEY --out gtsrb_zs.jsonl

python evaluation/evaluate.py score gtsrb_tree.jsonl gtsrb_zs.jsonl

Any OpenAI-compatible endpoint works, including vLLM, Ollama (http://localhost:11434/v1), and OpenRouter. Runs can be resumed, and --limit N runs a quick subset. The harness reproduces the paper's primary condition: temperature 0.7, 100 max tokens, JPEG-encoded images, and no history or descriptions. The full harness with every ablation is in the GitHub repository.

How the benchmark was built

  • Subsets. The images were sampled once with a fixed seed and kept fixed for every model and condition. MSCOCO is restricted to images annotated with exactly one object category, so each image has one correct label.
  • Trees. The questions ask about visual attributes (shape, colour, symbol, stroke structure) that should be answerable from the image alone. Every tree was reviewed by a human. The paper (Sec. 3.1) describes the generator-evaluator pipeline used to draft trees.
  • Labels are the source datasets' original annotations.

Limitations

  • Tree quality reflects one human reviewer's judgment. A different tree for the same label set could give different results, and the paper's audit (Sec. 5.4) studies this.
  • Each tree is specific to its dataset's label set and does not transfer to other datasets.
  • The subsets are small (850-1,000 images), so differences of 1-2 points between models are within sampling noise.
  • MSCOCO images must be downloaded from images.cocodataset.org. If that host changes, the URLs will break.
  • The benchmark is for research on structured reasoning in VLMs. It is not a certification suite for deploying a model.

Licensing

Component License
Decision trees, prompts, predictions, evaluation code MIT (see LICENSE)
GTSRB images Free for research use; cite Stallkamp et al. (2012)
MNIST images CC BY-SA 3.0 (LeCun & Cortes)
CIFAR-10 images No formal license; the authors ask that Krizhevsky (2009) be cited
MSCOCO Annotations CC BY 4.0. Images are not redistributed: each stays under its Flickr uploader's license, so only the official URL is included

You are responsible for following the source datasets' terms when you use their images.

Citation

@misc{mesabah2026myopia,
  title         = {MYOPIA: Understanding the Limits of Tree-Based Reasoning in Vision-Language Models},
  author        = {Mesabah, Islam and Elmansoury, Sary and Gro{\ss}mann, Gerrit and Neigel, Peter and Vollmer, Sebastian J.},
  year          = {2026},
  eprint        = {2610.21573},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  doi           = {10.48550/arXiv.2610.21573},
  url           = {https://arxiv.org/abs/2610.21573}
}

If you use the images, please also cite the source datasets: GTSRB (Stallkamp et al., 2012), MNIST (LeCun et al., 1998), CIFAR-10 (Krizhevsky, 2009), and MSCOCO (Lin et al., 2014).

Downloads last month
78

Paper for IslamMesabah/myopia-benchmark