Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
- image-classification
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- maze
|
| 10 |
+
- spatial-reasoning
|
| 11 |
+
- multimodal
|
| 12 |
+
- vision-language
|
| 13 |
+
- benchmark
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# MazeBench
|
| 19 |
+
|
| 20 |
+
A large-scale visual maze reasoning dataset for evaluating and training multimodal language models.
|
| 21 |
+
|
| 22 |
+
**Paper:** [From Pixels to BFS: High Maze Accuracy Does Not Imply Visual Planning](https://arxiv.org/abs/2603.26839)
|
| 23 |
+
|
| 24 |
+
**Code:** [github.com/alrod97/LLMs_mazes](https://github.com/alrod97/LLMs_mazes)
|
| 25 |
+
|
| 26 |
+
## Overview
|
| 27 |
+
|
| 28 |
+
MazeBench contains ~65,000 procedurally generated maze images spanning 8 structural families, 5 grid sizes (5x5 to 20x20), and balanced reachable/unreachable splits. Each record includes a maze PNG, a chat-formatted prompt, and a ground-truth JSON answer with the shortest path.
|
| 29 |
+
|
| 30 |
+
## Splits
|
| 31 |
+
|
| 32 |
+
| Split | Records | Purpose |
|
| 33 |
+
| --- | ---: | --- |
|
| 34 |
+
| `train` | ~50,000 | Training |
|
| 35 |
+
| `val_iid` | ~2,000 | In-distribution validation (same families and palettes as train) |
|
| 36 |
+
| `val_ood` | ~4,000 | Out-of-distribution validation (held-out palettes and families) |
|
| 37 |
+
| `test` | ~9,000 | Held-out evaluation |
|
| 38 |
+
|
| 39 |
+
## Maze Families
|
| 40 |
+
|
| 41 |
+
- **sanity** — open corridors, minimal branching
|
| 42 |
+
- **bottleneck** — narrow chokepoints
|
| 43 |
+
- **dead_ends** — many dead-end branches
|
| 44 |
+
- **snake** — long winding corridors
|
| 45 |
+
- **symmetric** — mirror-symmetric layouts
|
| 46 |
+
- **trap** — trap tiles that must be avoided
|
| 47 |
+
- **near_goal_blocked** — goal is close but path is indirect
|
| 48 |
+
- **near_start_blocked** — start area has limited exits
|
| 49 |
+
|
| 50 |
+
## Record Format
|
| 51 |
+
|
| 52 |
+
Each JSONL line contains:
|
| 53 |
+
|
| 54 |
+
```json
|
| 55 |
+
{
|
| 56 |
+
"id": "train_00001",
|
| 57 |
+
"image_path": "train/images/train_00001.png",
|
| 58 |
+
"messages": [
|
| 59 |
+
{"role": "system", "content": "..."},
|
| 60 |
+
{"role": "user", "content": "..."},
|
| 61 |
+
{"role": "assistant", "content": "{\"reachable\": true, \"shortest_path_length\": 12, \"path\": [\"R\",\"D\",...]}"}
|
| 62 |
+
],
|
| 63 |
+
"meta": {
|
| 64 |
+
"family": "bottleneck",
|
| 65 |
+
"grid_size": [10, 10],
|
| 66 |
+
"reachable": true,
|
| 67 |
+
"shortest_path_length": 12,
|
| 68 |
+
"palette": "forest"
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Directory Structure
|
| 74 |
+
|
| 75 |
+
```
|
| 76 |
+
train/
|
| 77 |
+
train.jsonl
|
| 78 |
+
images/
|
| 79 |
+
train_00001.png
|
| 80 |
+
...
|
| 81 |
+
val_iid/
|
| 82 |
+
val_iid.jsonl
|
| 83 |
+
images/
|
| 84 |
+
val_ood/
|
| 85 |
+
val_ood.jsonl
|
| 86 |
+
images/
|
| 87 |
+
test/
|
| 88 |
+
test.jsonl
|
| 89 |
+
images/
|
| 90 |
+
metadata.json
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
## Usage
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
from datasets import load_dataset
|
| 97 |
+
|
| 98 |
+
ds = load_dataset("albertoRodriguez97/MazeBench")
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
Or download directly:
|
| 102 |
+
|
| 103 |
+
```bash
|
| 104 |
+
pip install huggingface_hub
|
| 105 |
+
huggingface-cli download albertoRodriguez97/MazeBench --repo-type dataset --local-dir dataset/
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
## Citation
|
| 109 |
+
|
| 110 |
+
```bibtex
|
| 111 |
+
@article{rodriguezsalgado2026mazebench,
|
| 112 |
+
title = {From Pixels to BFS: High Maze Accuracy Does Not Imply Visual Planning},
|
| 113 |
+
author = {Rodriguez Salgado, Alberto},
|
| 114 |
+
journal = {arXiv preprint arXiv:2603.26839},
|
| 115 |
+
year = {2026},
|
| 116 |
+
}
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
## License
|
| 120 |
+
|
| 121 |
+
MIT
|