3D Primitives are a Spatial Language for VLMs
Liu, Junze, Qian, Kun, Dubost, Florian, Zhong, Kai, Srinivasan, Arvind, Chen, Nan, Wang, Anping, Zhang, Sam, Mottini, Alejandro, Cui, Qingjun, Wang, Tian
–arXiv.org Artificial Intelligence
Vision-language models (VLMs) exhibit a striking paradox: they can generate executable code that reconstructs a 3D scene from geometric primitives with correct object counts, classes, and approximate positions, yet the same models fail at simpler spatial tasks when directly answering natural-language questions on the same image. We show that 3D geometric primitives (cubes, spheres, cylinders, expressed in executable code) serve as a powerful intermediate representation for spatial understanding, and we exploit this insight through three contributions. First, we introduce SPATIALBABEL, a benchmark that evaluates fourteen VLMs on primitive-based 3D scene reconstruction across six scene-code languages (programming languages and declarative formats for expressing 3D primitive scenes), revealing that the same model's object-detection F1 can vary by up to 5.7 across scene-code languages. Second, we propose Code-CoT (Code Chain-of-Thought), a training-free inference strategy that routes spatial reasoning through primitive-based code generation. Code-CoT improves the SpatialBabel-QA-Score by up to +6.4% on primitive scenes and lifts real-photo CV-Bench-3D accuracy by +5.0% for VLMs with strong coding capabilities. Third, we propose S3-FT (Self-Supervised Spatial Fine-Tuning), which self-supervisedly distills primitive spatial knowledge into general visual reasoning by parsing the model's own primitive-reconstruction code (generated in Three.js)
arXiv.org Artificial Intelligence
May-14-2026