World Craft: Agentic Framework to Create Visualizable Worlds via Text

Jianwen Sun, Yukang Feng, Kaining Ying, Chuanhao Li, Zizhen Li, Fanrui Zhang, Jiaxin Ai, Yifan Chang, Yu Dai, Yifei Huang, Kaipeng ZhangarXiv 2026

TL;DR

World Craft is an agentic framework that democratizes the creation of visualizable, interactive virtual worlds (like AI Town) directly from natural language text. By decoupling abstract intent parsing from geometric layout generation and utilizing a novel "reverse synthesis" error-correction training paradigm, it allows non-programmers to generate complex, physically consistent game environments in minutes, significantly outperforming commercial code agents.

What Problem Does This Paper Address?

Generative agent simulations—where AI agents live, interact, and exhibit emergent behaviors in virtual environments—have become a major research frontier. However, building or customizing the visual worlds these agents inhabit remains a massive bottleneck.

Currently, creating these environments requires professional game development skills in engines like Unity or Godot. While one might expect Large Language Models (LLMs) to bridge this gap by generating layout code directly from text, they face two fundamental challenges:

  1. The Semantic Gap: Human descriptions are abstract and ambiguous ("a cozy, cluttered study"), whereas game engines require precise, deterministic geometric coordinates and physical properties.
  2. Spatial Commonsense Deficits: Standard LLMs frequently suffer from "physical hallucinations," generating layouts with floating objects, overlapping furniture, or completely blocked pathways.
Figure 1: An illustration of our motivation and goal.

Methods

The authors introduce World Craft, which splits the generation process into two primary subsystems: World Guild (the AI agent orchestrator) and World Scaffold (the engine-level infrastructure).

To bridge the semantic gap, the framework formalizes scene design by introducing an intermediate semantic variable, $Z$. Instead of mapping text ($I$) directly to a geometric layout ($G$), it mathematically decouples the process:

$$P(G|I) = \sum_{Z} P(Z|I) \cdot P(G|Z)$$

Here, $Z$ acts as a coordinate-free spatial sketch detailing scene topology and functional distribution.

Figure 2: Architecture of WorldCraft. It comprises the World Guild for intent analysis and layout generation, and the World Scaffold for automated scene construction.

The World Guild multi-agent framework executes this via four specialized roles:

  • Semantic Enrichment (Enricher): Transforms vague user text into the structured topological description ($Z$).
  • Constrained Layout Generation (Manager): Translates $Z$ into precise grid coordinates and object orientations ($G_0$).
  • Iterative Critique and Refinement (Critic): Performs rule-based physical checks (collision and connectivity detection) and feeds corrections back to the Manager.
  • Reference-Guided Asset Synthesis (Artist): Uses a retrieval-augmented texture synthesis strategy to pull style anchors from a pre-built library, ensuring visual consistency across tiles.

Finally, World Scaffold automatically compiles these structured outputs into executable game scenes (e.g., in Godot), complete with navigation meshes and interaction logic.

Datasets

To teach the underlying LLMs (fine-tuned Qwen3 models) how to handle complex spatial constraints, the authors developed a "Reverse Synthesis" data construction pipeline:

  1. Procedural Generation: They used architectural algorithms to generate physically valid "Golden Layouts" ($G_{gold}$) across 2,000 diverse scenarios spanning real-world, literature, film, and game themes.
  2. Reverse Engineering: An LLM translated these layouts back into coordinate-free descriptions ($Z$).
  3. Controlled Destruction: They introduced a "Chaos Monkey" perturbation agent to intentionally corrupt the golden layouts (e.g., creating collisions or blocking doors), generating a robust dataset of errors paired with explicit correction trajectories.

This resulted in a final high-quality dataset of approximately 14,000 samples, split into Dataset A (for spatial planning and error correction) and Dataset B (for mapping multi-density user instructions to semantic sketches).

Figure 3: Two-stage fine-tuning data construction process. Utilizing Gemini-3-Pro as all the agents, we perform 10 runs for each of scenario descriptions. During the filtering process, approximately 5k invalid samples are discarded, and 1.2k long-tail samples undergo human rectification, resulting in a final dataset of approximately 14k samples.

Key Insights and Ideas

  • Decoupling Semantics from Geometry: Trying to solve layout and intent simultaneously is too difficult for LLMs. Separating what should be in a room from where it exactly sits makes the problem highly tractable.
  • Learning from Mistakes is Crucial: Models trained purely on perfect data struggle to fix errors when prompted by a critic. Training the model on explicit error-correction trajectories (the "Chaos Monkey" data) yields a robust, self-correcting planner.
  • Style Anchors Prevent Visual Chaos: Pure text-to-image generation for game assets results in a disjointed "Frankenstein" visual style. Using a retrieved reference image as a style anchor preserves visual harmony.

Key Results

World Craft was evaluated against state-of-the-art general LLMs and commercial code agents (Cursor and Antigravity) using metrics like Collision-Free Rate (CFR) and Room Connectivity Score (RCS).

  • Efficiency Boost: World Craft achieved fully automated, one-shot generation in 4.25 minutes, compared to the 15 to 48 minutes required by human operators debugging with commercial code agents.
  • Superior Layout Rationality: The framework achieved a 0.94 Collision-Free Rate and 0.88 Room Connectivity Score, vastly outperforming the baseline models.
  • Correction Robustness: Models trained on the correction data showed a clear upward trajectory in quality across iterative critique rounds, whereas standard-data models plateaued immediately.
Figure 5: Dynamic changes in model output quality during multi-round correction processes.

Limitations and Future Work

While highly effective for individual environments, World Craft currently faces two main limitations:

  1. Scene Scale: It is optimized for indoor environments (residences, offices) and does not yet support macroscopic, town-level planning involving outdoor terrains, road networks, and multi-building coordination.
  2. Interaction Depth: The generated environments support navigation and basic life simulation, but lack advanced interaction logic like fluid dynamics, destructible environments, or real-time world evolution during simulation.

The authors plan to extend the framework toward open-world multi-scene generation and deeper asset interactivity in future iterations.

Summary updated

BibTeX
@misc{sun2026world,
  author = {Jianwen Sun and Yukang Feng and Kaining Ying and Chuanhao Li and Zizhen Li and Fanrui Zhang and Jiaxin Ai and Yifan Chang and Yu Dai and Yifei Huang and Kaipeng Zhang},
  title = {{World Craft: Agentic Framework to Create Visualizable Worlds via Text}},
  year = {2026},
  eprint = {2601.09150},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.09150},
}
Figure