InternSpatial: A Comprehensive Dataset for Spatial Reasoning in Vision-Language Models

Nianchen Deng, Lixin Gu, Shenglong Ye, Yinan He, Zhe Chen, Songze Li, Haomin Wang, Jinhui Yin, Qi Wei, Tianshuo Yang, Min Dou, Tong He, Wenqi Shao, Kaipeng Zhang, Yi Wang, Botian Shi, Yanting Zhang, Jifeng Dai, Yu Qiao, Wenhai Wang, Hongjie Zhang

Vision-Language Models (VLMs) have become remarkably adept at describing what is in an image, but they consistently struggle with where. If you ask a state-of-the-art model to identify a cat, it succeeds; if you ask it whether that cat is closer to the observer than the chair behind it, or to estimate how much an object has rotated between two video frames, the model often falters.

A new paper from researchers at Shanghai AI Laboratory and several top universities introduces InternSpatial, a massive effort to bridge this "spatial gap" by providing the largest open-source dataset and benchmark dedicated entirely to spatial reasoning.

TL;DR

InternSpatial is a gargantuan open-source dataset featuring 12 million spatial question-answer pairs across 19 different instruction formats. By training on this data, models achieve a 12.1% performance boost on spatial benchmarks and even surpass proprietary models like GPT-4o in complex tasks like rotation estimation and relative distance comparisons.

What Problem Does This Paper Address?

While VLMs excel at general visual tasks, their spatial reasoning is often "flat." Existing datasets for spatial understanding suffer from three main issues:

  1. Limited Scale and Diversity: Most datasets are small or confined to specific environments (like strictly indoor rooms).
  2. Restricted Formats: They usually rely on simple text-only questions, whereas real-world applications (like robotics) often need to reference specific image regions using visual masks or bounding boxes.
  3. Single-View Bias: Most models are trained on static images, leaving them unable to reason about how objects relate across different viewpoints or video frames.

Without robust spatial reasoning, VLMs remain "armchair observers," unable to effectively power embodied AI systems or robots that need to navigate and interact with the physical 3D world.

Methods: An Automated Data Engine

The authors developed a sophisticated automated data engine to generate 12 million QA pairs without the prohibitive cost of manual labeling.

The automated data engine pipeline for generating InternSpatial, showing the process of lifting 2D annotations to 3D view space to create rich QA pairs.

1. Lifting 2D to 3D

To generate ground-truth spatial relationships, the engine doesn't just look at 2D pixels. It uses off-the-shelf models to estimate depth and camera parameters, "lifting" 2D objects into a canonical 3D coordinate system (View Space). This allows the system to calculate precise relationships like "further back," "taller," or "rotated 45 degrees."

2. Template-Based Generation

Instead of asking a Large Language Model (LLM) to write every question from scratch—which is slow and expensive—the researchers used LLMs to create diverse conversational templates. These templates are then programmatically filled with the calculated 3D spatial data, ensuring the questions are both linguistically varied and factually accurate.

3. Instruction Expansion

One of the paper's most clever moves is expanding how questions are asked. They don't just use text; they provide 19 combinations of "visual prompts," including:

  • Original images.
  • Images with bounding boxes or segmentation masks overlaid.
  • Images with numbered "tags" on objects.
  • Textual references using coordinates.

Datasets

The researchers compiled InternSpatial by aggregating and annotating data from a wide variety of sources, including COCO (in-the-wild), ScanNet (indoor), Cityscapes (driving), and Objaverse (3D objects).

  • InternSpatial (Training): 12 million QA pairs (9.5M single-view, 2.5M multi-view).
  • InternSpatial-Bench (Evaluation): A new, high-quality benchmark of 6,008 QA pairs, including a novel rotation estimation task where the model must determine how an object has turned between two different views.

Key Insights and Ideas

  • Instruction Diversity is a Superpower: The authors found that training a model on multiple input formats (like masks and boxes) doesn't just help it understand those specific formats—it actually improves the model's general spatial logic.
  • 3D Reasoning from 2D Data: You don't necessarily need perfect 3D sensors to train a spatially-aware model. Using "noisy" depth estimation to generate training data is sufficient to teach a VLM the underlying principles of 3D space.
  • Multi-View is the New Frontier: Spatial reasoning isn't just about a single snapshot. The introduction of the rotation estimation task highlights that true spatial understanding requires "object permanence" across different perspectives.

Key Results

The researchers fine-tuned an 8-billion parameter model (InternVL-Spatial-8B) using their dataset. The results were highly impressive:

Performance comparison on InternSpatial-Bench, demonstrating InternVL-Spatial-8B outperforming larger proprietary models on spatial tasks.
  • Benchmark Dominance: The model achieved a 12.1% improvement on InternSpatial-Bench and a 10.7% boost on the multi-view VSI-Bench.
  • Beating the Giants: In specific spatial tasks like "Position Comparison" and "Rotation Estimation," the 8B model outperformed much larger proprietary models, including GPT-4o and Claude 3.7 Sonnet.
  • No "Catastrophic Forgetting": Importantly, the model maintained its performance on general VQA benchmarks (like MathVision and OCRBench), proving that you can add spatial "common sense" without breaking the model's existing knowledge base.

Limitations and Future Work

The authors acknowledge that their template-based approach, while efficient, might not capture the full richness and nuance of natural human conversation. Furthermore, while the model is great at reasoning about static images and multi-view frames, the next step is interactive spatial reasoning—where a model can reason about space in real-time as a robot moves through an environment.

By open-sourcing both the 12M-record dataset and the benchmark, the authors have provided a massive new "gym" for the research community to train the next generation of spatially-aware AI.

Source: InternSpatial: A Comprehensive Dataset for Spatial Reasoning in Vision-Language Models Code & Data: https://github.com/dengnianchen/intern-spatial

Summary updated

BibTeX
@inproceedings{deng2026internspatial,
  author = {Nianchen Deng and Lixin Gu and Shenglong Ye and Yinan He and Zhe Chen and Songze Li and Haomin Wang and Jinhui Yin and Qi Wei and Tianshuo Yang and Min Dou and Tong He and Wenqi Shao and Kaipeng Zhang and Yi Wang and Botian Shi and Yanting Zhang and Jifeng Dai and Yu Qiao and Wenhai Wang and Hongjie Zhang},
  title = {{InternSpatial: A Comprehensive Dataset for Spatial Reasoning in Vision-Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=L6bEitSMeu},
}
Figure