From Pixels to BFS: High Maze Accuracy Does Not Imply Visual Planning

Alberto G. Rodriguez Salgado
3/27/2026
cs.LGcs.CV

No official code found. Best implementation: alrod97/LLMs_mazes (8 stars, last commit 2026-04-10).

Abstract

How do multimodal models solve visual spatial tasks -- through genuine planning, or through brute-force search in token space? We introduce \textsc{MazeBench}, a benchmark of 110 procedurally generated maze images across nine controlled groups, and evaluate 16 model configurations from OpenAI, Anthropic, Google, and Alibaba. GPT-5.4 solves 91\% and Gemini 3.1 Pro 79\%, but these scores are misleading: models typically translate images into text grids and then enumerate paths step by step, consuming 1,710--22,818 tokens per solve for a task humans do quickly. Without added reasoning budgets, all configurations score only 2--12\%; on 20$\times$20 ultra-hard mazes, they hit token limits and fail. Qualitative traces reveal a common two-stage strategy: image-to-grid translation followed by token-level search, effectively BFS in prose. A text-grid ablation shows Claude Sonnet 4.6 rising from 6\% on images to 80\% when given the correct grid, isolating weak visual extraction from downstream search. When explicitly instructed not to construct a grid or perform graph search, models still revert to the same enumeration strategy. \textsc{MazeBench} therefore shows that high accuracy on visual planning tasks does not imply human-like spatial understanding.

View on arXivView PDF

Code Implementations(1)

alrod97/LLMs_mazesCommunity69%

MazeBench: Can multimodal LLMs solve visual mazes, or do they just brute-force in token space? Benchmark, 110-maze eval set, and paper (arXiv:2603.26839).

80TeX, HTMLMar 16, 20266 months ago

Similar Papers

Cite this paper

@article{salgado2026from,
  title  = {From Pixels to BFS: High Maze Accuracy Does Not Imply Visual Planning},
  author = {Alberto G. Rodriguez Salgado},
  year   = {2026},
  eprint = {2603.26839},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.26839v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.26839.svg)](https://codeofpaper.com/paper/2603.26839)

Discussion