Level Generation Through Large Language Models

Graham Todd, Sam Earle, Muhammad Umair Nasir, Michael Cerny Green, Julian Togelius

    Research output: Chapter in Book/Report/Conference proceedingConference contribution

    Abstract

    Large Language Models (LLMs) are powerful tools, capable of leveraging their training on natural language to write stories, generate code, and answer questions. But can they generate functional video game levels? Game levels, with their complex functional constraints and spatial relationships in more than one dimension, are very different from the kinds of data an LLM typically sees during training. Datasets of game levels are also hard to come by, potentially taxing the abilities of these data-hungry models. We investigate the use of LLMs to generate levels for the game Sokoban, finding that LLMs are indeed capable of doing so, and that their performance scales dramatically with dataset size. We also perform preliminary experiments on controlling LLM level generators and discuss promising areas for future work.

    Original languageEnglish (US)
    Title of host publicationProceedings of the 18th International Conference on the Foundations of Digital Games, FDG 2023
    EditorsPhil Lopes, Filipe Luz, Antonios Liapis, Henrik Engstrom
    PublisherAssociation for Computing Machinery
    ISBN (Electronic)9781450398565
    DOIs
    StatePublished - Apr 12 2023
    Event18th International Conference on the Foundations of Digital Games, FDG 2023 - Lisbon, Portugal
    Duration: Apr 11 2023Apr 14 2023

    Publication series

    NameACM International Conference Proceeding Series

    Conference

    Conference18th International Conference on the Foundations of Digital Games, FDG 2023
    Country/TerritoryPortugal
    CityLisbon
    Period4/11/234/14/23

    Keywords

    • language models
    • procedural content generation
    • sokoban
    • transformers

    ASJC Scopus subject areas

    • Human-Computer Interaction
    • Computer Networks and Communications
    • Computer Vision and Pattern Recognition
    • Software

    Fingerprint

    Dive into the research topics of 'Level Generation Through Large Language Models'. Together they form a unique fingerprint.

    Cite this