TL;DR
Large Language Models (LLMs) frequently stumble on complex, multi-hop spatial reasoning tasks when forced to reason purely in text. This paper introduces an adaptive framework that evaluates problem complexity and model trustworthiness to dynamically switch from natural language to an explicit 2D grid representation, boosting spatial reasoning accuracy by up to 42%.
What Problem Does This Paper Address?
Spatial reasoning is crucial for applications like robotics, navigation, and autonomous driving. Despite their advancements, LLMs struggle significantly when spatial context becomes complex. Specifically, when tracking relative positions across multiple sentences (multi-hop reasoning), text-only LLMs accumulate errors, lose track of intermediate entities, and hallucinate incorrect relations.
Humans naturally solve this problem by externalizing their thoughts—sketching diagrams or drawing grids to make implicit spatial structures explicit. This paper addresses two core questions: Can grounding textual spatial stories into geometry-aware structures (like grids) improve LLM reasoning? And can an LLM autonomously decide when to stick with text and when to switch to a structured modality?
Methods
The authors propose a grid-grounding framework paired with an adaptive switching policy to optimize both accuracy and computational efficiency.
- Modality Mapping: The pipeline transforms textual narratives into alternative representations, including relational triples, coordinate-based layouts (via Prolog), and 2D grids. The grids are generated in two formats: Full Grid (preserving the entire scene) and Pruned Grid (retaining only question-relevant entities to minimize noise).
- Switching Assessment: To avoid the high computational cost of generating grids for every single problem, the authors introduce a training-free routing policy guided by two signals:
- Trustworthiness: Decomposed into faithfulness (verifying if the model's answer relies strictly on the correct supporting sentences) and plausibility (checking if the answer remains stable under paraphrasing or question inversion).
- Complexity: A weighted combination of seven factors, including multi-hop chain length, linguistic difficulty, and entity load.
If the initial text-based answer lacks trustworthiness or the problem exceeds a complexity threshold, the system dynamically switches to grid-based reasoning.
Datasets
The framework was evaluated across three distinct spatial reasoning benchmarks:
- StepGame: A dataset testing controlled multi-hop directional reasoning (from 1 to 10 hops) interspersed with distractor sentences.
- SpaRTUN: A synthetic benchmark containing rich spatial language, logical quantifiers, and mixed topological/directional relations based on Region Connection Calculus (RCC8).
- ReSQ: A dataset featuring human-written, real-world spatial descriptions paired with Yes/No questions.
Key Insights and Ideas
- Grids as a Spatial Interface: Explicitly structured 2D grids act as an effective external memory for LLMs. By mapping text to a grid, complex multi-step linguistic composition is reduced to a straightforward row/column comparison.
- Pruning Empowers Weaker Models: While larger reasoning models handle full grids well, smaller models (like LLaMA-3.1-8B) benefit immensely from pruned grids. Removing distractor entities prevents weaker models from getting overwhelmed by irrelevant context.
- Complementary Routing Signals: Trustworthiness (model-dependent) and complexity (problem-dependent) are orthogonal. A model might confidently guess a complex problem correctly or fail faithfully on a deceptively simple text. Combining both signals provides a much more stable accuracy-cost tradeoff.
Key Results
- Massive Accuracy Gains: On the StepGame benchmark, switching to a grid-based representation improved LLM performance by up to 42% (specifically for LLaMA-3.1-70B). The gains were most pronounced at higher hop counts (e.g., 5–10 hops), where text-only reasoning completely broke down.
- Consistent Benchmark Improvements: Grid-based reasoning outperformed text baselines across the board, yielding up to an 8% improvement on SpaRTUN and a 5% improvement on ReSQ.
- Cost-Effective Routing: Adaptive switching achieved accuracy matching or exceeding grid-only baselines while reducing average token costs by up to 12% on SpaRTUN by keeping simpler instances on the cheaper, text-only path.
Limitations and Future Work
- Upstream Bottlenecks: The framework is highly dependent on the quality of the initial relation extraction. If the LLM fails to accurately extract spatial triples from the text, the resulting grid will be flawed, causing errors to propagate downstream.
- Computational Overhead: Evaluating trustworthiness and complexity requires additional LLM calls before routing. Although the authors implemented short-circuit evaluation to mitigate this, developing cheaper routing signals or learned routing policies remains an important direction for future work.
Summary updated