Spatial Reasoning in AI Models, Taken Apart
Grid puzzles that people solve almost perfectly show where language and vision models still break

People in our study solved 98.0% of the puzzles in this post. An easy one took them about 11 seconds and the hardest ones a little over two minutes. The best model we have tested, GPT-6.1 Sol, solves 83.6% of them. That sounds close to human. On the hardest level, though, it solves 49.4%, while people solve 94.5%.
Solving one of these puzzles takes several separate skills, and a single accuracy number hides which of them a model lacks. So we took the task apart and asked four questions.
Can models read the board, especially from an image?
Can they keep track of their own line?
Can they follow the rules?
Do they try harder when a puzzle is harder?
This post brings together key results from three of our papers, listed below. BibTeX entries for all three are on the project website.
Lars Benedikt Kaesberg, Jan Philip Wahle, Terry Ruas, Bela Gipp. SPaRC: A Spatial Pathfinding Reasoning Challenge. EMNLP 2025.
Lars Benedikt Kaesberg, Tianyu Yang, Niklas Bauer, Terry Ruas, Jan Philip Wahle, Bela Gipp. Mind the Gap Between Spatial Reasoning and Acting! Step-by-Step Evaluation of Agents With Spatial-Gym. arXiv 2026.
Lars Benedikt Kaesberg, Tianyu Yang, Florian Valentin Wunderlich, Terry Ruas, Daniel Kurzawe, Jan Philip Wahle, Bela Gipp. Is Visual Prompting All You Need? Studying VLM Spatial Reasoning under Progressive Visual Scaffolds. Findings of EMNLP 2026.
Blog post by Lars Benedikt Kaesberg and Jan Philip Wahle.
How the puzzle works
Every puzzle is a small board of green cells with grey lanes running between them. You draw one line along those lanes. It begins at the large circle on the edge of the board and ends at the exit, a short stub that sticks out of the edge. The line may turn at any corner, but it may never cross itself, leave the lanes or cut through a cell.
The symbols on the board decide which lines count. The puzzle below has two dots, two gaps and four colored stones. A dot must lie on the line. A gap, drawn as a green bridge across a lane, blocks that part of the lane. Stones of different colors must end up in different regions, where a region is a group of cells that the line closes off from the rest of the board.

The middle line looks reasonable. It passes both dots and never touches a gap. But it leaves one big region with three stone colors, so it breaks the stone rule. The solution on the right takes a longer route down the middle of the board. That route gives the purple stone, the red stones and the black stone a region each.
This puzzle uses three kinds of symbols. The full benchmark has seven.

People solved the puzzles by drawing in an app. Models usually get the board as text instead, as a grid of strings like the one below.
This is the puzzle from Figure 1. Positions are written as (x, y), with x counted from the left and y from the top, both starting at 0. S marks the start at (0, 3) and E the exit at (6, 5). A . is a dot, G a gap and o-R a red stone. Cells sit where both coordinates are odd, and everything else is part of the lanes. The model explains its reasoning and then writes its line as a list of positions, one step at a time. The solution starts with (0, 3), (0, 2), (0, 1), (0, 0), (1, 0) and goes on from there.
The data behind this post, in brief.
1,000 puzzles from SPaRC, inspired by the video game The Witness. 500 are for training and 500 for testing.
Boards between 2 and 6 cells wide and tall, generated at random and solved by brute force. Each puzzle has between one and 50 solutions, and all of them are stored. An answer counts only if it matches one exactly.
Five difficulty levels, with 86, 118, 121, 86 and 89 test puzzles.
A human study of 100 puzzles, each solved by three people.
Every model falls off a cliff
Accuracy on the easy levels says little. The interesting part is what happens as the puzzles get harder.

People stay near the top on every level. Every model drops at some point. When we published SPaRC in 2025, the best model we tested, o4-mini, solved 15.8% overall and 1.1% of the hardest puzzles. GPT-6.1 Sol still solves every level-1 puzzle and 82.6% of level 4, then falls to 49.4% on level 5. The four questions below go after the reasons.
Q1. Can models read the board?
Perception is the easiest skill to get wrong without noticing, so we start there. In SPaRC, we showed o4-mini a picture of the puzzle instead of the text grid. With no worked example in either case, its accuracy fell from 12.6% to 5.6%. In Spatial-Gym, the vision model Qwen3-VL-32B solved 10.2% of the puzzles from text but only 2.8% from images. Its text-only sibling Qwen3-32B solved 10.6%, so the vision part of the model was not the problem. The images were.
The visual scaffolds study kept every puzzle fixed and changed only how it was drawn. Each version adds one kind of help.

