INQUIRING LINE

Why can an AI nail distances and angles on a floor plan but still get lost finding a path through the building?

Do language models lack the hierarchical spatial representations needed for planning?

This explores whether language models struggle with planning tasks like routing through a building because they lack a structured internal map of space, and whether that map needs layers of abstraction, as opposed to simply needing more thinking time.


This explores whether language models fail at spatial planning because they lack a structured internal map, particularly one with layers running from coarse to fine, rather than because they don't think long enough. The corpus gives a fairly clear answer on the first half: the problem looks like missing representation, not missing compute. On the 'hierarchical' half, the evidence is suggestive but indirect.

The sharpest evidence comes from floorplan tests. When 15 models were given 2,000 indoor layouts, they computed distances and angles correctly but broke down on combining overlapping areas, irregular room shapes, and multi-step path planning Can language models reason reliably about indoor spatial layouts?. The telling detail is what happens when you give reasoning models more time to think. They improve a lot on the geometry problems but barely improve on the route-planning ones Why do reasoning models fail at spatial planning tasks?. If thinking longer fixes one kind of problem and not the other, the bottleneck isn't effort. The model doesn't seem to hold a single, consistent picture of the layout that it could plan over. It can compute pieces of it but can't hold the whole floor together.

For why hierarchy might matter, the strongest clue comes from outside language models. In a vision-based planning system, giving each level of a hierarchy its own more abstract representation, instead of having all levels share one, raised maze navigation success from 18% to 73% Does each hierarchy level need its own latent space?. The higher levels could judge possible futures in terms closer to the goal ('get to the east wing') without getting bogged down in step-by-step detail. That is the kind of coarse-to-fine map the floorplan failures suggest language models are missing. Note that this is an analogy across domains. The corpus doesn't directly test whether LLMs lack hierarchical spatial maps specifically.

One result cuts against a simple 'LLMs can't do structure' story. Language models do spontaneously learn rich geometric structure in their internal activations for grammar, encoding both the type and the direction of relationships between words as positions and angles How do language models encode syntactic relations geometrically?. So the ability to build structured internal geometry exists. What may be missing is training pressure to build it for physical space, because text rarely forces a model to keep a consistent layout in mind.

That points to the more hopeful part of the corpus: you may be able to supply that pressure through training data rather than by redesigning the model. Inserting tokens that carry future information into training text improves planning without changing the model's architecture Can embedding future information in training data improve planning?. Training models to predict 'what happens next' across millions of agent interactions produces language-based world models that transfer across domains Can language models learn to simulate agent environments?. The open question the corpus leaves you with is whether these approaches would grow the layered spatial maps that planning seems to need, or just teach better shortcuts.


Sources 6 notes

Can language models reason reliably about indoor spatial layouts?

Testing 15 models on 2,000 floorplans reveals they handle simple metrics like distance and angle correctly but collapse on area unions, irregular polygons, and multi-step path planning. Failures appear rooted in lacking unified internal spatial models rather than insufficient computation.

Why do reasoning models fail at spatial planning tasks?

Reasoning-focused models gain substantially on geometric union tasks with extended inference but show only modest improvements on multi-step spatial planning. This divergence suggests the planning bottleneck is representational, not computational—models lack coherent internal layouts to reason over.

Does each hierarchy level need its own latent space?

H-JEPA improves Visual AntMaze planning from 18% to 73% success by giving each hierarchy level a distinct, more abstract latent space rather than sharing one. This per-level abstraction lets higher levels score candidate futures in abstract space better matched to goal-like objectives.

How do language models encode syntactic relations geometrically?

The Polar Probe shows LLMs represent syntactic type and direction through both distance and angular position between embeddings, nearly doubling accuracy over distance-only methods. This demonstrates neural networks spontaneously learn structured, symbolic-compatible geometry.

Can embedding future information in training data improve planning?

TRELAWNEY augments training data with special tokens encapsulating future information, allowing models to learn goal-conditioned generation using standard infrastructure. Results show improved planning, algorithmic reasoning, and story generation without modifying architecture or training procedures.

Show all 6 sources
Can language models learn to simulate agent environments?

Qwen-AgentWorld demonstrates that native language world models trained via next-state prediction on 10M+ trajectories outperform real-environment training on three benchmarks and transfer across seven domains, positioning next-state prediction as a foundation objective for agents.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.