Geometrically-Constrained Agent for Spatial Reasoning

Zeren Chen, Xiaoya Lu, Zhijie Zheng, Pengrui Li, Lehan He, Yijin Zhou, Jing Shao, Bohan Zhuang, Lu Sheng

TL;DR

Vision Language Models (VLMs) struggle with precise 3D spatial reasoning due to a fundamental "semantic-to-geometric gap." This paper introduces the Geometrically-Constrained Agent (GCA), a training-free framework that decouples spatial reasoning into two stages: formalizing a task constraint (defining a reference frame and objective) and executing tool calls strictly within those deterministic bounds. GCA achieves state-of-the-art performance across multiple spatial reasoning benchmarks, outperforming existing training-based and tool-integrated methods by an average of ~27%.

What Problem Does This Paper Address?

While modern VLMs excel at qualitative semantic inference (e.g., understanding that "sitting on a sofa" implies looking forward from it), they fail at high-precision geometric computation and robust spatial imagination. This is known as the semantic-to-geometric gap. VLMs translate rich visual information into a "lossy" textual semantic space where fine-grained geometric details are omitted or distorted.

Existing solutions fall into two flawed paradigms:

  1. Training-based methods: These fine-tune models on massive datasets but suffer from an oracle paradox—the datasets are often generated by models like GPT-4o, which themselves struggle with spatial logic, thereby training the VLM on flawed geometric principles.
  2. Tool-integrated methods: These adopt a "plan-then-execute" strategy using external geometric tools. However, while they constrain the final computation, the VLM's internal planning process remains unconstrained and prone to generating geometrically impossible plans.
Figure 1. Overview. (a) Semantic-Geometric Gap. The geometric details required for spatial reasoning are lost when translating visual information into textual space, leading to VLM’s flawed reasoning or unconstrained planning. (b) Geometrically-Constrained Spatial Reasoning. We propose a formal task constraint that serves as a deterministic bridge between semantics and geometry in spatial reasoning.

Methods

GCA resolves this gap without any model fine-tuning by introducing a formal task constraint ($C_{\text{task}}$) that acts as an architectural scaffold. It splits the VLM's role into two distinct stages:

1. Task Formalization ($F_{\text{formalize}}$)

Acting as a semantic analyst, the VLM translates an ambiguous user query and visual data into a formal, verifiable task constraint ($C_{\text{task}}$). This constraint defines what to solve by establishing two immutable sub-constraints:

  • Reference Frame Constraint ($C_{\mathcal{R}}$): Anchors a 3D Cartesian coordinate system to a geometric primitive in the scene. This can be object-based (e.g., aligned with a sink's orientation), camera-based (aligned with a specific viewpoint), or direction-based (defined by a vector between two objects).
  • Objective Constraint ($C_{\mathcal{O}}$): Specifies exactly what needs to be measured or evaluated relative to that reference frame.

2. Constrained Geometric Computation ($F_{\text{compute}}$)

Shifting roles to a task solver, the VLM orchestrates an external toolbox (including 3D reconstruction via VGGT, object detection, and instance segmentation) to gather data. Crucially, its planning and execution are strictly bounded by $C_{\text{task}}$.

To prevent the VLM from hallucinating mathematical formulas during code generation, GCA utilizes a Knowledge-Augmented Code Generation strategy. The system maintains a pre-verified library of basic geometric formulas and automatically injects the correct coordinate transformation math into the VLM's context based on the bound variables.

Datasets

The authors evaluated GCA on a diverse suite of five challenging spatial reasoning benchmarks:

  • MMSI-Bench: Evaluates multi-image spatial intelligence and complex spatial logic.
  • MindCube-tiny: Focuses on 3D spatial relationships and orientation.
  • OmniSpatial: Tests perspective-taking and dynamic reasoning.
  • SPBench: A benchmark for spatial understanding.
  • CV-Bench: Tests 2D and 3D spatial tasks.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Decoupling "What" from "How": The core "aha moment" is that VLMs shouldn't be forced to imagine or compute high-fidelity geometry directly. Instead, they should use their qualitative semantic strengths to formalize the math problem, leaving the actual computation to deterministic tools.
  • Unconstrained Planning is the Real Bottleneck: Simply giving an agent a Python interpreter or a 3D tool isn't enough. If the VLM plans its next steps within its native, lossy semantic space, it will inevitably default to flawed shortcuts (like defaulting to the camera's viewpoint instead of the user's perspective).
  • Training-Free Generalizability: Because GCA relies on a structured framework rather than fine-tuning, it avoids the data biases of training-based specialists. It generalizes seamlessly across different foundation models and out-of-domain benchmarks.

Key Results

GCA establishes a new state-of-the-art across all evaluated benchmarks, achieving an average accuracy of 64.8%.

  • Vs. Foundation Baselines: GCA outperforms the strongest baseline, Gemini-2.5-Pro, by 12% absolute on average. On the highly challenging MMSI-Bench, it achieves a 28% relative improvement over Gemini-2.5-Pro.
  • Vs. Training-Based Specialists: GCA beats specialized models like SpatialLadder by an average of ~27%. While SpatialLadder scores highly on its in-domain benchmark (SPBench), GCA consistently outperforms it by ~20 points on out-of-domain tasks.
  • Vs. Tool-Integrated Agents: GCA outperforms TIGeR by an average margin of 38%, primarily because TIGeR struggles with multi-view spatial planning where its execution is unconstrained.

Limitations and Future Work

  • Computational and Financial Cost: GCA relies on an iterative, closed-loop process with multiple tool calls and VLM interactions. This makes it significantly more computationally expensive and slower than simple end-to-end Chain-of-Thought (CoT) reasoning.
  • Static Image Limitation: The current toolbox is primarily optimized for image-based inputs. The authors note that a critical direction for future work is extending this geometrically-constrained framework to incorporate temporal reasoning tools, allowing the agent to tackle dynamic video and complex robotic manipulation tasks.

Summary updated

BibTeX
@inproceedings{chen2026geometrically,
  author = {Zeren Chen and Xiaoya Lu and Zhijie Zheng and Pengrui Li and Lehan He and Yijin Zhou and Jing Shao and Bohan Zhuang and Lu Sheng},
  title = {{Geometrically-Constrained Agent for Spatial Reasoning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=pvRIblTIvX},
}
Figure