FloorplanQA: A Benchmark for Spatial Reasoning in LLMs using Structured Representations

Fedor Rodionov, Abdelrahman Eldesokey, Michael Birsak, John Femiani, Bernard Ghanem, Peter Wonka

Introduction

While Large Language Models (LLMs) have demonstrated exceptional capabilities in coding, logic, and natural language processing, their ability to "visualize" and reason about physical environments remains poorly understood. Most existing spatial benchmarks evaluate models using either computer vision (images) or qualitative language (e.g., "the cat is on the mat"). However, in professional domains such as architecture, robotics, and interior design, spatial data is predominantly stored in structured, symbolic formats like JSON or XML, where objects are defined by precise coordinates, dimensions, and orientations.

To address this gap, researchers have introduced FloorplanQA, a diagnostic benchmark designed to test how well LLMs can reason about space using structured text rather than images. The study reveals a significant "spatial blind spot" in today's frontier models: while they are capable of basic geometric calculations, they struggle immensely with complex tasks like pathfinding, avoiding collisions, and understanding how overlapping objects occupy a room.

The FloorplanQA Benchmark

FloorplanQA moves beyond simple "common sense" evaluations to test precise, metric-based geometric reasoning. The benchmark consists of 2,000 structured 2D layouts and 16,000 natural language questions (8 per layout). All layouts are represented in a unified JSON format that provides coordinates for room boundaries, walls, and every object within the space.

Datasets

The layouts are sourced from two distinct distributions:

  • HSSD (Habitat Synthetic Scenes Dataset): 200 layouts based on real-world floorplans, featuring complex, non-axis-aligned polygons.
  • Synthetic Layouts: 1,800 layouts (kitchens, bedrooms, and living rooms) generated by Gemini 2.5 Pro and verified by rule-based spatial filters to ensure physical plausibility.

Evaluation Framework

The researchers developed a rigorous framework to evaluate LLMs across three tiers of spatial reasoning:

  1. Metric Tasks (Easy): Pure numerical calculations, such as finding the distance between two objects or calculating a viewing angle.
  2. Topology Tasks (Moderate): Understanding spatial relationships, such as checking if a new piece of furniture fits in a room or identifying which objects block a line of sight.
  3. Dynamic Tasks (Hard): Procedural reasoning, such as moving an object until it hits a wall or finding a collision-free path between two points.

The primary evaluation is "unaided," meaning models must reason directly from the text without using external tools or Python interpreters, though tool-use was tested as an ablation study. The study evaluated 15 frontier models, including reasoning-heavy variants like GPT-o1 and DeepSeek-R1.

Key Discoveries: The Spatial Blind Spot

The Difficulty Hierarchy

The study established a clear hierarchy of difficulty for LLMs. On Tier 1 (Metric tasks), models reached 75–95% accuracy on simple synthetic layouts. Performance dropped to 60–85% on Tier 2 (Topology tasks). However, Tier 3 (Dynamic tasks like optimization and planning) remained largely unsolved, with accuracies plummeting to 5–45%.

The "Independent Object" Fallacy

One of the most striking findings is that LLMs often treat objects as independent entities rather than parts of a unified, constrained space. For example, when calculating "Free Space," models frequently summed the areas of all objects and subtracted them from the total room area. This approach fails to account for spatial overlaps, such as a lamp sitting on top of a table, leading to fundamentally flawed geometric conclusions.

Linguistic Bias vs. Geometry

In "semantic ablation" tests, researchers swapped object labels (e.g., renaming a sofa to a "chair"). They discovered that for movement tasks, models often relied heavily on the semantic label and its typical real-world associations rather than the actual geometric coordinates provided in the JSON. This indicates a reliance on linguistic priors over strict mathematical reasoning.

Polygon Complexity

Model performance was highly sensitive to the complexity of the shapes involved. LLMs performed significantly better on synthetic "box-like" rooms than on the more realistic HSSD layouts. On HSSD, models frequently failed to compute the centroids of complex polygons, which caused a cascade of errors in subsequent reasoning steps.

The Role of Tools and Advanced Reasoning

When models were provided with a Python interpreter, their performance on arithmetic tasks (like calculating distances) improved significantly. Surprisingly, however, they performed worse at complex optimization tasks, such as finding the "Max Box" (the largest empty rectangle in a room). This suggests that the primary bottleneck is not basic math, but rather the model's inability to conceptualize and write correct spatial algorithms.

Reasoning-focused models, such as GPT-o1 and DeepSeek-R1, demonstrated a 10–40% gain over standard models on geometric union tasks, proving that extended "thinking" time is beneficial. Nonetheless, these models often hit token limits on complex layouts because their internal Chain of Thought became excessively long and convoluted.

Conclusion and Future Directions

FloorplanQA successfully uncovers a critical limitation in current LLMs: inconsistent reasoning about indoor layouts and physical constraints. The authors suggest several paths forward to build models capable of accurate spatial inference:

  1. Hybrid Systems: Combining LLMs with external geometric solvers (like A* for pathfinding or Shoelace formulas for area calculations) to handle the heavy lifting of spatial mathematics.
  2. Spatial Training: Fine-tuning models on datasets that explicitly include "constraint-violation" examples to teach them what cannot happen in physical space (e.g., two solid objects occupying the same coordinates).
  3. Multi-step Interaction: Developing multi-modal loops that allow models to "verify" their text-based reasoning by analyzing a rendered version of the floorplan.

By highlighting these blind spots, FloorplanQA paves the way for the next generation of AI models that can seamlessly bridge the gap between structured data and physical reality.

Summary updated

BibTeX
@inproceedings{rodionov2026floorplanqa,
  author = {Fedor Rodionov and Abdelrahman Eldesokey and Michael Birsak and John Femiani and Bernard Ghanem and Peter Wonka},
  title = {{FloorplanQA: A Benchmark for Spatial Reasoning in LLMs using Structured Representations}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=bcN12UkftY},
}
Figure