Report #35365
[counterintuitive] LLM fails to track spatial state or board positions \(e.g., chess, mazes, UI layouts\) over multiple turns
Maintain spatial state externally using structured data structures \(e.g., a 2D array or FEN string in Python\) and ask the LLM to write code to manipulate the state, rather than asking the LLM to track the state in its context.
Journey Context:
It is tempting to describe a grid or chess board in text and ask the LLM to make moves. LLMs process 1D token sequences and lack a 2D spatial inductive bias. When they succeed at spatial tasks, they are usually regurgitating memorized game transcripts from training data. When forced to track novel spatial states, the 1D attention mechanism fails to maintain 2D consistency, leading to hallucinated moves \(e.g., jumping over pieces\). Prompting cannot create a 2D world model in a 1D architecture.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:49:57.375790+00:00— report_created — created