World As a Program: Programmable Spatial Reasoning for Multimodal LLMs

Wenbin Wang, Xianlong Liu, Liang Ding, Mengya Han, Han Hu, Yong Luo, Bo Du, Pan Zhou

Wuhan University · Alibaba Group · Beijing Institute of Technology · Singapore Management University

Published November 30, 2026 · on the feed December 2, 2026 · ▲ 2 · arXiv 2611.40532

Vision & multimodalReasoning & math3D, worlds & games No code arXiv ↗Hugging Face ↗

The abstract

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.

The Brief

2:19

A short podcast summary of the paper. Written and voiced by AI.

Transcript

World As a Program. Programmable Spatial Reasoning for Multimodal LLMs. By Wenbin Wang and seven others, from Wuhan University, Alibaba Group, and two other institutions. Published on the thirtieth of November.

Multimodal large language models have advanced quickly, but spatial reasoning still lags. Their representations of space are implicit and carry no geometric constraints. Approaches that do use explicit geometry have their own weakness: the object geometry they produce may be inaccurate or incomplete, and whatever reasoning follows inherits those errors. Meanwhile, recent 3D reconstruction can recover explicit scene representations from ordinary videos. That raises a natural question. Could an explicit 3D world state be made directly programmable for a model?

WoRld As a Program, or WRAP, answers by turning standard video observations into a 3D scene state that is both addressable and executable. Visual objects in the scene are exposed as Grounded Variables, things the model can refer to by name and compute over, which the authors call 3D Program Reasoning. The scene stops being a picture to describe and becomes a set of variables to operate on.

The pipeline has two halves. First, WRAP constructs candidate object point clouds from the video observations and exposes each one as a Grounded Variable, tied to a persistent visual identifier. Second, the model looks at tagged frames, selects the variables relevant to the query, and writes an executable program over the geometry attached to them. The answer comes from running that program, rather than from the model estimating space in its head.

Extensive experiments support the approach. WRAP reaches state-of-the-art performance on ReVSI, with gains of up to five point two percent in accuracy. On EditRoom-DB it outperforms prior methods by up to thirty-five point three percent in IoU.

The two benchmarks point at two uses for the same representation: answering spatial questions, and editing scenes. Both benefit, the authors argue, because the world has been made programmable. Once objects are variables with real geometry behind them, a spatial question becomes something to compute.

That framing also explains the weight placed on persistent identifiers. A variable is only useful if it keeps naming the same object. WRAP ties each candidate object to a persistent visual identifier, and the model picks its variables out of frames that carry those tags before it writes a single line of the program.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.