Reproduce “Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Maggie Bai, Ava Kim Cohen, Eleanor Koss, Charlie Lichtenbaum

A study investigated the spatial reasoning abilities of Large Language Models (LLMs) when processing purely text-based grid inputs, finding a pervasive fragility and rapid performance degradation with increasing task complexity and grid size. The research quantitatively showed LLMs struggle with fundamental spatial comprehension, with Anthropic models generally outperforming OpenAI models but still exhibiting substantial accuracy loss.

Key insights

  • LLM spatial reasoning exhibits significant fragility and unreliability, with performance rapidly deteriorating as task complexity and grid dimensions increase, indicating a fundamental limitation.
  • Errors are not solely due to simple miscounting but also involve deeper issues like inconsistent internal board state understanding, mathematical calculation failures, and struggles with non-traditional spatial orientations.
  • Input tokenization critically influences LLM interpretation of structured text, where certain formatting schemes can either significantly improve or hinder a model's ability to process spatial information.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.