Skip to content

Princeton-AI2-Lab/Web-World-Models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Web World Models

arXiv Website License: CC-BY

We introduce the Web World Model (WWM), a middle ground where world state and physics are implemented in web code to ensure logical consistency, while large language models generate context, narratives, and high-level decisions on top of this structured latent state.

Authors: Jichen Feng*, Yifan Zhang*, Chenggong Zhang*, Yifu Lu*, Shilong Liu, Mengdi Wang

[Webpage] [Huggingface]

Abstract

Language agents increasingly require persistent worlds in which they can act, remember, and learn. Existing approaches sit at two extremes: conventional web frameworks provide reliable but fixed contexts backed by databases, while fully generative world models aim for unlimited environments, but the world is constructed primarily through generation, making it harder to maintain a fixed, deterministic global framework, reducing controllability. In this work, we introduce the Web World Model (WWM), a middle ground where world state and physics are implemented in web code to ensure logical consistency, while large language models generate context, narratives, and high-level decisions on top of this structured latent state. We build a suite of WWMs on a realistic web stack, including an infinite travel atlas grounded in real geography, fictional galaxy explorers, web-scale encyclopedic and narrative worlds, and simulation- and game-like environments. Across these systems, we identify practical design principles for WWMs: separating code-defined rules from model-driven imagination, representing latent state as typed web interfaces, and utilizing deterministic generation to achieve unlimited but structured exploration. Our results suggest that web stacks themselves can serve as a scalable substrate for world models, enabling controllable yet open-ended environments.

Citation

@article{feng2025web,
   title   = {Web World Models},
   author    = {Feng, Jichen and Zhang, Yifan and Zhang, Chenggong and Lu, Yifu and Liu, Shilong and Wang, Mengdi},
   journal = {arXiv preprint arXiv:2512.23676},
   year    = {2025}
}