Programmable World Model

Zheng-Hui Huang, Guixu Lin, Jiacheng Lin, Yi-Chuan Huang, Ruihan Yu, Muyao Niu, Siqi Yang, Yu-Lun Liu, Yung-Yu Chuang, Kaipeng Zhang, Zhixiang WangarXiv 2026

TL;DR

The Programmable World Model framework decouples world-state evolution from visual generation by using an AI coding agent to translate natural language into executable game logic. By tracking state via 3D oriented bounding boxes and using a lightweight symbolic engine to enforce rules, it achieves precise entity-level control and long-term state persistence, significantly outperforming purely generative video world models.

Overview of the Programmable World Model

What Problem Does This Paper Address?

Recent generative video world models have shown impressive capabilities in synthesizing realistic, interactive environments. However, they struggle to act as reliable "world engines" for applications like video games because they lack an explicit, persistent memory of the world state. If an object moves off-screen or becomes occluded, a purely generative model often forgets it exists.

Furthermore, these models cannot inherently enforce abstract, programmable rules (e.g., "if a character's health reaches zero, they must transition to a fallen state"). Trying to guide these complex mechanics purely through text prompts or action tokens inevitably leads to state drift, logical contradictions, and a lack of granular control over individual entities.

Methods

The authors address this by completely separating the physics/logic engine from the visual renderer:

  1. Agent-Orchestrated Box World: A vision-language model (VLM) coding agent takes natural language instructions and generates an executable program defining entity attributes (like HP) and state-transition rules. A lightweight symbolic engine executes this program to maintain a canonical 3D world state ($s_t$) over time.
  2. Control Compilation: To bridge the gap between abstract code and raw pixels, the system represents entities using state-augmented 3D Oriented Bounding Boxes (OBBs). A deterministic compiler projects these OBBs onto the target camera trajectory, generating three pixel-aligned control maps:
  3. Identity Map: Assigns fixed embeddings to instances to preserve appearance across long occlusions.
  4. Semantic Map: Encodes text embeddings of object categories.
  5. Direction Map: Quantizes camera-relative object velocity into seven states (forward, backward, left, right, static, up, down).
  6. Generative Renderer: A Diffusion Transformer (DiT) backbone equipped with a trainable Structured Spatial ControlNet ingests these compiled maps alongside temporal history and geometry-aligned spatial memory to render the final video frames.

The authors also introduce an automated data curation pipeline to extract 3D OBBs, camera parameters, and trajectories from raw, unlabeled gameplay videos to train the model.

System Architecture

Datasets

  • Training Data: HUD-free gameplay videos collected from Cyberpunk 2077, Forza Horizon 6, and Grand Theft Auto V, processed automatically via their curation pipeline to generate paired video-control training data.
  • CombatStateBench: A new controlled benchmark introduced by the authors consisting of 50 combat scenario clips. It evaluates whether generated videos faithfully preserve engine-maintained states (such as alive-character counts and death states) under complex camera and entity movements.

Key Insights and Ideas

  • The Abstraction Sweet Spot: Choosing the right intermediate representation is a balancing act. Text prompts are too weak to enforce geometry, while full 3D meshes or skeletons are too difficult to programmatically generate at inference time. 3D OBBs hit the sweet spot—strong enough to guarantee spatial and semantic consistency, yet simple enough to evolve programmatically while letting the generative model handle complex animations and textures.
State representation trade-offs
  • Decoupling Object vs. Camera Motion: By calculating object direction from world-space velocity rather than image-space displacement, the model successfully resolves camera-object motion ambiguity. A static object stays "static" in the control map even if a panning camera makes it move across the screen, allowing the renderer to separate camera ego-motion from actual object behavior.
  • Authoritative State vs. Predicted State: Unlike prior models that try to predict the next state using neural networks (which accumulates errors), this framework uses a deterministic, lightweight code execution engine to maintain the ground truth of the world.

Key Results

On CombatStateBench, the Programmable World Model dramatically outperformed state-of-the-art interactive video world models like LingBot-World-V2 and YUME:

  • Count Accuracy: Achieved 94.00%, compared to 40.75% (LingBot) and 32.00% (YUME).
  • State Accuracy (Death Realization): Achieved 98.00%, compared to 8.00% (LingBot) and 58.00% (YUME).
Qualitative comparison of entity-death interactions

In terms of video quality, it also set a new standard across VBench metrics, hitting 94.74% on Subject Consistency and 99.00% on Temporal Stability, proving that structural constraints actually improve visual fidelity rather than degrading it.

Limitations and Future Work

  • Rigid Box Limitations: While the generative renderer handles fine-grained details like non-rigid deformations and character animations, the underlying state engine is restricted to rigid 3D bounding boxes. Complex physical interactions (like cloth simulation or fluid dynamics) or detailed character poses cannot be explicitly programmed.
  • Upstream Dependencies: The framework relies heavily on the accuracy of upstream 3D detectors and camera estimators (like ViPE and SAM3) during its automated data curation pipeline; tracking errors in these tools can propagate into the training data.

Summary updated

BibTeX
@misc{huang2026programmable,
  author = {Zheng-Hui Huang and Guixu Lin and Jiacheng Lin and Yi-Chuan Huang and Ruihan Yu and Muyao Niu and Siqi Yang and Yu-Lun Liu and Yung-Yu Chuang and Kaipeng Zhang and Zhixiang Wang},
  title = {{Programmable World Model}},
  year = {2026},
  eprint = {2609.10540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.10540},
}
Figure