For the strongest model we tested, the drawing alone changed accuracy by 34.0 points. Qwen 3.5 397B solved 14.4% of the 500 test puzzles from the original image and 48.4% from the text-symbols version. Qwen 3.5 27B went from 8.2% to 40.0% with cell coordinates, and Gemma 4 31B from 2.2% to 26.2%. The two weakest models, Gemma 3 27B and Mistral Small 3.2, stayed below 1% whatever we drew.

Two things in this chart surprised us. The best drawing beat the text grid, 48.4% against 38.0%, so text is not an upper bound for this model. And the kinds of help do not simply add up. Row and column numbers alone barely moved accuracy (16.8%), while S and E markers alone more than doubled it (32.6%).
We then asked the model to write out the board cell by cell, without solving it. On the original image, Qwen 3.5 397B read 65% of the gaps as plain lane, and it identified only 48% of the exits correctly. With text symbols, it read every start, exit and gap correctly. Across all models and drawings, the share of boards read without a single mistake moved closely with task accuracy, with a correlation of r = 0.96. That does not prove that reading decides success, since a stronger model can be better at both.

Not every addition helped. Grid lines with an empty margin where the labels would go, but no labels in it, pushed every tested model below the plain image. Qwen 3.5 397B fell from 14.4% to 4.4%, and many of its start and end positions were off by one, as if it counted the empty margin as part of the board. On rotated boards the printed coordinates became a problem of their own. Qwen 3.5 397B's share of perfectly read boards dropped by 33.4 points. These drawings rely on knowing the board structure in advance, so we see them as a way to diagnose a model rather than a general prompting trick.
In short, reading the board from an image is a large problem of its own. A clearer drawing helps the strong models a lot and the weak ones not at all.
Q2. Can models keep track of their own line?
Even from text, many answers fail before any rule is checked. The model writes its line as a list of positions, and that list has to describe one connected line from start to exit along the lanes. There are four ways to get this wrong, shown in Figure 7 on the example puzzle.

The first is a wrong start or end. The line begins somewhere other than the start circle or stops before the exit. The second is a line that breaks apart. Every step in the list must move to a neighboring position, so a jump from (2, 2) straight to (2, 5) leaves a hole in the line. The third is a line that crosses itself by coming back to a position it has already used. The fourth is a line that runs through a cell. In the text grid this means the list contains a position where both coordinates are odd, such as (3, 1). That is the middle of a cell, and the line has to go around cells on the lanes.
In SPaRC, 59.2% of o4-mini's answers had at least one of these problems, and 93.6% of GPT-4.1's. The most common one, for six of the seven models we tested, was running through a cell.

The reasoning traces show where this comes from. We read 48 traces of DeepSeek R1 Distill Llama 70B by hand, all from answers with a valid line that still broke a rule. In 26 of them the model misread the grid or its coordinates, and in 23 it skipped several steps at once. Writing a long list of coordinates without losing track of where you are is hard for a language model.
Spatial-Gym removes that bookkeeping. Each puzzle becomes a Gymnasium environment, and the model draws the line one move at a time.

At every step the model sees the board, its position and the legal moves. It picks one move, up, down, left or right, and the environment updates the board. Moves that would break the line are never offered. With backtracking switched on, the model can also step back to where it came from. An episode ends at the exit, where all rules are checked, at a dead end, or after 100 steps.
Removing the bookkeeping helped the models that struggled with it. Qwen 3 32B solved 5.2% when it wrote the whole line at once and 10.6% when it moved step by step. It hurt the strongest model. GPT-OSS 120B dropped from 21.6% to 16.0%. Step by step it solved 52.3% of the level-1 puzzles but only 1.1% of the level-5 puzzles. Strong models rarely wrote broken lines in the first place, so they had little to gain. For them, deciding one move at a time seems to get in the way of planning the whole line.
In short, keeping track of a long line is a major source of errors, but taking that job away does not make a strong model better.
Q3. Can models follow the rules?
Once the line is valid and the board is read correctly, the rules remain. Two simple baselines in Spatial-Gym make this concrete. A* search finds the shortest way from start to exit and ignores the rules. It always reaches the exit and solves 6.4% of the puzzles. A random walk solves 2.4%.

