File size: 4,187 Bytes
966c7b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
configs:
  - config_name: all
    description: All puzzle types combined.
    data_files:
      - split: train
        path: puzzle_all_train.jsonl
      - split: test
        path: puzzle_all_test.jsonl
  - config_name: dots
    description: Puzzles primarily featuring the dot mechanic.
    data_files:
      - split: train
        path: puzzle_dots_train.jsonl
      - split: test
        path: puzzle_dots_test.jsonl
  - config_name: dots_stars_polys
    description: Puzzles combining dots, stars, and polyominoes.
    data_files:
      - split: train
        path: puzzle_dots_stars_polys_train.jsonl
      - split: test
        path: puzzle_dots_stars_polys_test.jsonl
  - config_name: gaps
    description: Puzzles primarily featuring the line gap mechanic.
    data_files:
      - split: train
        path: puzzle_gaps_train.jsonl
      - split: test
        path: puzzle_gaps_test.jsonl
  - config_name: gaps_dots_triangles
    description: Puzzles combining gaps, dots, and triangles.
    data_files:
      - split: train
        path: puzzle_gaps_dots_triangles_train.jsonl
      - split: test
        path: puzzle_gaps_dots_triangles_test.jsonl
  - config_name: polys
    description: Puzzles primarily featuring polyomino shapes.
    data_files:
      - split: train
        path: puzzle_polys_train.jsonl
      - split: test
        path: puzzle_polys_test.jsonl
  - config_name: polys_ylops
    description: Puzzles featuring polyomino shapes (reversed color logic - 'ylop').
    data_files:
      - split: train
        path: puzzle_polys_ylops_train.jsonl
      - split: test
        path: puzzle_polys_ylops_test.jsonl
  - config_name: stars
    description: Puzzles primarily featuring the star mechanic.
    data_files:
      - split: train
        path: puzzle_stars_train.jsonl
      - split: test
        path: puzzle_stars_test.jsonl
  - config_name: stones
    description: Puzzles primarily featuring the stone (separation) mechanic.
    data_files:
      - split: train
        path: puzzle_stones_train.jsonl
      - split: test
        path: puzzle_stones_test.jsonl
  - config_name: stones_stars
    description: Puzzles combining stones and stars.
    data_files:
      - split: train
        path: puzzle_stones_stars_train.jsonl
      - split: test
        path: puzzle_stones_stars_test.jsonl
  - config_name: triangles
    description: Puzzles primarily featuring the triangle mechanic.
    data_files:
      - split: train
        path: puzzle_triangles_train.jsonl
      - split: test
        path: puzzle_triangles_test.jsonl
size_categories:
- 1K<n<10K
---
<p align="center">
  <img src="logo.png" alt="SPaRC Logo" width="128"/>
</p>

# SPaRC Dataset

[Website](https://sparc.gipplab.org/) • [Solver](https://github.com/lkaesberg/SPaRCSolver) • [Generator](https://github.com/lkaesberg/SPaRCPuzzleGenerator)


A grid-based puzzle dataset for benchmarking LLMs spatial reasoning capabilities.

## Data Schema

Each record (JSON) includes:

* `id` (string): unique puzzle identifier
* `difficulty_level` (int) & `difficulty_score` (float)
* `grid_size`: `{ "height": H, "width": W }`
* `polyshapes`: JSON string mapping shape IDs to binary grids
* `puzzle_array`: 2D array with cell codes (e.g., `S`, `E`, `+`, `P-O-112`)
* `solution_count` (int) and `solutions` list (with `index`, `path`, `pathLength`)
* `text_visualization`: YAML-style summary

## Sample Entry

```json
{
  "id": "10e68dc3a6fbfcdf",
  "difficulty_level": 3,
  "difficulty_score": 2.3261,
  "grid_size": {"height":3,"width":4},
  "polyshapes":"{\"112\":[[0,1,...]]}",
  "puzzle_array":[
    ["+","+","+","E"],
    ["+","P-O-112","+","o-O"],
    ["S","N","+","G"]
  ],
  "solution_count": 10,
  "solutions": [ { "index":0, "pathLength":34, ... } ],
  "text_visualization": "..."
}
```

## Citation Information
If you use the dataset in any way, please cite the following paper. Preprint: https://arxiv.org/abs/2505.16686

```bib
@article{kaesberg2025sparc,
  title={SPaRC: A Spatial Pathfinding Reasoning Challenge},
  author={Kaesberg, Lars Benedikt and Wahle, Jan Philip and Ruas, Terry and Gipp, Bela},
  journal={arXiv preprint arXiv:2505.16686},
  year={2025}
}
```