Papers
Topics
Authors
Recent
Search
2000 character limit reached

Web World Model (WWM) Overview

Updated 5 February 2026
  • Web World Model (WWM) is a computational framework that fuses deterministic web code with LLM-driven generative processes to create structured virtual environments.
  • It separates the deterministic 'physics' layer (Sφ) from the generative 'imagination' layer (Sψ), ensuring logical consistency and reproducibility.
  • The model leverages familiar web technologies and typed interfaces to enable scalable, persistent, and controllable simulations for autonomous agents.

A Web World Model (WWM) is a computational abstraction that fuses classic deterministic web software infrastructure with LLM–driven generation to simulate, persist, and grow structured worlds for autonomous agents. In this paradigm, the “physics” of the world—state evolution and rules—are encoded in ordinary web stack code (e.g., TypeScript, REST APIs, database schemas), while generative content (narratives, high-level descriptions, surface details) is produced on-demand by LLMs conditioned on the canonical state. This strict separation enables controlled, logically consistent environments with unlimited, open-ended generative richness, leveraging the scalability, persistence, and modularity of web architectures. The WWM paradigm provides a foundational framework for research and deployment of controllable, reproducible, yet unbounded virtual environments for AI agents (Feng et al., 29 Dec 2025).

1. Architectural Decomposition and Core Subsystems

A WWM instantiates its environment as a modular web application with clear division into two subsystems:

  • Physics Layer (SϕS^{\phi}):
    • Implements canonical state and environment rules in deterministic code (TypeScript modules, HTTP endpoints, optionally with a persistent database).
    • State (e.g., inventories, world graphs, session data) is exposed via standard REST/GraphQL APIs.
    • Example data schema:
    • 1
      2
      3
      4
      5
      6
      7
      
      model Planet {
        id        String  @id
        x         Float
        y         Float
        biome     String
        hazard    String
      }
    • Example API handler:
    • 1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      
      // pages/api/planet/[id].ts
      import { NextApiRequest, NextApiResponse } from 'next'
      import prisma from '../../../lib/prisma'
      
      export default async function handler(req: NextApiRequest, res: NextApiResponse) {
        const { id } = req.query
        if (req.method === 'GET') {
          const planet = await prisma.planet.findUnique({ where: { id: String(id) } })
          return res.json(planet)
        }
        // … PUT, POST, DELETE for CRUD …
      }
  • Imagination Layer (SψS^{\psi}):
    • Stateless microservice (often HTTP-based) that delegates to an LLM.
    • Accepts structured (typed JSON) input describing SϕS^{\phi} and returns additional structured generative content (e.g., narrative, dialogue, assets) as JSON.
    • Example usage:
    • 1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      
      interface PlanetNarrative {
        description: string;
        missionHook: string;
      }
      
      async function fetchNarrative(seed: number, statePhi: Planet) : Promise<PlanetNarrative> {
        const prompt = `Planet data: ${JSON.stringify(statePhi)}. Please output JSON {description, missionHook}…`
        const res = await fetch('/api/LLM', {method:'POST', body:JSON.stringify({prompt, seed})})
        return res.json()
      }
  • Request loop:
  1. User action triggers a mutation.
  2. Physics code deterministically updates SϕS^{\phi} and persists state.
  3. SϕS^{\phi} and a deterministic seed h(Sϕ)h(S^{\phi}) are passed as input to the LLM.
  4. The LLM generates SψS^{\psi}.
  5. UI merges SϕS^{\phi} and SψS^{\psi} for rendering (Feng et al., 29 Dec 2025).

2. Separation of Deterministic and Generative Layers

WWMs enforce a strict decomposition: St=(Stϕ,Stψ)S_t = (S_t^{\phi}, S_t^{\psi}) with deterministic physics update followed by generative augmentation: St+1ϕ=fcode(Stϕ,at),St+1ψπθ(St+1ϕ)S_{t+1}^{\phi} = f_{\text{code}}(S_t^{\phi}, a_t), \quad S_{t+1}^{\psi} \sim \pi_\theta(\cdot \mid S_{t+1}^{\phi})

Sample tick pseudocode:

1
2
3
4
5
def step(state_phi, action):
    new_phi = physics_engine(state_phi, action)      # deterministic
    seed = hash(new_phi)                            # e.g., murmurHash(x, y)
    new_psi = LLM.generate(prompt_template(new_phi), seed=seed)
    return new_phi, new_psi

This strict ordering guarantees:

  • Logical consistency and reversibility in SϕS^{\phi}
  • Infinite surface diversity in SψS^{\psi}
  • Determinism and reproducibility (by controlling all sources of randomness via seeds and canonical prompt templates)

The system diagram is:

1
2
3
4
5
6
7
[User Action]
     ↓
