Towards Automatic Personalized Content Generation for Platform Games

Noor Shaker, Georgios N. Yannakakis, Julian Togelius

Procedural Content Generation (PCG) has long been a staple of game development, enabling the creation of vast, varied environments. However, traditional PCG is often "player-blind," generating content based on mathematical constraints rather than the individual player's psychological state. This research explores a shift toward personalized PCG, using player modeling and optimization to tailor Super Mario-style levels to maximize individual enjoyment.

The Challenge of Subjective Fun

While many games implement Dynamic Difficulty Adjustment (DDA)—such as reducing enemy health after a player dies—these systems rarely alter the fundamental architecture of a level. The core difficulty in personalizing level design is that "fun" is inherently subjective. A level that one player finds exhilaratingly difficult might be frustrating for another. To bridge this gap, the authors developed a system that models player emotions—specifically fun, challenge, and frustration—to guide the generation process.

Methodology: A Three-Step Pipeline

The researchers utilized a modified version of Infinite Mario Bros as their experimental testbed. The system operates through a closed-loop adaptation mechanism consisting of three primary phases:

  1. Feature Extraction: The system tracks 58 gameplay features (e.g., jump frequency, time spent running, cause of death) and four controllable level parameters: the number of gaps, average gap width, gap placement, and direction switches.
  2. Preference Modeling: Moving away from traditional rating scales, the study employed Preference Learning. Players compared pairs of levels and indicated which was more "fun," "challenging," or "frustrating." This data trained Multi-Layer Perceptrons (MLPs) to predict emotional states based on gameplay and architectural features.
  3. Optimization: To generate a personalized level, the system performs an exhaustive search across 12,000 possible configurations. It uses the trained MLP to predict which configuration will yield the highest "fun" score for a specific player's observed style.
The experimental testbed: a modified version of Infinite Mario Bros used to collect gameplay data and player preferences.

Key Insights and Results

The study utilized a robust dataset from 327 human players, encompassing 1,308 total game sessions. The resulting models demonstrated varying degrees of predictive accuracy:

  • Frustration (89.33%): This was the most predictable emotion, likely because behavioral markers of frustration (such as repeated deaths) are universal.
  • Challenge (74.66%) and Fun (69.66%): These were harder to predict, reflecting the higher degree of subjectivity involved in positive player experiences.

Optimization Success

The system's ability to "close the loop" was validated by comparing optimized levels against randomly generated ones. For human-like AI agents, levels optimized for fun reached an average predicted value of 81.31%, significantly outperforming random generation.

Comparison of predicted 'Fun' scores between randomly generated levels and levels optimized by the system. The optimized levels show a consistent upward trend in player enjoyment.

In human validation tests, 60% of participants preferred the adapted levels over random ones, suggesting that the models trained on AI agents generalize effectively to real human players.

Limitations and Future Directions

While successful, the system currently operates within a limited design space, controlling only four parameters related to gaps. Real-world level design involves significantly more complexity, including enemy placement, power-ups, and verticality. Furthermore, the current model adapts between levels; future work aims for "online" adaptation, where the level architecture shifts in real-time based on immediate player feedback. Finally, incorporating physiological sensors (e.g., heart rate) could provide a more direct "ground truth" for player emotion than behavioral modeling alone.

Summary updated

BibTeX
@inproceedings{shaker2010towards,
  author = {Noor Shaker and Georgios N. Yannakakis and Julian Togelius},
  title = {{Towards Automatic Personalized Content Generation for Platform Games}},
  booktitle = {AIIDE},
  year = {2010},
}
Figure