arXiv:2605.12586cs.CVcs.AI2026-05

用3D几何体代码提升视觉语言模型的空间理解能力

3D Primitives are a Spatial Language for VLMs

论文配图:3D Primitives are a Spatial Language for VLMs
图 1 · 摘自论文原文
  • 用几何体代码作为中间表示,让模型更好理解空间关系
  • 新方法使空间问答准确率最高提升6.4%,跨任务效果显著
  • 无需人工标注,可自监督训练,适合所有视觉语言模型

视觉语言模型存在一个显著矛盾:它们能生成可执行代码,从几何体正确重建3D场景(包含物体数量、类别和近似位置),却在相同图像上无法回答简单空间问题。本文表明,3D几何体(立方体、球体、圆柱体)以可执行代码形式,是强大的空间理解中间表示。提出三项贡献:第一,构建 extbf{ extsc{SpatialBabel}}基准,评估14个VLM在六种场景代码语言上的重建能力,发现同一模型在不同语言间物体检测F1差异达5.7倍;第二,提出无需训练的推理策略Code-CoT,通过生成几何体代码进行空间推理,使SpatialBabel-QA得分提升最多6.4%,真实照片数据集CV-Bench-3D准确率提升5.0%;第三,提出自监督空间微调方法S$^3$-FT,将模型自身生成的Three.js几何体重建结果解析为结构化标注,无须人工标签或教师模型,在仅使用几何体图像训练下,使Qwen3-VL-8B在SpatialBabel-Primitive-QA上提升4.6%-8.6%,在CV-Bench-2D上提升9.7%,在HallusionBench上提升17%,且可跨模型家族迁移。这些结果确立了代码化的几何体作为诊断与迁移工具的双重价值。

原文摘要 · Abstract (English)

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 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 exploit this through three contributions. First, we introduce \textbf{\textsc{SpatialBabel}}, a benchmark evaluating fourteen VLMs on primitive-based 3D scene reconstruction across six \emph{scene-code languages} (programming languages and declarative formats for 3D primitive scenes), revealing that a single model's object-detection F1 can vary by up to $5.7\times$ across languages. Second, we propose \textbf{Code-CoT} (Code Chain-of-Thought), a training-free inference strategy that routes spatial reasoning through primitive-based code generation. Code-CoT lifts the SpatialBabel-QA-Score by up to $+6.4$\% on primitive scenes and real-photo CV-Bench-3D accuracy by $+5.0$\% for VLMs with strong coding capabilities. Third, we propose \textbf{S$^{3}$-FT} (Self-Supervised Spatial Fine-Tuning), which self-supervisedly distills primitive spatial knowledge into general visual reasoning by parsing the model's own Three.js primitive-reconstructions into structured annotations and fine-tuning on the result, with \emph{no human labels and no teacher model}. Training on primitive images alone, S$^3$-FT improves Qwen3-VL-8B by $+4.6$ to $+8.6$\% on SpatialBabel-Primitive-QA, $+9.7$\% on CV-Bench-2D, and $+17$\% on HallusionBench; the recipe transfers across model families. These results establish geometric primitives in code as both a diagnostic and a transferable spatial vocabulary for VLMs. We will release all artifacts upon publication.

空间理解几何体视觉语言模型自监督

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。