[Physics Layer: f_code]
     ↓ (state S^{\phi}_{t+1})
[Imagination Layer: π_θ]
     ↓ (state S^{\psi}_{t+1})
[Renderer]
(Feng et al., 29 Dec 2025)

3. Typed Interfaces, JSON Schemas, and Deterministic State

Both deterministic and generative states (SϕS^{\phi}, SψS^{\psi}) are explicitly typed using interface definitions and enforced schemas:

  • TypeScript interfaces or JSON Schema for all objects.
  • Example JSON schema:
    1
    2
    3
    4
    5
    6
    7
    8
    
    {
      "type": "object",
      "properties": {
        "description": { "type": "string" },
        "missionHook": { "type": "string" }
      },
      "required": ["description", "missionHook"]
    }
  • All CRUD operations (GET, POST, PUT, DELETE) are performed via standard REST endpoints, ensuring composability and validation at the API and UI level.

Determinism is achieved via:

  • Hashing state coordinates and metadata to derive a seed:
    1
    
    seed = h(x, y, otherFixedMetadata)
  • Keeping LLM sampling temperature low or zero, small top-k/nucleus filtering, and strictly templated prompts.

This approach ensures object permanence and reproducible world expansions: re-visiting a particular (x,yx, y) or state returns the same SψS^{\psi}; no extra backend storage is required (Feng et al., 29 Dec 2025).

4. Core Principles and Case Studies

Four foundational design principles drive the WWM methodology:

  • Separation of Concerns: Deterministic, testable “physics” code is strictly separated from open-ended generative “imagination.”
  • Typed Interfaces: All model output is structurally typed (JSON, TypeScript schemas).
  • Deterministic Generation: Deterministic seeding, prompt templates, and backend logic give reproducible content for the same underlying state.
  • Graceful Degradation: Fallback to cached or manually-authored content if the LLM is down, with the physics layer remaining operational.

Case Study A: Infinite Travel Atlas

  • Client: React + WebGL; arbitrary lens on geographic coordinates.
  • Physics: Typed coordinates, procedural hash for object id/seed.
  • Imagination: LLM generates “day-by-day itinerary” or region narrative as JSON based on seeded prompt; result is persistent, coherent guides for any point on the globe without explicit storage.

Case Study B: Galaxy Travel Atlas

  • Physics: Procedural generation (Perlin/simplex noise) to instantiate large-scale maps.
  • Imagination: LLM-staged narrative (terrain, sky, hazards, lore) keyed to deterministic seeds per cluster/planet.
  • Fallback: Pre-authored template logs keyed to biome/hazard for robustness.

In each case, WWMs yield high-content diversity and navigational scale with full testability and fault tolerance in the core state layer (Feng et al., 29 Dec 2025).

5. Benefits, Limitations, and Future Directions

Benefits:

  • Controllability: Deterministic rules and resources enforce logic.
  • Scalability: Worlds expand lazily on-demand; no need for massive database pre-generation.
  • Debuggability: Typed contracts enable fast error surfacing during development.
  • Persistability: Object permanence via seeded deterministic generation.
  • Graceful Degradation: Physics and state manipulation are fully operational even with upstream LLM outages.

Limitations:

  • LLM Latency & Cost: Reliance on LLM calls can be expensive; can be mitigated by caching and selective evaluation.
  • Model Drift: LLM weight or prompt changes may affect determinism; version and prompt control are essential.
  • Modality Limitation: Current focus is on structured text; extensions to image, audio, and 3D content remain to be fully integrated.
  • Multi-Agent Consistency: Shared global state for multi-agent or high-concurrency worlds requires further engineering.
  • Evolutionary World Rules: Potential future development is letting the physics code itself evolve or learn from agent feedback (Feng et al., 29 Dec 2025).

6. Significance in the Broader Context

The WWM paradigm situates itself between rigid static-engine environments and unconstrained openendedness of pure neural world models. By embedding the "world model" into familiar, production-grade web stacks, it enables rapid prototyping, fault tolerance, and seamless merging of symbolic (“hard rules”) and subsymbolic (“LLM-powered content”) generative mechanisms.

Key implications include:

  • Using pervasive web infrastructure as a substrate blurs the line between simulated and operational environments; deployment leverages existing web frameworks and testing practices.
  • Deterministic “slice” through world-history enables both persistent narratives and auditable/testable execution traces.
  • The modular composition paves the way for hybrid (symbolic+neural) approaches in simulation, reinforcement learning environments, large-scale interactive fiction, and persistent agentic worlds (Feng et al., 29 Dec 2025).

The design patterns and architectural methodologies introduced by WWMs now underpin multiple contemporary web agent training and simulation methodologies, informing scalable, composable, and robust approaches to world modeling in modern AI research.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)
1.
Web World Models  (2025)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Web World Model (WM).