pySpatial: Generating 3D Visual Programs for Zero-Shot Spatial Reasoning
On the map: LLM reasoning → Spatial and embodied reasoning
Abstract (arXiv)
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.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 54 of its 61 references that are in the map. First posted on arXiv 1 Mar 2026.
Builds on
54 of 61 references.
Closest ancestors · 10
Same direction, newest first
- 2025SpatialReasoner: Towards Explicit and Generalizable 3D Spatial Reasoning28 Apr
- 2025Visual Agentic AI for Spatial Reasoning with a Dynamic API10 Feb
- 2024Thinking in Space: How Multimodal Large Language Models See, Remember, and Recall Spaces18 Dec
- 2024Is A Picture Worth A Thousand Words? Delving Into Spatial Reasoning for Vision Language Models21 Jun
- 2024SpatialRGPT: Grounded Spatial Reasoning in Vision Language Models3 Jun
- 2024SpatialVLM: Endowing Vision-Language Models with Spatial Reasoning Capabilities22 Jan
- 2023ManipLLM: Embodied Multimodal Large Language Model for Object-Centric Robotic Manipulation24 Dec
- 2023What's "up" with vision-language models? Investigating their struggle with spatial reasoning30 Oct
- 2022SQA3D: Situated Question Answering in 3D Scenes14 Oct
- 2022Visual Spatial Reasoning30 Apr
Other references · 44
- 2025Qwen2.5-VL Technical Reportcited by 5,418
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,784
- 2024LLaVA-OneVision: Easy Visual Task Transfercited by 2,669
- 2023DUSt3R: Geometric 3D Vision Made Easycited by 1,526
- 2025VGGT: Visual Geometry Grounded Transformercited by 1,475
- 2024Video-MME: The First-Ever Comprehensive Evaluation Benchmark of Multi-modal LLMs in Video Analysiscited by 1,375
- 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,288
- 2023MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilitiescited by 1,221
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
- 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
32 more
- 2024Grounding Image Matching in 3D with MASt3Rcited by 960
- 2024Cambrian-1: A Fully Open, Vision-Centric Exploration of Multimodal LLMscited by 822
- 2024DeepSeek-VL: Towards Real-World Vision-Language Understandingcited by 718
- 2018Open3D: A Modern Library for 3D Data Processingcited by 717
- 2023pixelSplat: 3D Gaussian Splats from Image Pairs for Scalable Generalizable 3D Reconstructioncited by 668
- 2023Visual ChatGPT: Talking, Drawing and Editing with Visual Foundation Modelscited by 659
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
- 2024LLaVA-Video: Video Instruction Tuning With Synthetic Datacited by 550
- 2022Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulationcited by 545
- 2025Continuous 3D Perception Model with Persistent Statecited by 527
- 2023MM-REACT: Prompting ChatGPT for Multimodal Reasoning and Actioncited by 511
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
- 2022Visual Language Maps for Robot Navigationcited by 362
- 2023An Embodied Generalist Agent in 3D Worldcited by 355
- 2024mPLUG-Owl3: Towards Long Image-Sequence Understanding in Multi-Modal Large Language Modelscited by 285
- 2025Spatial-MLLM: Boosting MLLM Capabilities in Visual-based Spatial Intelligencecited by 206
- 2025VLM-3R: Vision-Language Models Augmented with Instruction-Aligned 3D Reconstructioncited by 154
- 2025RoboBrain: A Unified Brain Model for Robotic Manipulation from Abstract to Concretecited by 134
- 2024RoboSpatial: Teaching Spatial Understanding to 2D and 3D Vision-Language Models for Roboticscited by 133
- 2025VGGT-SLAM: Dense RGB SLAM Optimized on the SL(4) Manifoldcited by 130
- 2024TimeSuite: Improving MLLMs for Long Video Understanding via Grounded Tuningcited by 99
- 2025MindCube: Spatial Mental Modeling from Limited Viewscited by 91
- 2025Self-Correcting Decoding with Generative Feedback for Mitigating Hallucinations in Large Vision-Language Modelscited by 44
- 2025VScan: Rethinking Visual Token Reduction for Efficient Large Vision-Language Modelscited by 42
- 2024Dual Prototype Evolving for Test-Time Generalization of Vision-Language Modelscited by 36
- 2025MoVieS: Motion-Aware 4D Dynamic View Synthesis in One Secondcited by 31
- 2025NavBench: Probing Multimodal Large Language Models for Embodied Navigationcited by 24
- 2024Personalizing Multimodal Large Language Models for Image Captioning: An Experimental Analysiscited by 23
- 2025ONLY: One-Layer Intervention Sufficiently Mitigates Hallucinations in Large Vision-Language Modelscited by 15
- 2025Instant4D: 4D Gaussian Splatting in Minutescited by 10
- 2024Enhancing Vision-Language Few-Shot Adaptation with Negative Learningcited by 8
- 20243D Spatial Understanding in MLLMs: Disambiguation and Evaluationcited by 5
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026SpatialClaw: Rethinking Action Interface for Agentic Spatial Reasoningcited by 13
- 2026Evolving Contextual Safety in Multi-Modal Large Language Models via Inference-Time Self-Reflective Memorycited by 5
- 2026SATURN: Symbolic Spatial Reasoning for Multi-Perspective Groundingcited by 2
- 2026World2Mind: Cognition Toolkit for Allocentric Spatial Reasoning in Foundation Modelscited by 1
- 2026AlloSpatial: Agentic Harness Framework for Spatial Reasoning in Foundation Modelscited by 1
- 2026OmniView-Space: Reinforcing Spatial Reasoning via Multi-Perspective Spatial Mappingcited by 1
- 2026Reasmory: 3D Reconstruction as Explicit Memory for VLMs Spatial Reasoningcited by 0
- 2026R3D: Quantitative 3D Spatial Reasoning for Egocentric Wearablescited by 0
- 2026Spatial Memory Agent: Experience-Grounded Procedure Memory for Spatial Intelligencecited by 0
- 2026Video2Skill: From Streaming Experience to Reusable Embodied Skillscited by 0
- 2026Exemplar2VQA: A Scalable Exemplar-Driven Visual Question Answering Generation Framework via Multi-Agent Codingcited by 0
- 2026SpatialOPSD: Self-Distilling Spatial Intelligence from Verified Coding Agent Tracescited by 0
- 2026SpatialOPSD: Self-Distilling Spatial Intelligence from Verified Coding Agent Traces8 Oct 2026
- 2026Exemplar2VQA: A Scalable Exemplar-Driven Visual Question Answering Generation Framework via Multi-Agent Coding29 Sep 2026
- 2026Video2Skill: From Streaming Experience to Reusable Embodied Skills29 Sep 2026
- 2026Spatial Memory Agent: Experience-Grounded Procedure Memory for Spatial Intelligence13 Aug 2026
- 2026R3D: Quantitative 3D Spatial Reasoning for Egocentric Wearables3 Jul 2026
- 2026OmniView-Space: Reinforcing Spatial Reasoning via Multi-Perspective Spatial Mapping1 Jul 2026
- 2026SATURN: Symbolic Spatial Reasoning for Multi-Perspective Grounding21 Jun 2026
- 2026SpatialClaw: Rethinking Action Interface for Agentic Spatial Reasoning11 Jun 2026
- 2026AlloSpatial: Agentic Harness Framework for Spatial Reasoning in Foundation Models8 Jun 2026
- 2026Reasmory: 3D Reconstruction as Explicit Memory for VLMs Spatial Reasoning31 May 2026
- 2026Evolving Contextual Safety in Multi-Modal Large Language Models via Inference-Time Self-Reflective Memory16 Mar 2026
- 2026World2Mind: Cognition Toolkit for Allocentric Spatial Reasoning in Foundation Models10 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025Struct2D: A Perception-Guided Framework for Spatial Reasoning in MLLMs
- 2025Multimodal Spatial Reasoning in the Large Model Era: A Survey and Benchmarks
- 2025Embodied Spatial Intelligence: from Implicit Scene Modeling to Spatial Reasoning
- 2025REM: Evaluating LLM Embodied Spatial Reasoning through Multi-Frame Trajectories
- 2025SURPRISE3D: A Dataset for Spatial Understanding and Reasoning in Complex 3D Scenes
- 2025EmbodiedVSR: Dynamic Scene Graph-Guided Chain-of-Thought Reasoning for Visual Spatial Tasks
- 2025Seeing through Imagination: Learning Scene Geometry via Implicit Spatial World Modeling
- 2025InternSpatial: A Comprehensive Dataset for Spatial Reasoning in Vision-Language Models