Backtracking shows the same gap from another side. With the undo move, GPT-OSS 120B reached the exit more often (94% instead of 85%) but solved fewer puzzles (10.2% instead of 16.0%). The hard part is getting to the exit with every rule satisfied.
The reasoning traces point the same way. 36 of the 48 traces we read contained a logical fallacy. The rules also differ a lot in difficulty. On a set of 50 test puzzles with gaps as the only rule, o4-mini solved 84.0%. On a set with polyominoes and ylops, it solved 4.0%. A gap tells you right away that a lane is closed. A missed dot only shows once the line is complete, and the shape rules depend on the whole region that the line closes off.
Better drawings do not fix this. Even with text symbols on the image, accuracy still fell sharply on level-4 and level-5 puzzles. The hardest level is also where GPT-6.1 Sol solves about half of what people solve.
In short, moving through the grid is easy. Satisfying several interacting rules at once is where models fail.
Q4. Do models try harder when a puzzle is harder?
People in our study slowed down as the puzzles got harder. Their mean time per puzzle went from 10.7 seconds on level 1 to 131.5 seconds on level 5, more than 12 times longer. The two open reasoning models we could measure did not slow down. QwQ 32B wrote about 14,400 tokens on level-1 puzzles and about 13,100 on level-5 puzzles. DeepSeek R1 Distill Llama 70B wrote about 30% more on the hardest level.

The same pattern shows up in the lines themselves. In Spatial-Gym, correct solutions get longer as puzzles get harder, but the lines the models drew barely did. The strongest models also rarely used the undo move. And in 25 of the 48 traces we read by hand, the model noticed a mistake or a dead end before answering, and answered anyway.
Effort does matter when it is spent. Step by step, Qwen 3 32B solved 10.6% with its reasoning mode switched on and 2.2% with it switched off. Extra attempts help too, but mostly where the model is already decent. With eight attempts per puzzle, o4-mini's accuracy rose from 47.7% to 80.2% on level 1 and from 1.1% to only 3.4% on level 5.
In short, models gain from thinking longer, but on their own they barely think longer when a puzzle needs it.
Key takeaways
Reading the board from an image is a separate and large problem. A clearer drawing added up to 34.0 points for the strongest model.
Writing out a valid line is a major source of errors. 59.2% of o4-mini's answers were broken before any rule was checked.
Moving through the grid is easy, since a search that ignores the rules always reaches the exit. Following interacting rules is not.
Models barely spend more effort on harder puzzles, while people spend more than 12 times as long.
What this means for building and testing models
A single accuracy number mixes all four skills. When we separated them, each one failed in its own way, and each failure points to a different fix. A clearer drawing helped the strong vision models but not the weak ones. Moving step by step helped the models that lost track of their line but not the strongest one. Extra attempts helped on easy puzzles and barely on the hardest ones.
For anyone building vision benchmarks, the drawing matters as much as the task. With a single image format, a benchmark may measure perception when it was meant to measure reasoning. Reporting text and image versions side by side makes the difference visible.
For anyone comparing models, look at the hardest level. An overall score of 83.6% and a hardest-level score of 49.4% describe the same model. The gap between those two numbers is where the open problems are.
Epilogue. Try it yourself
You can play the puzzles in the browser at sparc.gipplab.org, where the leaderboard also lives. To evaluate a model with Inspect AI, run the two commands below.
The puzzles are ordered round-robin by level, so --limit 50 gives 10 puzzles per level. To try the step-by-step setting, install Spatial-Gym with pip install Spatial-Gym and run the code below.
The dataset is on Hugging Face, and the code is on GitHub for SPaRC and Spatial-Gym.
Unless otherwise noted, all images are by the authors.
About the authors
Lars Benedikt Kaesberg is a researcher at the University of Göttingen, Germany. His webpage is larskaesberg.de.
Jan Philip Wahle is a researcher at the University of Göttingen, Germany. His webpage is jpwahle.com.








