Table of Contents
Fetching ...

Web World Models

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

TL;DR

The paper presents Web World Models (WWMs) as a practical middle ground between fixed-context web applications and fully generative environments. WWMs split world state into a deterministic physics layer $S^{\phi}$ and a stochastic imagination layer $S^{\psi}$, enabling logical consistency while allowing unlimited, on-demand content via large language models within typed JSON interfaces. A Just-In-Time, hash-based generation strategy provides object permanence without storage, and a fidelity-degradation mechanism ensures robust operation under latency or availability constraints. Across diverse demos—from Infinite Travel Atlas and Galaxy Travel Atlas to AI Spire, AI Alchemy, Cosmic Voyager, WWMPedia, and Bookshelf—the approach demonstrates broad generality and concrete engineering principles: separating concerns, using typed interfaces, deterministic generation, and graceful degradation. The work argues that standard web stacks can subsist as scalable substrates for persistent, open-ended environments, offering controllability and testability alongside imaginative richness and real-world grounding.

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 at the expense of controllability and practical engineering. In this work, we introduce the Web World Model (WWM), a middle ground where world state and ``physics'' are implemented in ordinary 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. Project Page: https://github.com/Princeton-AI2-Lab/Web-World-Models.

Web World Models

TL;DR

The paper presents Web World Models (WWMs) as a practical middle ground between fixed-context web applications and fully generative environments. WWMs split world state into a deterministic physics layer and a stochastic imagination layer , enabling logical consistency while allowing unlimited, on-demand content via large language models within typed JSON interfaces. A Just-In-Time, hash-based generation strategy provides object permanence without storage, and a fidelity-degradation mechanism ensures robust operation under latency or availability constraints. Across diverse demos—from Infinite Travel Atlas and Galaxy Travel Atlas to AI Spire, AI Alchemy, Cosmic Voyager, WWMPedia, and Bookshelf—the approach demonstrates broad generality and concrete engineering principles: separating concerns, using typed interfaces, deterministic generation, and graceful degradation. The work argues that standard web stacks can subsist as scalable substrates for persistent, open-ended environments, offering controllability and testability alongside imaginative richness and real-world grounding.

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 at the expense of controllability and practical engineering. In this work, we introduce the Web World Model (WWM), a middle ground where world state and ``physics'' are implemented in ordinary 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. Project Page: https://github.com/Princeton-AI2-Lab/Web-World-Models.
Paper Structure (48 sections, 3 equations, 37 figures)

This paper contains 48 sections, 3 equations, 37 figures.

Figures (37)

  • Figure 1: Left: Traditional Web Frameworks fix context in databases, limiting scalability. Center: The Web World Model (Ours) decouples logic from content, generating unlimited context via LLMs upon a code-based physics layer without heavy data storage. Right: Fully generative world models can produce unlimited context and rich video/3D content, but when the world is constructed primarily through generation, it is harder to maintain a fixed, deterministic global framework, reducing controllability.
  • Figure 2: Illustrations of a series of Web World Models introduced in this work. Details are presented in Section \ref{['sec:examples']}.
  • Figure 3: The Web World Model Architecture: A separation between the deterministic Code Layer (Physics) and the stochastic AI Layer (Imagination).
  • Figure 4: Deterministic Generation: The inputs (visits) converge on the coordinates, passing through the hash function to produce a frozen seed. This forces the LLM to output the same world state every time.
  • Figure 5: Infinite Travel Atlas interaction flow. (a) The user selects a geographic coordinate on the reactive globe. (b) This input is hashed to retrieve a deterministic seed and location metadata, grounding the request in the Physics layer ($S^{\phi}$). (c) The Agent receives this context and triggers the LLM (Imagination layer $S^{\psi}$) to generate a structured destination guide, determining visual themes and itinerary details. (d) The resulting content is rendered on the client, providing a cohesive, persistent experience without backend storage.
  • ...and 32 more figures