Recursive Code World Models: Building Complex Worlds through Recursive Scene Programs
Abstract
Code world models represent worlds as executable programs, but this representation alone does not determine how to construct a complex world. We introduce Recursive Code World Models (RCWM), a framework for reconstructing complex 3D worlds in code from a single reference image. RCWM couples a Recursive Scene Program (RSP) representation with a construction solver that recursively calls itself. An RSP represents the executable world as compositional scene code, while each solver call follows the same complete process: establish the whole, recursively reconstruct unresolved parts, and revisit the whole to refine their composition. This global-local-global recursion gives fine-scale structures their own perception-and-editing loops while preserving scene-wide geometry and relationships. Reference-aligned views propagate a shared camera projection across levels, while parent revisitation addresses boundaries, spatial relations, and shared errors that emerge after local refinement. A vision-language coding agent directly compares reference images with scene renders to guide refinement, recursive descent, and return. Across complex scenes, RCWM outperforms prior code-based image-to-scene reconstruction methods. Ablation studies further support the benefits of recursive construction and suggest that deeper calls can improve finer-scale reconstruction. RCWM provides a recursive construction principle for building complex executable worlds from visual evidence.
Create a lesson
Metadata
- Comments
- 21 pages, 11 figures
Related papers
WorldExpand: Building Coherent 3D Worlds via Sparse Joint Panoramic Expansion
Shared title terminologycs.CVYuyang Yin, Chenjie Cao, Xuhui Zuo et al.
Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models
Shared title terminologycs.CVDezhi Luo, Fengyuan Yu, Haotian Zhang et al.
SceneDesigner3D: Agentic Evolutionary Search for Principled Rearrangement of 3D Indoor Scenes
Shared title terminologycs.CVChandan Yeshwanth, Angela Dai
Was the Model Given the Right Action? Auditing and Repairing Action Interfaces in Navigation World Models
Shared title terminologycs.CVAjmain Istiak Apon, Md Mehedi Hasan, Sejuti Rahman
ShowNow: Fine-Grained Speculative Streaming for Responsive World Models
Shared title terminologycs.CVYiren Song, Guian Fang, Mike Zheng Shou
Find the Clue, Not the Scene: Rethinking Reasoning for Entity Recognition in Vision-Language Models
Shared title terminologycs.CVKyungmin Min, Soyeon Kim, Junseok Kim et al.