World As a Program: Programmable Spatial Reasoning for Multimodal LLMs
Abstract
WRAP turns ordinary videos into an addressable, executable 3D scene state with grounded object variables, enabling multimodal large language models to perform more reliable spatial reasoning and scene editing.
Although Multimodal Large Language Models (MLLMs) have advanced rapidly, spatial reasoning remains limited by implicit, geometrically unconstrained representations. Meanwhile, existing explicit-geometry approaches may produce inaccurate or incomplete object geometry, limiting the reliability of subsequent spatial reasoning. Recent advances in 3D reconstruction enable explicit scene representations from ordinary videos. This raises a natural question: Can explicit 3D world states be made directly programmable for MLLMs? To this end, we propose WoRld As a Program (WRAP), a framework that converts standard video observations into an addressable and executable 3D scene state for MLLMs, where visual objects are exposed as Grounded Variables for 3D Program Reasoning. WRAP constructs candidate object point clouds from video observations and exposes them as Grounded Variables through persistent visual identifiers. The MLLM selects query-relevant variables from tagged frames and generates executable programs over their associated geometry. Extensive experiments demonstrate the effectiveness of WRAP, which achieves SOTA performance on ReVSI with up to 5.2% accuracy and outperforms prior methods on EditRoom-DB by up to 35.3% IoU. These results highlight the benefits of programmable 3D representations for spatial reasoning and scene editing.
Community
WRAP introduces a novel paradigm for interacting with the 3D world through code. By binding objects in videos to programmable 3D variables, it enables MLLMs to explicitly reason about and manipulate real-world objects through self-generated programs, without relying on predefined spatial tools. This offers a flexible and interpretable interface for video spatial reasoning and 3D scene editing.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- BEV3SR: Evidence-Aware 3D Spatial Reasoning from Video (2026)
- GeoLift: Grounding Video Spatial Reasoning in Explicit 3D Maps (2026)
- WorldMind: Test-Time Scaling for Visual Spatial Reasoning through Latent World Simulation (2026)
- Seek-and-View Reasoning for Multi-View Spatial Understanding (2026)
- Think-Capture: Active 3D Geometry Acquisition for Spatial Reasoning in Vision-Language Models (2026)
- Render to Reason: Novel-View Semantic Prediction Improves Spatial Understanding in VLMs (2026)
- VideoCoS: When Do Executable World States Help Video Reasoning and Generation? (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2611.40532 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper