Recursive Code World Models: Building Complex Worlds through Recursive Scene Programs

Zhiqi Li, Yuxuan Liao, Bo Zhu

Georgia Institute of Technology

Published September 10, 2026 · on the feed September 11, 2026 · ▲ 33 · arXiv 2609.11499

3D, worlds & gamesCode & softwareVision & multimodal Code arXiv ↗Hugging Face ↗

The 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.

The Brief

2:26

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

Transcript

Recursive Code World Models. Building Complex Worlds through Recursive Scene Programs. By Zhiqi Li and two others, from the Georgia Institute of Technology. Published on the tenth of September. Its code repository is public and real: about thirty source files.

A code world model represents a world as an executable program. That is a useful representation, but it says nothing about how to build a complex world in it. Writing out an intricate 3D scene as code, from a picture, is a construction problem, and the representation alone does not solve it.

Recursive Code World Models, RCWM, is a framework for reconstructing a complex 3D world in code from a single reference image. It pairs two things. The first is a representation, the Recursive Scene Program, or RSP, which writes the executable world as compositional scene code. The second is a construction solver that calls itself recursively.

Every call of the solver follows the same complete process. Establish the whole. Recursively reconstruct the parts that are still unresolved. Then revisit the whole to refine how those parts compose. This global, local, global recursion gives fine-scale structures their own loops of perception and editing, while the geometry and relationships of the scene as a whole are preserved. Each part is treated as a smaller world in its own right, rebuilt with the same care as the scene that contains it, and then fitted back in.

Two mechanisms keep the levels consistent. Views aligned with the reference propagate a shared camera projection from one level to the next. And revisiting the parent handles what only appears after local refinement: boundaries, spatial relations, and errors shared between parts. Guiding all of it is a vision-language coding agent that compares the reference image directly with renders of the scene, and decides when to refine, when to descend a level, and when to return.

Across complex scenes, RCWM outperforms earlier code-based methods for reconstructing scenes from images. Ablation studies support the benefit of building recursively, and suggest that deeper calls can improve reconstruction at finer scales. Depth of recursion, on that evidence, is a lever: going further down helps with the smallest structures.

What RCWM offers is a principle of construction rather than a new representation alone. A complex world is built the way the solver builds every piece of it: look at the whole, work on the parts, then look at the whole again. Because the same process repeats at every depth, fine detail and overall layout are handled by one mechanism instead of two.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

A whole town, from a single picture, written as code. The big shapes are easy; the windows and signs are not.

You are rebuilding a whole town as executable 3D code, working from a single picture. Streets and terrain set the layout; buildings hold facades, and facades hold windows, signs and ornaments.

The road ahead

  1. 1 · The problem ~7 min Rebuilding a detailed town as 3D code from one picture means getting tiny parts right without breaking how they fit together.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Every part is treated as a smaller world: build its whole, rebuild its unresolved parts the same way, then look at the whole again.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Build the scene in three steps per call: establish the whole, recursively reconstruct unresolved parts, then revisit the whole to refine their composition.
  6. 6 · The experiment ~6 min You’ll guess: In the ablations, what did allowing deeper recursive calls do for reconstruction of the finest structures?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

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.