[Paper Review] Super Mario as a String: Platformer Level Generation Via LSTMs
The authors train Long Short-Term Memory networks to generate Super Mario Bros levels by treating levels as sequences of tiles, exploring eight data representations, and showing that including player path information yields playable, human-like levels.
The procedural generation of video game levels has existed for at least 30 years, but only recently have machine learning approaches been used to generate levels without specifying the rules for generation. A number of these have looked at platformer levels as a sequence of characters and performed generation using Markov chains. In this paper we examine the use of Long Short-Term Memory recurrent neural networks (LSTMs) for the purpose of generating levels trained from a corpus of Super Mario Brothers levels. We analyze a number of different data representations and how the generated levels fit into the space of human authored Super Mario Brothers levels.
Motivation & Objective
- Motivate procedural content generation for platformers without hand-crafted rules by learning from existing levels.
- Investigate how to represent 2D platformer levels as 1D sequences for neural sequence models.
- Assess how different data representations affect the playability and quality of generated levels.
- Demonstrate that including player path information improves level playability and alignment with human-authored levels.
- Provide metrics to compare generated levels to human-authored ones across multiple dimensions.
Proposed method
- Use Long Short-Term Memory networks with 3 layers of 512 units each to predict the next tile in a sequence.
- Represent levels as sequences of tile types (one-hot encoded) rather than vertical slices to improve generalization.
- Explore eight induced data orderings (Bottom-To-Top vs Snaking; with/without Path information; with/without Column Depth information).
- Incorporate a 200-step back-propagation through time window and apply dropout to reduce overfitting.
- Increment a special column-depth token every five columns to help the network capture level progression.
- Train networks on 39 classic SMB levels (and SMB2) with a 70/30 train/eval split and evaluate using negative log-likelihood and other playability metrics.
Experimental results
Research questions
- RQ1How do different representations of 2D platformer levels as 1D sequences affect LSTM-based generation?
- RQ2Does including a simulated or human-derived path through the level improve playability and how is this reflected in metrics?
- RQ3Which combination of ordering (Bottom-To-Top vs Snaking), path information, and column depth information yields the best balance of realism and playability?
- RQ4Can LSTMs generate levels whose properties (linearity, leniency, etc.) closely match human-authored levels?
Key findings
- The best performing data format is Snaking-Path-Depth, achieving the lowest negative log-likelihood on held-out data.
- Including path information substantially improves playability, with path-enabled models outperforming non-path models by roughly a factor of two on evaluation.
- All path-informed generators produce levels with path lengths and other metrics consistent with human-authored levels, and path-aware variants achieve playability higher than previously reported ML-based generators (up to 97% completable).
- Levels generated with path information match the expressive range of original SMB levels across several metrics (linearity, leniency, decoration, path length, etc.).
- The system achieves 97% completable levels, surpassing prior ML-based results (66%) and beating the best human-authored system (94%) from prior competitions.
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.