SpatialBot: Precise Spatial Understanding with Vision Language Models

Wenxiao Cai, Iaroslav Ponomarenko, Jianhao Yuan, Xiaoqi Li, Wankou Yang, Hao Dong, Bo Zhao

TL;DR

SpatialBot is a new Vision Language Model (VLM) designed to bridge the gap between 2D image recognition and 3D spatial reasoning by integrating depth data directly into the learning process. By training on a massive new suite of spatial datasets and utilizing a novel "Depth API," SpatialBot significantly outperforms general-purpose models like GPT-4o in tasks requiring precise distance judgment and robotic manipulation.

What Problem Does This Paper Address?

While current VLMs (like GPT-4o or LLaVA) are incredibly good at describing what is in an image, they struggle with where things are in 3D space. This is a major hurdle for "Embodied AI"—robots that need to interact with the physical world.

A 2D image is inherently ambiguous; a gripper might look like it's touching a rag when it's actually several centimeters above it. Existing VLMs lack the "spatial common sense" to resolve these ambiguities because they are primarily trained on 2D RGB data. Furthermore, there has been a lack of large-scale datasets that pair visual questions with ground-truth metric depth (actual distances in millimeters).

Methods

The researchers developed SpatialBot, which processes both RGB images and depth maps. Key technical innovations include:

  • Depth Map Encoding: To make depth data "readable" for a standard vision encoder, the authors converted metric depth (1mm to ~131m) into a three-channel format. This allows the model to treat a depth map like a specialized image.
  • The Depth API: This is a clever "tool-use" approach. During reasoning, SpatialBot can call a Depth(point) function. If the model needs to know exactly how far away an object is to make a decision, it outputs this command, retrieves the precise millimeter value from the depth map, and incorporates that number into its final text response.
  • Progressive Training: The model undergoes a three-stage training process:
  • Low-level: Learning to retrieve depth values for specific pixels.
  • Middle-level: Understanding proximity (which object is closer?) and object-level depth (mean/min/max depth of a cup).
  • High-level: Complex spatial reasoning, such as counting objects in a specific 3D area or planning robot movements.

Datasets

The paper introduces three major resources:

  • SpatialQA: A large-scale VQA dataset containing over 695k images with depth-related questions across three levels of difficulty. It uses data from COCO, Visual Genome, and robotics datasets (RT-X).
  • SpatialQA-E: A specialized dataset for embodied tasks, featuring 2,000 episodes of a Franka robotic arm performing manipulation tasks (picking, placing, avoiding obstacles) where spatial relationships are key.
  • SpatialBench: A new benchmark designed to evaluate a model's ability to understand position, existence, reaching, and size comparison in 3D space.

Key Insights and Ideas

  • Depth as a "First-Class Citizen": Instead of treating depth as a secondary feature, SpatialBot treats it as a primary input. This resolves the visual "illusions" that trip up RGB-only models.
  • The "Aha" Moment on Scaling: The authors realized that directly inverting relative depth (common in many AI models) doesn't maintain proportional relationships. They implemented a specific conversion formula to ensure the model understands that 400mm is exactly twice as far as 200mm.
  • Spatial Knowledge Boosts General Logic: Interestingly, training on spatial tasks didn't just make the model better at depth; it also improved its scores on general VLM benchmarks (like MME and MMBench), suggesting that a better grasp of 3D structure helps with general visual reasoning.

Key Results

  • Superior Accuracy: On the SpatialBench reaching task (judging if a gripper has reached an object), SpatialBot-Llama3-8B achieved a 45.0% success rate, significantly higher than the RGB-only version's 38.3%.
  • Metric Precision: In depth estimation tests, SpatialBot achieved over 99% accuracy in retrieving specific point depths when using its RGB-D configuration, whereas GPT-4o often failed to correctly interpret depth even when provided with depth images.
  • Robotic Success: In "pick-and-place" simulations, the inclusion of depth information (RGBD) led to a marked increase in success rates for positional and size-based tasks compared to RGB-only variants.

Limitations and Future Work

  • Reliance on MDE: When a physical depth sensor isn't available, the model relies on Monocular Depth Estimation (MDE) to "guess" the depth. While MDE is improving, it is not yet as accurate as hardware sensors (like LiDAR or Stereo cameras).
  • Text-Only Output Constraints: The authors noted that while the model is great at using depth, it still struggles to output a full, high-resolution depth map purely through text tokens. They suggest a dedicated extra decoder might be needed for dense depth prediction.
  • Scene Diversity: While the dataset is large, the authors aim to include even more diverse real-world scenarios in future versions to improve the model's robustness in complex outdoor environments.

Summary updated

BibTeX
@inproceedings{cai2025spatialbot,
  author = {Wenxiao Cai and Iaroslav Ponomarenko and Jianhao Yuan and Xiaoqi Li and Wankou Yang and Hao Dong and Bo Zhao},
  title = {{SpatialBot: Precise Spatial Understanding with Vision Language Models}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11128671},
}
Figure