PCGPT: Procedural Content Generation via Transformers

Sajad Mohaghegh, Mohammad Amin Ramezan Dehnavi, Golnoosh Abdollahinejad, Matin Hashemi
10/3/2023
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

The paper presents the PCGPT framework, an innovative approach to procedural content generation (PCG) using offline reinforcement learning and transformer networks. PCGPT utilizes an autoregressive model based on transformers to generate game levels iteratively, addressing the challenges of traditional PCG methods such as repetitive, predictable, or inconsistent content. The framework models trajectories of actions, states, and rewards, leveraging the transformer's self-attention mechanism to capture temporal dependencies and causal relationships. The approach is evaluated in the Sokoban puzzle game, where the model predicts items that are needed with their corresponding locations. Experimental results on the game Sokoban demonstrate that PCGPT generates more complex and diverse game content. Interestingly, it achieves these results in significantly fewer steps compared to existing methods, showcasing its potential for enhancing game design and online content generation. Our model represents a new PCG paradigm which outperforms previous methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mohaghegh2023pcgpt,
  title  = {PCGPT: Procedural Content Generation via Transformers},
  author = {Sajad Mohaghegh and Mohammad Amin Ramezan Dehnavi and Golnoosh Abdollahinejad and Matin Hashemi},
  year   = {2023},
  eprint = {2310.02405},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.02405v1}
}

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/2310.02405.svg)](https://codeofpaper.com/paper/2310.02405)

Discussion