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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- spatial-reasoning
|
| 9 |
+
- map-understanding
|
| 10 |
+
- multi-choice-qa
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: t1_direct
|
| 13 |
+
data_files:
|
| 14 |
+
- split: test
|
| 15 |
+
path: data/t1_direct.jsonl
|
| 16 |
+
- config_name: t1_oracle
|
| 17 |
+
data_files:
|
| 18 |
+
- split: test
|
| 19 |
+
path: data/t1_oracle.jsonl
|
| 20 |
+
- config_name: t2_direct
|
| 21 |
+
data_files:
|
| 22 |
+
- split: test
|
| 23 |
+
path: data/t2_direct.jsonl
|
| 24 |
+
- config_name: t2_oracle
|
| 25 |
+
data_files:
|
| 26 |
+
- split: test
|
| 27 |
+
path: data/t2_oracle.jsonl
|
| 28 |
+
- config_name: t3_direct
|
| 29 |
+
data_files:
|
| 30 |
+
- split: test
|
| 31 |
+
path: data/t3_direct.jsonl
|
| 32 |
+
- config_name: t3_oracle
|
| 33 |
+
data_files:
|
| 34 |
+
- split: test
|
| 35 |
+
path: data/t3_oracle.jsonl
|
| 36 |
+
- config_name: t4_direct
|
| 37 |
+
data_files:
|
| 38 |
+
- split: test
|
| 39 |
+
path: data/t4_direct.jsonl
|
| 40 |
+
- config_name: t4_oracle
|
| 41 |
+
data_files:
|
| 42 |
+
- split: test
|
| 43 |
+
path: data/t4_oracle.jsonl
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Map-based Spatial Reasoning Benchmark
|
| 47 |
+
|
| 48 |
+
A multi-view map-based spatial reasoning benchmark. Each row is one multiple-choice
|
| 49 |
+
question instance over a registered map image; models must answer with a single option
|
| 50 |
+
letter. Four tasks (T1–T4), four base-map views, and controlled evidence conditions
|
| 51 |
+
(direct / oracle) and world perturbations (transform / world layers) allow fine-grained
|
| 52 |
+
analysis of spatial reasoning robustness.
|
| 53 |
+
|
| 54 |
+
## Task overview
|
| 55 |
+
|
| 56 |
+
| Task | Question type | Description |
|
| 57 |
+
|---|---|---|
|
| 58 |
+
| T1 | direction / angular_order / egocentric_side / dual_anchor_direction | Cardinal direction, clockwise angular ordering, and egocentric side between colored point markers |
|
| 59 |
+
| T2 | composite_euclidean_distance / distance ranking | Comparing metric distances between marked points |
|
| 60 |
+
| T3 | segment_building_count (subtasks: `route`, `seg`) | Counting first-row buildings along a directed route segment |
|
| 61 |
+
| T4 | waypoint_ordering | Ordering of waypoints along a route |
|
| 62 |
+
|
| 63 |
+
## Sample counts (per condition)
|
| 64 |
+
|
| 65 |
+
`direct` and `oracle` contain the same number of rows (65,200 in total = 32,600 x 2).
|
| 66 |
+
|
| 67 |
+
### T1 — 10,000
|
| 68 |
+
|
| 69 |
+
Base question set = 400 instances per view. 7 geometric transform variants (rot90,
|
| 70 |
+
rot180, rot270, mirror_h, mirror_h_rot90/180/270) replicate the base set.
|
| 71 |
+
|
| 72 |
+
| view | composition | rows |
|
| 73 |
+
|---|---|---|
|
| 74 |
+
| sat | base 400 + 7 transforms x 400 | 3,200 |
|
| 75 |
+
| wprd01 | base 400 + 7 transforms x 400 | 3,200 |
|
| 76 |
+
| blank | base 400 + 7 transforms x 400 | 3,200 |
|
| 77 |
+
| webrd04 | base 400 only | 400 |
|
| 78 |
+
| **total** | | **10,000** |
|
| 79 |
+
|
| 80 |
+
### T2 — 10,000
|
| 81 |
+
|
| 82 |
+
Same structure as T1 (400 base instances, same view/transform coverage): 3,200 x 3 + 400 = **10,000**.
|
| 83 |
+
|
| 84 |
+
### T3 — 4,600
|
| 85 |
+
|
| 86 |
+
Base question set = 200 instances per view; world layer has 2 variants
|
| 87 |
+
(`intervention_001`, `sham_001`) with 200 each. The `blank` view is not used for T3:
|
| 88 |
+
the task is building-footprint recognition, which is only meaningful on imagery that
|
| 89 |
+
actually shows buildings (satellite / map tiles).
|
| 90 |
+
|
| 91 |
+
| view | composition | rows |
|
| 92 |
+
|---|---|---|
|
| 93 |
+
| sat | base 200 + 7 transforms x 200 + 2 world x 200 | 2,000 |
|
| 94 |
+
| wprd01 | base 200 + 7 transforms x 200 + 2 world x 200 | 2,000 |
|
| 95 |
+
| webrd04 | base 200 + 2 world x 200 | 600 |
|
| 96 |
+
| **total** | | **4,600** |
|
| 97 |
+
|
| 98 |
+
### T4 — 8,000
|
| 99 |
+
|
| 100 |
+
Base question set = 400 instances; world layer = 2 variants x 200. The `blank` view is
|
| 101 |
+
not used for T4: the task is road/waypoint recognition on the route network, which
|
| 102 |
+
requires imagery that actually depicts roads (satellite / map tiles).
|
| 103 |
+
|
| 104 |
+
| view | composition | rows |
|
| 105 |
+
|---|---|---|
|
| 106 |
+
| sat | base 400 + 7 transforms x 400 + 2 world x 200 | 3,600 |
|
| 107 |
+
| wprd01 | base 400 + 7 transforms x 400 + 2 world x 200 | 3,600 |
|
| 108 |
+
| webrd04 | base 400 + 2 world x 200 | 800 |
|
| 109 |
+
| **total** | | **8,000** |
|
| 110 |
+
|
| 111 |
+
## Dimensions
|
| 112 |
+
|
| 113 |
+
| Field | Values | Meaning |
|
| 114 |
+
|---|---|---|
|
| 115 |
+
| `view` | `sat` / `webrd04` / `wprd01` / `blank` | Base map style: satellite imagery / road map / place-label map / blank background. **Note:** the `webrd04` (road-map) view is only provided for the `base` layer — its tiles contain textual labels (e.g., Chinese characters), which would become unreadable or mirrored after rotation/flipping, so no `transform` variants are generated for this view |
|
| 116 |
+
| `layer` | `base` / `transform` / `world` | Original scene, geometric transform stress test, or world intervention |
|
| 117 |
+
| `variant` | `rot90`, `rot180`, `rot270`, `mirror_h`, `mirror_h_rot*` (transform); `intervention_001`, `sham_001` (world); `null` (base) | Sub-variant of the layer. Note: transform variants have rotated/flipped map frames — "north is up" applies to the transformed image |
|
| 118 |
+
| `condition` | `direct` / `oracle` | `oracle` overlays explicit task annotations (e.g., route segments, measured rays); `direct` does not |
|
| 119 |
+
|
| 120 |
+
## Row schema
|
| 121 |
+
|
| 122 |
+
```json
|
| 123 |
+
{
|
| 124 |
+
"id": "e5f31604234e_sat_oracle",
|
| 125 |
+
"task_id": "T1",
|
| 126 |
+
"layer": "base",
|
| 127 |
+
"variant": null,
|
| 128 |
+
"view": "sat",
|
| 129 |
+
"condition": "oracle",
|
| 130 |
+
"question_type": "angular_order",
|
| 131 |
+
"question": "From the green point, sweeping clockwise from north, ...",
|
| 132 |
+
"options": ["A. yellow, red", "B. red, yellow"],
|
| 133 |
+
"answer": "B",
|
| 134 |
+
"answer_letter": "B",
|
| 135 |
+
"system_prompt": "You are evaluating spatial reasoning ...",
|
| 136 |
+
"images": ["images/t1/c_06d46000d7/s_429d01__q_e5ebc72207__base__oracle__sat_oracle_q4.png"],
|
| 137 |
+
"meta": {
|
| 138 |
+
"case_id": "c_06d46000d7",
|
| 139 |
+
"scheme": "s_429d01",
|
| 140 |
+
"instance_id": "q_e5ebc72207",
|
| 141 |
+
"tile_type": "sat",
|
| 142 |
+
"subtask": null
|
| 143 |
+
}
|
| 144 |
+
}
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
- `options` are pre-shuffled; the correct letter is `answer_letter`.
|
| 148 |
+
- Evaluation is exact match on the option letter for all rows.
|
| 149 |
+
- Multiple-choice prompt format: append `Options:\n<options>` and instruct the model to
|
| 150 |
+
output only the letter (see `system_prompt`).
|
| 151 |
+
|
| 152 |
+
## Image naming
|
| 153 |
+
|
| 154 |
+
Images live under `images/{task}/{case_code}/`. Directory segments `case_id`, `scheme`
|
| 155 |
+
and `question_dir` are anonymized with deterministic short codes (`c_*`, `s_*`, `q_*`);
|
| 156 |
+
the remaining segments (`layer`, `condition`, original file name) are kept verbatim, e.g.
|
| 157 |
+
|
| 158 |
+
```
|
| 159 |
+
images/t1/c_06d46000d7/s_429d01__q_e5ebc72207__base__oracle__sat_oracle_q4.png
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
The same source image may be referenced by several rows (e.g., shared across transform
|
| 163 |
+
variants or views); 65,200 rows reference 20,200 unique image files.
|
| 164 |
+
|
| 165 |
+
## Loading
|
| 166 |
+
|
| 167 |
+
```python
|
| 168 |
+
from datasets import load_dataset
|
| 169 |
+
|
| 170 |
+
ds = load_dataset("<repo_id>", "t1_oracle", split="test")
|
| 171 |
+
row = ds[0]
|
| 172 |
+
img = Image.open(row["images"][0]) # or load from the local repo root
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
## Anonymization note
|
| 176 |
+
|
| 177 |
+
Identifiers of the source map data (case / scheme / question directory) are replaced by
|
| 178 |
+
deterministic hash codes and are not reversible from this repository.
|