Word2World: Generating Stories and Worlds through Large Language Models

Muhammad U. Nasir, Steven James, Julian Togelius
5/6/2024
cs.CLcs.AI

Official code: umair-nasir14/Word2World (69 stars, Apache-2.0, last commit 2026-03-16).

Abstract

Large Language Models (LLMs) have proven their worth across a diverse spectrum of disciplines. LLMs have shown great potential in Procedural Content Generation (PCG) as well, but directly generating a level through a pre-trained LLM is still challenging. This work introduces Word2World, a system that enables LLMs to procedurally design playable games through stories, without any task-specific fine-tuning. Word2World leverages the abilities of LLMs to create diverse content and extract information. Combining these abilities, LLMs can create a story for the game, design narrative, and place tiles in appropriate places to create coherent worlds and playable games. We test Word2World with different LLMs and perform a thorough ablation study to validate each step. We open-source the code at https://github.com/umair-nasir14/Word2World.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Word2World is an LLM-based PCG system that creates playable 2D world from stories

6911PythonApr 24, 20247 months agoApache-2.0
game-designlarge-language-modelsopen-ended-evolutionopen-ended-learningopen-endedness+1 more

Cite this paper

@article{nasir2024wordworld,
  title  = {Word2World: Generating Stories and Worlds through Large Language Models},
  author = {Muhammad U. Nasir and Steven James and Julian Togelius},
  year   = {2024},
  eprint = {2405.06686},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.06686v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.06686.svg)](https://codeofpaper.com/paper/2405.06686)

Discussion