Abstract
Embodied intelligence, a grand challenge in artificial intelligence, is fundamentally constrained by the limited spatial understanding and reasoning capabilities of current models. Prevailing efforts to address this through enhancing Vision-Language Models (VLMs) are trapped in a dilemma: template-based datasets are scalable but structurally rigid, while manual annotation is linguistically diverse but unscalable and, critically, computationally imprecise. We introduce SPRITE, a novel framework that overcomes this dilemma by leveraging simulators and large models to programmatically synthesize scalable, diverse, and high-quality spatial reasoning data. The core innovation of SPRITE is to reframe ground-truth generation as a code-generation task. We utilize LLMs to compile complex spatial questions into executable programs, which are then verified against high-precision scene meta-information extracted from simulators. This ensures our ground truth is both computationally precise and verifiable, while the generative power of LLMs provides vast linguistic diversity. Leveraging this pipeline, we have curated a dataset encompassing 3 simulators, 11k+ scenes, and 300k+ image/video instruction-tuning pairs. We demonstrate that a VLM trained on our data achieves significant performance gains on multiple spatial benchmarks and outperforms other open-source datasets of equivalent size. Furthermore, a scalability analysis confirms our hypothesis that overcoming the low-diversity nature of traditional template methods is essential for building robust, generalizable spatial intelligence. We will make the SPRITE framework code and the full 300k+ dataset publicly available to facilitate future research in spatial intelligence.
Introduction
For an AI to interact effectively with the physical world, it must understand more than just object identity; it requires a deep grasp of spatial properties such as location, size, and inter-object relationships in 3D space. Current Vision-Language Models (VLMs) are hindered by a data bottleneck characterized by a "trilemma": the difficulty of simultaneously achieving diversity, scalability, and precision.
Existing datasets typically rely on rigid templates, which scale well but lack linguistic variety, or human annotation, which is diverse but prone to error and difficult to scale. SPRITE addresses this by using simulators to provide ground-truth metadata and LLMs to generate executable code for answer verification, breaking the bottleneck and enabling high-quality spatial reasoning at scale.
The SPRITE Framework
SPRITE (Scaling Spatial Reasoning in MLLMs through Programmatic Data Synthesis) reframes ground-truth generation as a code-generation task. This ensures that answers are mathematically derived from raw 3D data rather than guessed by a model.
The workflow consists of four primary stages:
- Data Collection: High-precision "meta-information" (3D bounding boxes, object categories, and camera poses) is extracted from simulators like Habitat, AI2-THOR, and AirSim.
- Reference Generation: To ensure unambiguous spatial references (e.g., distinguishing between two identical chairs), a VLM generates unique, descriptive names for every object instance.
- Spatial Question Generation: An LLM (GPT-4o) generates a wide array of complex spatial questions based on the scene's metadata.
- Programmatic Ground Truth Acquisition: A Code-LLM writes Python scripts that calculate the answer using the simulator's raw 3D data. This ensures the ground truth is mathematically precise and verifiable.
Dataset and Evaluation
Using this pipeline, we curated SPRITE-300K, a massive dataset featuring over 300,000 instruction-tuning pairs (210k image-based and 90k video-based) across 11,000+ unique scenes. The dataset covers 30+ question types, ranging from simple size comparisons to complex navigation descriptions and compound logical queries.
Models trained on SPRITE were evaluated on seven major benchmarks, including VSIbench, ViewSpatial, and QSpatialBench, testing capabilities from 3D pose estimation to multi-view reasoning.
Key Insights
- Code as the Ultimate Verifier: By using code to derive answers from 3D metadata, SPRITE eliminates the "hallucination" problem common in synthetic data. If the code runs and passes a voting-based validation check, the answer is guaranteed to be correct.
- The Template Ceiling: Scaling rigid, template-based data eventually leads to a performance wall or even degradation due to overfitting. SPRITE’s linguistic diversity allows models to continue improving as data volume increases.
- Diversity Over Volume: Increasing the number of unique scenes (diversity) is more effective for model generalization than simply increasing the number of questions per scene.
Results and Discussion
Training a Qwen2.5-VL-7B model on the SPRITE dataset led to significant performance gains, exceeding 5% on VSIbench and QSpatialBench. The SPRITE-enhanced 7B model approached the performance of proprietary models like Claude-3.7-Sonnet on several benchmarks and outperformed Gemini-2.0 Flash on CVbench.
While a sim-to-real gap remains, SPRITE demonstrates that programmatic synthesis is a viable and powerful path toward building robust, generalizable spatial intelligence. Future work will extend these capabilities to real-time planning and low-level control for robotics.
Summary updated