This paper, recently accepted at the IEEE Conference on Games, explores the frontier of Procedural Content Generation (PCG) by leveraging the reasoning capabilities of Large Language Models (LLMs) to build complex 3D structures in Minecraft.
TL;DR
Researchers have developed T2BM (Text to Building in Minecraft), a framework that transforms simple natural language prompts into fully realized 3D buildings. By using a structured JSON "interlayer" and a dedicated repairing module, the system allows LLMs like GPT-4 to design both the exterior facades and functional interior scenes of Minecraft houses with high architectural consistency.
What Problem Does This Paper Address?
While Procedural Content Generation (PCG) has seen massive success in 2D games (like generating Super Mario Bros. levels), 3D environments present a much steeper challenge. Generating a 3D building isn't just about placing blocks; it requires an understanding of spatial hierarchy, structural integrity (walls, roofs), and functionality (doors that work, beds in the right place).
Existing 3D generation methods often rely on rigid templates or complex evolutionary algorithms that are slow and struggle to incorporate specific human feedback. The authors address the "non-trivial challenge" of allowing a user to simply say, "Build me a wooden house with windows," and receiving a playable, aesthetically pleasing 3D result.
Methods
The authors propose the T2BM model, which consists of three core modules:
- Input Refining Module: LLMs often perform better with detailed instructions. T2BM takes a simple user prompt and asks an LLM to "expand" it into a rich architectural description, specifying dimensions, materials (e.g.,
spruce_planks), and interior layouts. - Interlayer Representation: Instead of asking the LLM to output raw 3D coordinates (which is error-prone), they designed a JSON-based interlayer. This schema categorizes blocks into structural (walls, floors) and functional (doors, crafting tables). Structural blocks use start/end coordinates for efficiency, while functional blocks include "state" data (e.g., which way a door faces).
- Repairing Module: LLMs occasionally "hallucinate" block names or use incorrect syntax (like
Red Bedinstead ofred_bed). The repairer acts as a post-processing filter, correcting naming styles, filling in missing attributes, and ensuring the materials exist in the specific version of Minecraft being used.
The final output is fed into the Generative Design Python Client (GDPC), which interfaces directly with the Minecraft game engine to place the blocks.
Datasets
The study does not use a traditional pre-existing dataset. Instead, it evaluates the system using:
- Human-crafted prompts: Simple inputs like "A wooden house with windows."
- Minecraft Wiki descriptions: To test the system's ability to handle highly detailed, technical descriptions of structures like "pillboxes" or "snowhouses."
- Evaluation Trials: The researchers ran 50 trials for each configuration (GPT-3.5 vs. GPT-4, raw vs. refined prompts) to gather statistical data on performance.
Key Insights and Ideas
- The "Refinement" Boost: One of the biggest "aha moments" was the impact of prompt refinement. Turning a five-word prompt into a detailed paragraph significantly increased the "satisfaction" rate (how well the building matched the user's intent).
- JSON as a Spatial Bridge: The paper demonstrates that JSON is an ideal "middle ground" language. It is structured enough for a computer to parse into 3D space but semantic enough for an LLM to "understand" architectural relationships.
- Structural vs. Functional: By separating "dumb" blocks (walls) from "smart" blocks (interactive furniture), the system ensures that the generated buildings aren't just sculptures—they are playable spaces.
- GPT-4’s "Common Sense": GPT-4 showed a remarkable ability to generate "complete" buildings (fully sealed structures) even with minimal instructions, whereas GPT-3.5 often left gaps or failed to connect roofs to walls.
Key Results
The researchers measured two main metrics: Completeness (C) (is it a sealed, connected structure?) and Satisfaction (S) (does it contain all requested materials?).
- GPT-4 is the superior architect: With refined prompts, GPT-4 achieved a completeness rate of 82% and a satisfaction rate of 48%.
- Refinement matters: For GPT-3.5, refining the prompt jumped the satisfaction rate from a measly 8% to 28%.
- Diminishing returns for GPT-4: Interestingly, GPT-4 is so capable that it can generate relatively complete buildings (80%) even with "raw," unrefined prompts, suggesting it has a strong internal model of what a "house" should look like.
Limitations and Future Work
Despite the success, the authors note several areas for improvement:
- Satisfaction Gap: Even the best model (GPT-4) only hit a 48% satisfaction rate for complex requests, meaning it still misses some requested details or interior items.
- Self-Correction: Currently, the "Repairing Module" is an external script. The authors want to move toward "self-repairing" prompts where the LLM identifies its own architectural errors.
- Beyond Minecraft: While Minecraft is a perfect grid-based testbed, the authors aim to expand T2BM to more complex, non-voxel 3D game environments in the future.
Summary updated