mlsanityData to 7 Oct 2026

Do LLMs Build Spatial World Models? Evidence from Grid-World Maze Tasks

arXiv 2604.10690 ↗First posted 12 Apr 2026cs.AIcited by 2

On the map: World models → World models for language agents

also in 1 more
Abstract (arXiv)

Foundation models have shown remarkable performance across diverse tasks, yet their ability to construct internal spatial world models for reasoning and planning remains unclear. We systematically evaluate the spatial understanding of large language models through maze tasks, a controlled testing context requiring multi-step planning and spatial abstraction. Across comprehensive experiments with Gemini-2.5-Flash, GPT-5-mini, Claude-Haiku-4.5, and DeepSeek-Chat, we uncover significant discrepancies in spatial reasoning that challenge assumptions about LLM planning capabilities. Using chain-of-thought prompting, Gemini achieves 80-86% accuracy on smaller mazes (5x5 to 7x7 grids) with tokenized adjacency representations, but performance collapses to 16-34% with visual grid formats, which is a 2-5x difference, suggesting representation-dependent rather than format-invariant spatial reasoning. We further probe spatial understanding through sequential proximity questions and compositional distance comparisons. Despite achieving 96-99% semantic coverage in reasoning traces, models fail to leverage this understanding for consistent spatial computations, indicating that they treat each question independently rather than building cumulative spatial knowledge. Our findings based on the maze-solving tasks suggest that LLMs do not develop robust spatial world models, but rather exhibit representation-specific and prompting-dependent reasoning that succeeds only under narrow conditions. These results have critical implications for deploying foundation models in applications requiring spatial abstraction.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in World models for language agents, one of 11 directions in World models. Builds on 17 of its 25 references that are in the map. First posted on arXiv 12 Apr 2026.

Builds on

17 of 25 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Transformers Use Causal World Models in Maze-Solving Tasks16 Dec
  2. 2023From task structures to world models: What do LLMs know?6 Oct

Other references · 15

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  2. 2024A Survey on LLM-as-a-Judgecited by 1,384
  3. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
  4. 2022ROSCOE: A Suite of Metrics for Scoring Step-by-Step Reasoningcited by 175
  5. 2024Beyond A*: Better Planning with Transformers via Search Dynamics Bootstrappingcited by 89
  6. 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 48
  7. 2024Can Graph Learning Improve Planning in LLM-based Agents?cited by 42
  8. 2024ACPBench: Reasoning about Action, Change, and Planningcited by 37
  9. 2025AlphaMaze: Enhancing Large Language Models' Spatial Intelligence via GRPOcited by 33
  10. 2024Evaluating the Robustness of Analogical Reasoning in Large Language Modelscited by 31
  11. 2023Structured World Representations in Maze-Solving Transformerscited by 16
  12. 2024Transformers Can Navigate Mazes With Multi-Step Predictioncited by 11
3 more
  1. 2025From Text to Space: Mapping Abstract Spatial Models in LLMs during a Grid-World Navigation Taskcited by 10
  2. 2025Do AI Models Perform Human-like Abstract Reasoning Across Modalities?cited by 10
  3. 2025LogiPlan: A Structured Benchmark for Logical Planning and Relational Reasoning in LLMscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models
  2. 2026From Human Cognition to Neural Activations: Probing the Computational Primitives of Spatial Reasoning in LLMs
  3. 2024Can Large Language Models Create New Knowledge for Spatial Reasoning Tasks?
  4. 2023Can Large Language Models be Good Path Planners? A Benchmark and Investigation on Spatial-temporal Reasoning
  5. 2025Imagine in Space: Exploring the Frontier of Spatial Intelligence and Reasoning Efficiency in Vision Language Models
  6. 2025MazeEval: A Benchmark for Testing Sequential Decision-Making in Language Models
  7. 202511Plus-Bench: Demystifying Multimodal LLM Spatial Reasoning with Cognitive-Inspired Analysis
  8. 2025Spatial Reasoning in Multimodal Large Language Models: A Survey of Tasks, Benchmarks and Methods