Skip to main content
QUICK REVIEW

[Paper Review] Illuminating Mario Scenes in the Latent Space of a Generative Adversarial Network

Matthew C. Fontaine, Ruilin Liu|arXiv (Cornell University)|Jul 10, 2020
Artificial Intelligence in GamesComputer Science8 citations
TL;DR

This paper proposes using quality diversity algorithms—specifically MAP-Elites and CMA-ME—to explore the latent space of a GAN trained on Super Mario Bros. level scenes, enabling designers to generate diverse, high-quality levels with specified gameplay characteristics. CMA-ME outperformed other methods in coverage and quality, producing levels that were both stylistically similar to human-designed levels and varied in mechanics like enemy count and terrain complexity.

ABSTRACT

Generative adversarial networks (GANs) are quickly becoming a ubiquitous approach to procedurally generating video game levels. While GAN generated levels are stylistically similar to human-authored examples, human designers often want to explore the generative design space of GANs to extract interesting levels. However, human designers find latent vectors opaque and would rather explore along dimensions the designer specifies, such as number of enemies or obstacles. We propose using state-of-the-art quality diversity algorithms designed to optimize continuous spaces, i.e. MAP-Elites with a directional variation operator and Covariance Matrix Adaptation MAP-Elites, to efficiently explore the latent space of a GAN to extract levels that vary across a set of specified gameplay measures. In the benchmark domain of Super Mario Bros, we demonstrate how designers may specify gameplay measures to our system and extract high-quality (playable) levels with a diverse range of level mechanics, while still maintaining stylistic similarity to human authored examples. An online user study shows how the different mechanics of the automatically generated levels affect subjective ratings of their perceived difficulty and appearance.

Motivation & Objective

  • To address the challenge of exploring the latent space of GANs for procedural game level generation in a way that is intuitive for human designers.
  • To enable designers to specify gameplay measures (e.g., number of enemies, obstacles) rather than relying on hard-to-formulate objectives.
  • To evaluate whether quality diversity (QD) algorithms can efficiently extract a diverse set of high-quality, stylistically consistent levels from a GAN’s latent space.
  • To compare state-of-the-art QD algorithms in the context of GAN-based level generation and identify the most effective approach.

Proposed method

  • Employed a conditional DCGAN trained on real Super Mario Bros. level scenes to generate realistic-looking level images in latent space.
  • Used quality diversity algorithms—MAP-Elites, MAP-Elites (line), and CMA-ME—to explore the latent space by optimizing for both gameplay measures (e.g., enemy count, sky tiles) and GAN fidelity.
  • Applied a directional variation operator and covariance matrix adaptation in CMA-ME to improve exploration in continuous latent spaces.
  • Defined gameplay measures as continuous variables (normalized to [0,1]) and used them as the behavioral descriptor in QD algorithms.
  • Evaluated generated scenes using both objective metrics (KL-divergence to ground-truth levels) and subjective user studies on perceived difficulty and similarity.
  • Collected and analyzed user study data via Amazon Mechanical Turk with strict quality controls, using mixed-effects ordinal regression to assess the impact of gameplay features on perception.

Experimental results

Research questions

  • RQ1Can quality diversity algorithms effectively illuminate the latent space of a trained GAN to generate diverse, high-quality Super Mario Bros. level scenes with specified gameplay characteristics?
  • RQ2How do different QD algorithms (e.g., CMA-ME, MAP-Elites, CMA-ES) compare in terms of coverage and quality of the generated level set?
  • RQ3To what extent do the gameplay measures (e.g., number of enemies, sky tiles) influence users’ subjective perception of level difficulty and visual similarity to human-authored levels?
  • RQ4Does the KL-divergence metric correlate with human perception of similarity to ground-truth level scenes?

Key findings

  • CMA-ME outperformed all other algorithms in both diversity (coverage) and quality (QD-score), producing the most comprehensive and high-performing set of level scenes.
  • The number of sky tiles had a stronger effect on perceived difficulty (β = 4.35, p < 0.001) than the number of enemies (β = 0.94, p = 0.001), indicating that terrain complexity is a more salient factor in difficulty perception.
  • Users consistently reported that jump frequency and length were the primary factors influencing their difficulty ratings, aligning with gameplay mechanics.
  • KL-divergence values significantly predicted perceived similarity to ground-truth scenes (β1 = -1.24, p < 0.001; β2 = -0.40, p < 0.001), showing that the metric correlates well with human perception.
  • The user study confirmed that levels with varying mechanics were perceived as distinct in both difficulty and appearance, validating the diversity of the generated output.
  • The method successfully generated levels that maintained stylistic similarity to human-authored examples while enabling fine-grained control over gameplay characteristics through latent space exploration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.