Abstract
Spatial reasoning—the ability to understand relationships in 2D and 3D space—is a fundamental capability for Visual Question Answering (VQA) and robotics. Despite the rapid advancement of Vision Language Models (VLMs), they frequently struggle with precise spatial tasks. We introduce SpatialVTS, a framework that enhances spatial reasoning by simultaneously employing visual and textual thinking. In the spatial visual thinking phase, the model automatically generates location tokens for essential targets, including both objects mentioned in the prompt and relevant reference objects. During the spatial textual thinking phase, the model performs long-term Chain-of-Thought (CoT) reasoning based on these visual cues. To support training, we manually corrected existing spatial datasets, restructured data formats for better generalization, and developed logical reasoning paths. SpatialVTS significantly improves performance in spatial understanding tasks without requiring additional depth or mask information.
Introduction
While modern VLMs excel at general image description, they often fail at "spatial reasoning"—estimating precise distances, scales, and relative 3D positions. Current models face three primary hurdles: a limited scope that ignores contextually relevant reference objects, poor data quality in auto-annotated datasets, and a lack of explicit reasoning processes, often jumping directly to an answer without logical deduction.
Methodology: The SpatialVTS Framework
SpatialVTS addresses these limitations through a two-stage process that mimics human problem-solving.
1. Spatial Visual Thinking
Instead of focusing solely on the target objects identified in a query, SpatialVTS is trained to identify "essential targets." This includes potential reference objects that provide scale or context (e.g., using a building of known height to estimate the distance of a car). These objects are grounded using a discrete $k \times k$ grid coordinate system, producing visual location tokens that anchor the model's logic to specific pixels.
2. Spatial Textual Thinking
Following visual grounding, the model engages in long-term textual thinking. It uses the identified reference objects to infer spatial relationships through step-by-step logic. For example, if a building is identified as being four stories tall, the model can use that known height to calculate the vertical distance to a specific feature or the ground-plane distance to another object.
To train this capability, the researchers employed a "seeking the cause by grasping the result" strategy. By providing the model with the image, question, and correct answer, they prompted it to generate the logical path connecting them. These generated rationales were then used as high-quality training data.
Data Refinement and Reconstruction
A core contribution of this work is the manual cleanup of existing spatial datasets. The authors found that a significant portion of auto-generated spatial data contained incorrect labels or nonsensical questions. They reconstructed the SpatialRGPT and VPT datasets, manually correcting labels and adding detailed logical reasoning paths to enhance the model's generalization ability.
Key Results and Insights
SpatialVTS achieved state-of-the-art or highly competitive results across multiple benchmarks:
- Qualitative Performance: On benchmarks like VSR and WhatsUP, SpatialVTS reached an average accuracy of 82.03%, significantly outperforming the base Qwen2-VL-7B (63.38%).
- Quantitative Precision: In distance estimation (Q-Spatial++), it achieved a score of 0.54, nearly matching models that utilize ground-truth depth maps—despite SpatialVTS using only RGB data.
- Ablation Studies: Removing the textual reasoning (CoT) phase resulted in a 3-7% performance drop, confirming that explicit logical deduction is critical for spatial accuracy.
Conclusion
By forcing a VLM to ground its logic in visual coordinates before performing textual deduction, SpatialVTS reduces hallucinations and improves spatial precision. The power of reference objects and the necessity of high-quality, reasoned data are central to this success. Future work will focus on applying this framework to embodied AI and robotics, where precise spatial reasoning is essential for safe physical interaction.
Summary updated