Code Plans, Diffusion Renders: Open-Ended Generative World Modeling

Zixun Fang, Yawen Shao, Kai Zhu, Jie Xiao, Shihan Chen, Yu Liu, Xueyang Fu, Yang Cao, Wei Zhai, Zheng-Jun ZhaarXiv 2026

TL;DR

CoDeR introduces a new neuro-symbolic paradigm for generative world modeling by decoupling underlying world logic from visual rendering. Instead of predicting pixels directly, CoDeR uses LLM-based coding agents to build an explicit, executable 3D "whitebox" world in code, while video diffusion models act as "artists" to render the final visual observations. This separation enables persistent long-term memory, open-ended interactions, and autonomous out-of-sight evolution that purely video-based world models struggle to achieve.

What Problem Does This Paper Address?

Most recent video world models attempt to simulate environments by implicitly encoding world states within visual histories (i.e., predicting the next set of pixels based on previous frames). However, pixels only reveal a fraction of a world.

This observation-centric approach suffers from three major flaws:

  1. The Out-of-Sight Dilemma: When an object or agent leaves the camera view, a pure video model effectively stops tracking its internal state or evolution.
  2. Weak Long-Term Memory: Re-visiting a location after a long rollout often results in structural drift or forgotten details.
  3. Lack of Explicit Rules: Abstract constraints like physical laws, traffic regulations, or character reputations cannot be reliably maintained purely through pixel synthesis.

CoDeR tackles these challenges by building an explicit, persistent, and executable backend representation of the world before rendering a single pixel.

Methods

Figure 2: Method Overview. Left: The pipeline of our CoDeR. The God of Concepts conveys its intent to the Creator. The Creator (LLM) orchestrates the entire world, while the Executors (coding agents) implement the whitebox world. Finally, the Artists (video generation models) render observations along the trajectories sampled by the Travelers. Right: The Observation as World Registration paradigm. Once an observation is generated, it is registered back into the world using its depth map.

CoDeR orchestrates a collaborative multi-agent framework divided into five distinct roles:

  • The God of Concepts: Receives the high-level user intent (text or image prompts).
  • The Creator: An LLM that acts as the "main brain," defining the overarching rules, mechanics, and thematic direction.
  • Executors: Multimodal LLM coding agents that translate the Creator's blueprint into executable Three.js code, instantiating a 3D "whitebox" world.
  • Artists: Video generation models (specifically a tuned MiniMax H3 model) that transform the plain whitebox geometry into rich, stylized visual videos.
  • Travelers: Agents or camera viewpoints that explore the environment.

Key Innovations:

  • Logical Spaces: To handle complex environments, the global construction objective is decomposed into a graph of local modules with strict interface contracts, allowing multiple Executors to build different systems (e.g., traffic, architecture) concurrently.
  • Observation as World Registration: When an Artist renders a scene, a partial registration mechanism back-projects a subset of the generated pixels onto the 3D whitebox world using depth maps. This ensures that previously generated visual details are retained and reused when a Traveler revisits a location.
  • Visual Cue Hacking: To prevent the diffusion model from producing flat, overly rigid "render-style" outputs, the authors extract Canny edges and depth maps from the whitebox world to guide the model via ControlNet, treating the 3D data as a structural scaffold rather than a strict pixel-level target.

Datasets

The framework was evaluated using:

  • WorldScore: A comprehensive benchmark suite designed to evaluate world generation capabilities across dimensions like camera control, object consistency, and motion smoothness.
  • VBench: Used to assess fine-grained video generation quality attributes such as imaging quality, aesthetic quality, and subject consistency.

Key Insights and Ideas

  • Neuro-Symbolic Synergy: Splitting the workload—letting code handle the deterministic physics, states, and geometry while diffusion models handle the stochastic, creative texturing—bypasses the fundamental scaling limitations of pure video generation.
  • True Out-of-Sight Evolution: Because the underlying Three.js world runs continuously in the background, events can happen off-screen. For example, a tap can continue pouring water into a cup even when the camera pans away, correctly showing a higher water level when the camera returns.
  • Extensible Action Spaces: Traditional world models rely on predefined action spaces (e.g., discrete navigation commands). CoDeR allows the Creator to define entirely new, open-ended actions (like "play the piano" or "ride a dragon") which the Executors dynamically implement via code.

Key Results

Figure 3: We sample a rotational trajectory to examine whether the “Coding World System” mark is consistently maintained on the wall. The results show that ABot-World exhibits severe quality degradation, while Matrix- Game 3.0 fails to preserve the mark. LingBot-World fails to accurately respond to the control signals, resulting in duplicated frames. In contrast, our method successfully follows the rotational trajectory while consistently preserving the mark on the wall.

CoDeR achieves state-of-the-art performance on the WorldScore benchmark, outperforming existing models like ABot-World, Matrix-Game 3.0, and LingBot-World across all 10 evaluation metrics.

  • Quantitative Superiority: CoDeR achieved an Average WorldScore of 87.88, significantly higher than the next best competitor, LingBot-World, at 74.79. Notably, it scored 98.44 in Content Alignment and 88.65 in 3D Consistency.
  • Qualitative Memory & Interaction: In 360-degree rotation tests, CoDeR perfectly preserved text written on walls where other models suffered from severe quality degradation or structural loss. It also successfully handled complex environment-level interactions, such as physically opening a door to reveal a new room, whereas baseline models like EgoSim failed.
Figure 4: Left: We support open-ended interactions ranging from playing the piano to riding a dragon. Right: Comparison with EgoSim, which fails to open the door, while our method successfully opens it and reveals the new environment.

Limitations and Future Work

  • Long-Horizon Visual Drift: While the underlying code representation is infinitely persistent, the visual Artist model generates video in chunks (124 frames). Over extremely long rollouts (around 5,000+ frames), visual errors and distribution shifts gradually accumulate, causing noticeable aesthetic degradation.
  • Whitebox Modeling Constraints: Complex hand-object interactions remain difficult to simulate accurately in code, occasionally leading to distorted hand poses or 3D object interpenetration (clipping).
  • Future Direction (Disentangled Generation): The authors propose moving away from generating monolithic RGB frames. Instead, future iterations of the Artist model could output factorized visual layers—such as Albedo, Normal, Roughness, and Irradiance maps—making scene editing and re-rendering within the world model much cleaner.

Summary updated

BibTeX
@misc{fang2026code,
  author = {Zixun Fang and Yawen Shao and Kai Zhu and Jie Xiao and Shihan Chen and Yu Liu and Xueyang Fu and Yang Cao and Wei Zhai and Zheng-Jun Zha},
  title = {{Code Plans, Diffusion Renders: Open-Ended Generative World Modeling}},
  year = {2026},
  eprint = {2609.26458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.26458},
}
Figure