mlsanityData to 7 Oct 2026

pySpatial: Generating 3D Visual Programs for Zero-Shot Spatial Reasoning

arXiv 2603.00905 ↗First posted 1 Mar 2026cs.CVcited by 12

On the map: LLM reasoning → Spatial and embodied reasoning

also in 1 more
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

  1. 2025SpatialReasoner: Towards Explicit and Generalizable 3D Spatial Reasoning28 Apr
  2. 2025Visual Agentic AI for Spatial Reasoning with a Dynamic API10 Feb
  3. 2024Thinking in Space: How Multimodal Large Language Models See, Remember, and Recall Spaces18 Dec
  4. 2024Is A Picture Worth A Thousand Words? Delving Into Spatial Reasoning for Vision Language Models21 Jun
  5. 2024SpatialRGPT: Grounded Spatial Reasoning in Vision Language Models3 Jun
  6. 2024SpatialVLM: Endowing Vision-Language Models with Spatial Reasoning Capabilities22 Jan
  7. 2023ManipLLM: Embodied Multimodal Large Language Model for Object-Centric Robotic Manipulation24 Dec
  8. 2023What's "up" with vision-language models? Investigating their struggle with spatial reasoning30 Oct
  9. 2022SQA3D: Situated Question Answering in 3D Scenes14 Oct
  10. 2022Visual Spatial Reasoning30 Apr

Other references · 44

  1. 2025Qwen2.5-VL Technical Reportcited by 5,418
  2. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  3. 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
  4. 2024SAM 2: Segment Anything in Images and Videoscited by 2,784
  5. 2024LLaVA-OneVision: Easy Visual Task Transfercited by 2,669
  6. 2023DUSt3R: Geometric 3D Vision Made Easycited by 1,526
  7. 2025VGGT: Visual Geometry Grounded Transformercited by 1,475
  8. 2024Video-MME: The First-Ever Comprehensive Evaluation Benchmark of Multi-modal LLMs in Video Analysiscited by 1,375
  9. 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,288
  10. 2023MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilitiescited by 1,221
  11. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  12. 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
32 more
  1. 2024Grounding Image Matching in 3D with MASt3Rcited by 960
  2. 2024Cambrian-1: A Fully Open, Vision-Centric Exploration of Multimodal LLMscited by 822
  3. 2024DeepSeek-VL: Towards Real-World Vision-Language Understandingcited by 718
  4. 2018Open3D: A Modern Library for 3D Data Processingcited by 717
  5. 2023pixelSplat: 3D Gaussian Splats from Image Pairs for Scalable Generalizable 3D Reconstructioncited by 668
  6. 2023Visual ChatGPT: Talking, Drawing and Editing with Visual Foundation Modelscited by 659
  7. 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
  8. 2024LLaVA-Video: Video Instruction Tuning With Synthetic Datacited by 550
  9. 2022Perceiver-Actor: A Multi-Task Transformer for Robotic Manipulationcited by 545
  10. 2025Continuous 3D Perception Model with Persistent Statecited by 527
  11. 2023MM-REACT: Prompting ChatGPT for Multimodal Reasoning and Actioncited by 511
  12. 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
  13. 2022Visual Language Maps for Robot Navigationcited by 362
  14. 2023An Embodied Generalist Agent in 3D Worldcited by 355
  15. 2024mPLUG-Owl3: Towards Long Image-Sequence Understanding in Multi-Modal Large Language Modelscited by 285
  16. 2025Spatial-MLLM: Boosting MLLM Capabilities in Visual-based Spatial Intelligencecited by 206
  17. 2025VLM-3R: Vision-Language Models Augmented with Instruction-Aligned 3D Reconstructioncited by 154
  18. 2025RoboBrain: A Unified Brain Model for Robotic Manipulation from Abstract to Concretecited by 134
  19. 2024RoboSpatial: Teaching Spatial Understanding to 2D and 3D Vision-Language Models for Roboticscited by 133
  20. 2025VGGT-SLAM: Dense RGB SLAM Optimized on the SL(4) Manifoldcited by 130
  21. 2024TimeSuite: Improving MLLMs for Long Video Understanding via Grounded Tuningcited by 99
  22. 2025MindCube: Spatial Mental Modeling from Limited Viewscited by 91
  23. 2025Self-Correcting Decoding with Generative Feedback for Mitigating Hallucinations in Large Vision-Language Modelscited by 44
  24. 2025VScan: Rethinking Visual Token Reduction for Efficient Large Vision-Language Modelscited by 42
  25. 2024Dual Prototype Evolving for Test-Time Generalization of Vision-Language Modelscited by 36
  26. 2025MoVieS: Motion-Aware 4D Dynamic View Synthesis in One Secondcited by 31
  27. 2025NavBench: Probing Multimodal Large Language Models for Embodied Navigationcited by 24
  28. 2024Personalizing Multimodal Large Language Models for Image Captioning: An Experimental Analysiscited by 23
  29. 2025ONLY: One-Layer Intervention Sufficiently Mitigates Hallucinations in Large Vision-Language Modelscited by 15
  30. 2025Instant4D: 4D Gaussian Splatting in Minutescited by 10
  31. 2024Enhancing Vision-Language Few-Shot Adaptation with Negative Learningcited by 8
  32. 20243D Spatial Understanding in MLLMs: Disambiguation and Evaluationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 12.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Struct2D: A Perception-Guided Framework for Spatial Reasoning in MLLMs
  2. 2025Multimodal Spatial Reasoning in the Large Model Era: A Survey and Benchmarks
  3. 2025Embodied Spatial Intelligence: from Implicit Scene Modeling to Spatial Reasoning
  4. 2025REM: Evaluating LLM Embodied Spatial Reasoning through Multi-Frame Trajectories
  5. 2025SURPRISE3D: A Dataset for Spatial Understanding and Reasoning in Complex 3D Scenes
  6. 2025EmbodiedVSR: Dynamic Scene Graph-Guided Chain-of-Thought Reasoning for Visual Spatial Tasks
  7. 2025Seeing through Imagination: Learning Scene Geometry via Implicit Spatial World Modeling
  8. 2025InternSpatial: A Comprehensive Dataset for Spatial Reasoning in Vision-Language Models