pySpatial: 为零样本空间推理生成3D视觉程序
pySpatial: Generating 3D Visual Programs for Zero-Shot Spatial Reasoning
AI总结:
pySpatial通过生成3D视觉程序,使大语言模型在无需微调的情况下实现零样本空间推理,并在基准测试和实际导航中表现出色。
摘要:
多模态大语言模型(MLLMs)在通用感知和推理任务中表现出强大的能力,但它们在需要理解3D世界空间结构的任务上仍存在困难。为了解决这一问题,我们引入了pySpatial,一种视觉编程框架,使MLLMs能够通过生成Python代码来与空间工具交互。给定一个图像序列和一个自然语言查询,模型会调用包括3D重建、相机姿态恢复、新视角渲染等空间工具的功能。这些操作将原始2D输入转换为可探索的3D场景,使MLLMs能够对结构化的空间表示进行显式推理。值得注意的是,pySpatial不需要基于梯度的微调,并且在完全零样本设置下运行。在具有挑战性的MindCube和Omni3D-Bench基准测试中,我们的框架pySpatial在多个方面优于强大的MLLM基线;例如,在MindCube上,它比GPT-4.1-mini高出12.94%。此外,我们还进行了现实世界室内外导航实验,机器人能够使用pySpatial生成的路线计划成功穿越复杂环境,突显了我们方法的实际有效性。
英文摘要:
Multi-modal Large Language Models (MLLMs) have demonstrated strong capabilities in general-purpose perception and reasoning, but they still struggle with tasks that require spatial understanding of the 3D world. To address this, we introduce pySpatial, a visual programming framework that equips MLLMs with the ability to interface with spatial tools via Python code generation. Given an image sequence and a natural-language query, the model composes function calls to spatial tools including 3D reconstruction, camera-pose recovery, novel-view rendering, etc. These operations convert raw 2D inputs into an explorable 3D scene, enabling MLLMs to reason explicitly over structured spatial representations. Notably, pySpatial requires no gradient-based fine-tuning and operates in a fully zero-shot setting. Experimental evaluations on the challenging MindCube and Omni3D-Bench benchmarks demonstrate that our framework pySpatial consistently surpasses strong MLLM baselines; for instance, it outperforms GPT-4.1-mini by 12.94% on MindCube. Furthermore, we conduct real-world indoor navigation experiments where the robot can successfully traverse complex environments using route plans generated by pySpatial, highlighting the practical effectiveness of our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。