[Paper Review] TOAD-GAN: Coherent Style Level Generation from a Single Example
TOAD-GAN is a one-shot generative adversarial network for procedural content generation of token-based video game levels, inspired by SinGAN but adapted for 2D level maps. It generates stylistically coherent, diverse levels of arbitrary size from a single example, with user-controlled global layout via latent space editing, achieving state-of-the-art pattern modeling and enabling novel level authoring capabilities.
In this work, we present TOAD-GAN (Token-based One-shot Arbitrary Dimension Generative Adversarial Network), a novel Procedural Content Generation (PCG) algorithm that generates token-based video game levels. TOAD-GAN follows the SinGAN architecture and can be trained using only one example. We demonstrate its application for Super Mario Bros. levels and are able to generate new levels of similar style in arbitrary sizes. We achieve state-of-the-art results in modeling the patterns of the training level and provide a comparison with different baselines under several metrics. Additionally, we present an extension of the method that allows the user to control the generation process of certain token structures to ensure a coherent global level layout. We provide this tool to the community to spur further research by publishing our source code.
Motivation & Objective
- To address the challenge of limited training data in procedural content generation (PCG), where most methods require large datasets and fail to preserve style coherence.
- To overcome the limitations of existing PCGML methods that produce mixed-style levels or lack interpretability and controllability.
- To extend the SinGAN architecture for token-based game levels, enabling one-shot training and generation of diverse, coherent levels.
- To introduce a novel downsampling method that preserves critical structural elements in 2D token maps.
- To enable high-level authoring control by conditioning the generation process on user-defined global layouts at the lowest scale.
Proposed method
- Adapts the SinGAN architecture to generate 2D token-based game levels instead of natural RGB images, using multi-scale patch-based feature learning.
- Employs a custom downsampling algorithm on one-hot encoded level maps to preserve small but important structural tokens, avoiding loss during resolution reduction.
- Uses a latent space conditioning mechanism where edits at the lowest scale propagate through all scales via bilinear upsampling, enabling global layout authoring.
- Trains a convolutional classifier on level slices to extract non-linear feature representations, visualized via UMAP to compare generated and real level distributions.
- Applies a Tile Pattern KL-Divergence metric to quantitatively evaluate style fidelity between generated and original levels.
- Uses a WGAN-GP-based training objective with instance normalization and leaky ReLU activations to stabilize training on small, high-contrast token maps.
Experimental results
Research questions
- RQ1Can a GAN-based model generate diverse, coherent video game levels from a single training example while preserving the original style?
- RQ2How can one-shot training be adapted to token-based 2D level maps, which differ fundamentally from natural image data?
- RQ3Can the model support user-guided global level structure authoring without losing stylistic consistency?
- RQ4How do the generated levels compare to real levels in terms of pattern distribution and structural diversity?
- RQ5Can latent space visualization reveal meaningful semantic structure and manifold relationships between level types?
Key findings
- TOAD-GAN successfully generates new, visually coherent Super Mario Bros. and Super Mario Kart levels of arbitrary size from a single example, preserving the style and token distribution of the training level.
- The model achieves state-of-the-art performance in modeling training level patterns, as measured by Tile Pattern KL-Divergence, outperforming multiple baselines.
- Latent space visualization using UMAP reveals distinct clusters corresponding to level types (e.g., overworld, underground, floating platforms), confirming meaningful semantic structure in the learned features.
- The method enables user-controlled global layout authoring: by editing the lowest-scale token map, users can generate infinite variations with consistent style, as demonstrated on Super Mario Kart tracks.
- Generators learn to produce slices not only within the training distribution but also in nearby regions of the level manifold, indicating robust and varied generation.
- The model demonstrates generalization to larger, more complex games like Super Mario Kart by using five convolutional layers and nine scale levels, maintaining coherence and style fidelity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.