FastCWM: Streaming Code World Models That Learn from Their Own Renders
Hao Wu, Fan Zhang, Yuqi Li, Yizhou Zhao, Yingli Tian, Linsey Pang, Prakhar Mehrotra, Qingsong Wen, Ming-Hsuan Yang
Abstract
Code world models combine executable scene programs with video diffusion for physically structured simulation, yet existing pipelines compile full scripts before offline rendering. Consequently, mid-stream user edits take minutes and force full prefix recomputation, while open-loop execution prevents the code policy from learning from rendered frames. We introduce FastCWM, a chunk-synchronized code world model that allows users to steer a simulation in seconds without re-rendering prefix history and learns from its own rendered feedback. At each -frame causal chunk, a code agent emits compact state-transition patches over explicit D proxies, while a -step streaming renderer synthesizes matching video frames over a sliding key-value cache so edits branch immediately from cached memory. One-to-one chunk alignment further enables render-in-the-loop learning during offline training, where physical and visual verifiers localize errors to individual patches and resample suffixes from cached states before distilling repairs into single-pass inference. Evaluated on our FastCWM-Bench suite across five rigid-body and articulated domains plus a held-out split, FastCWM runs at real-time playback pacing ( s per s chunk on five H GPUs) while keeping interactive edit latency to s ( s warm start) and reaching task success. We plan to release the model weights and source code.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
- Comments
- 18 pages, including supplementary material
Related papers
CohereWorld: Reinforcing Spatial and Long-Horizon Consistency in Interactive World Models
Shared title terminologycs.CVJunyuan Xiao, Yawen Shao, Siyu Ren et al.
Code-based Image Generation: Benchmarking, Baselines, and Improved Rewards
Shared title terminologycs.CVNicole Wang, Zhanhao Liang, Xingjian Leng et al.
OpenEmbed: A Family of Frontier Multimodal Embedding Models with Open Data, Code, and Weights
Shared title terminologycs.CVYanqing Liu, Letian Zhang, Huaxiu Yao et al.
Video Models as Generative Renderers: Foundations, Interfaces, Systems, and Beyond
Shared title terminologycs.CVXinye Li, Liuzhou Zhang, Te Sun et al.
A generalizable vision-language CT foundation model for real-world clinical utility
Shared title terminologycs.CVJiaxin Zhuang, Tao Li, Linshan Wu et al.
LeanWAM: Lean Imagination for Efficient World Action Model Training
Shared title terminologycs.CVRuonan Yu, Junyi Hu, Zigeng Chen et al.