Abstract
Spatial reasoning plays a vital role in both human cognition and machine intelligence, prompting new research into language models' (LMs) capabilities in this regard. However, existing benchmarks reveal shortcomings in evaluating qualitative spatial reasoning (QSR). These benchmarks typically present oversimplified scenarios or unclear natural language descriptions, hindering effective evaluation. We present a novel benchmark for assessing QSR in LMs, which is grounded in realistic 3D simulation data, offering a series of diverse room layouts with various objects and their spatial relationships. This approach provides a more detailed and context-rich narrative for spatial reasoning evaluation, diverging from traditional, toy-task-oriented scenarios. Our benchmark encompasses a broad spectrum of qualitative spatial relationships, including topological, directional, and distance relations. These are presented with different viewing points, varied granularities, and density of relation constraints to mimic real-world complexities. A key contribution is our logic-based consistency-checking tool, which enables the assessment of multiple plausible solutions, aligning with real-world scenarios where spatial relationships are often open to interpretation. Our benchmark evaluation of advanced LMs reveals their strengths and limitations in spatial reasoning. They face difficulties with multi-hop spatial reasoning and interpreting a mix of different view descriptions, pointing to areas for future improvement.
Introduction
While Large Language Models (LLMs) have demonstrated remarkable proficiency in various linguistic tasks, Qualitative Spatial Reasoning (QSR)—the ability to reason about the relative positions of objects (e.g., "the chair is behind the table")—remains a significant challenge. Existing benchmarks for evaluating these capabilities often fall short due to three primary issues: oversimplification, unnatural language, and the "single answer" trap.
Traditional datasets like bAbI and StepGame rely on rigid 2D grids with fixed angles and distances, which do not reflect the complexity of real-world environments. Furthermore, benchmarks like SpartQA often employ repetitive, robotic descriptions that can be confusing for both models and humans. Finally, most benchmarks assume a single correct spatial arrangement, ignoring the inherent ambiguity in natural language descriptions where a single statement like "A is left of B" can correspond to multiple valid layouts.
The RoomSpace Benchmark
To address these limitations, we introduce RoomSpace, a benchmark grounded in realistic 3D simulations. RoomSpace utilizes the ProcTHOR framework to generate virtual houses, providing a context-rich environment for spatial reasoning.
Methodology
The RoomSpace pipeline involves several key components:
- 3D Simulation Grounding: Realistic room layouts (e.g., kitchens, bedrooms) are generated to provide a diverse set of objects and relationships.
- Constraint Satisfaction Problem (CSP) Framework: Spatial arrangements are modeled as a network of constraints. This allows for varying complexity by adjusting the number of objects ($n$) and the number of known relationships ($m$).
- Multi-Perspective Narratives: The benchmark includes descriptions from two distinct viewing angles: a "top-down" view using cardinal directions (North, South, East, West) and a "North-facing" view using relative terms (front, behind, left, right).
- Logic-Based Evaluation: Instead of a simple string-matching approach, we developed a consistency-checking tool. This tool uses a backtracking algorithm to determine if a model's predicted relationship is logically feasible given the set of constraints provided in the narrative.
Dataset Tiers
RoomSpace is provided in three scales to accommodate different evaluation needs: RoomSpace-100 (a sample for rapid testing), RoomSpace-1K, and RoomSpace-10K for comprehensive large-scale assessment.
Key Insights and Results
Evaluation of state-of-the-art models, including GPT-3.5 and GPT-4, yielded several critical insights:
- Density vs. Ambiguity: Counterintuitively, increasing the number of relationships ($m$) for a fixed number of objects ($n$) often improves model performance. More constraints reduce the space of valid interpretations, making the spatial "puzzle" more deterministic and easier to solve despite the increased text length.
- The Multi-Hop Challenge: Models struggle significantly with "multi-hop" reasoning. As the chain of reasoning required to link two objects grows longer, accuracy drops precipitously.
- Perspective Sensitivity: Relative directions (North-facing view) prove more difficult for models than cardinal directions (top-down view), likely due to the additional mental rotation or coordinate transformation required.
- Model Comparison: GPT-4 emerged as the clear leader, consistently outperforming other models in handling complex constraints and mapping spatial relations. However, all models showed performance degradation as the number of objects increased.
Conclusion and Future Directions
RoomSpace provides a more rigorous and realistic framework for evaluating spatial reasoning in LLMs by moving beyond "toy" tasks and embracing the ambiguity of natural language. Future work will aim to incorporate object geometry (size and shape), dynamic scenes with moving agents, and a broader range of topological relations to further push the boundaries of machine spatial intelligence.
Summary updated