Expanding Horizons of Level Diversity via Multi-objective Evolutionary Learning

Qingquan Zhang, Ziqi Wang, Yuchen Li, Keyuan Zhang, Bo Yuan, Jialin Liu · DOI

Abstract

Generating diverse game levels is crucial for engaging player experiences, yet diversity is inherently multi-dimensional. Existing methods often struggle to balance conflicting diversity metrics, such as visual variety versus behavioral variety. This paper introduces a Multi-objective Evolutionary Learning (MOEL) framework that treats playability and multiple diversity dimensions as distinct objectives. By evolving a population of Self-Attention Generative Adversarial Networks (SAGANs), our approach identifies a Pareto front of generators, offering designers a range of trade-offs. Experiments on Super Mario Bros. show that optimizing for both content-based and player-centered diversity simultaneously yields superior results compared to traditional single-objective methods.

The Challenge of Multi-dimensional Diversity

In Procedural Content Generation (PCG), diversity is often the primary goal. However, diversity is not a monolithic metric. A level might exhibit high content-based diversity (varied tile patterns) while suffering from low player-centered diversity (forcing players into a single path).

Traditional machine learning approaches, like standard GANs, typically collapse these dimensions into a single scalar value using weighted sums. This approach is limited because:

  1. Objective Conflict: Improving one type of diversity often degrades another.
  2. Manual Tuning: Finding optimal weights is a tedious, trial-and-error process.
  3. Static Output: A single model can only represent one specific trade-off, limiting designer choice.

Multi-objective Evolutionary Learning (MOEL)

To address these limitations, we propose evolving a population of generators using a multi-objective evolutionary algorithm (SDE+-MOEA). The framework optimizes three key metrics:

  • Playability ($P$): Measured by the ability of an AI agent to complete the level.
  • Player-centered Diversity ($PD$): Quantified using Dynamic Time Warping (DTW) on agent playtraces.
  • Content-based Diversity ($CD$): Measured via Jensen-Shannon divergence of tile distributions.

The system starts with a "warm start" phase of standard GAN training and then enters an evolutionary loop. Generators are mutated using modified GAN loss functions, and survival selection maintains a population that represents the best possible trade-offs—the Pareto front.

Key Insights: Navigating Trade-offs

Our findings confirm that different types of diversity are often at odds. For instance, a level with highly complex tile arrangements might look visually diverse but could be unplayable or restrict player movement to a single viable path.

Visualization of the evolutionary process and the resulting Pareto front for the tri-objective model.

The MOEL framework identifies "knee point" generators—models that offer a "sweet spot" of high diversity across multiple dimensions without sacrificing playability. This allows designers to choose generators based on specific needs, such as a model that prioritizes visual flair versus one that emphasizes complex platforming.

Key Results

The tri-objective approach ($A_{P+PD+CD}$) significantly outperformed single-objective ($A_P$) and bi-objective ($A_{P+PD}$, $A_{P+CD}$) baselines.

Hypervolume (HV) values over generations for different objective configurations.

As shown in the Hypervolume (HV) analysis, the tri-objective configuration explored the space of possible trade-offs much more effectively. Furthermore, the framework successfully identified a diverse set of generators in a single training run, a feat that would require dozens of manual runs using traditional weighted-sum methods. Qualitative analysis of the Super Mario Bros. levels generated by different models on the Pareto front revealed distinct "flavors" of gameplay, ranging from visually dense environments to those requiring intricate player maneuvers.

Conclusion and Future Work

The MOEL framework represents a significant step toward more robust and flexible procedural content generation. By treating diversity as a multi-objective problem, we empower designers with a menu of generators tailored to different gameplay goals. Future work will focus on reducing the computational cost of evaluating player-centered diversity—perhaps through surrogate models—and extending the framework to 3D environments and more complex game genres.

Summary updated

BibTeX
@article{zhang2024expanding,
  author = {Qingquan Zhang and Ziqi Wang and Yuchen Li and Keyuan Zhang and Bo Yuan and Jialin Liu},
  title = {{Expanding Horizons of Level Diversity via Multi-objective Evolutionary Learning}},
  journal = {IEEE Transactions on Artificial Intelligence},
  year = {2024},
  doi = {10.1109/tai.2024.3489534},
}
Figure