Skip to main content
QUICK REVIEW

[Paper Review] Level Assembly as a Markov Decision Process

Colan F. Biemer, S. I. Cooper|arXiv (Cornell University)|Apr 27, 2023
Reinforcement Learning in RoboticsComputer Science3 citations
TL;DR

This paper formulates dynamic level generation in games as a Markov Decision Process (MDP) and uses Adaptive Dynamic Programming (ADP) to create personalized, adaptive level progressions. It demonstrates that an Adaptive Policy Iteration (API) approach outperforms baselines in reward and adaptability, especially when player proxies switch mid-play, showing rapid re-adaptation without retraining.

ABSTRACT

Many games feature a progression of levels that doesn't adapt to the player. This can be problematic because some players may get stuck if the progression is too difficult, while others may find it boring if the progression is too slow to get to more challenging levels. This can be addressed by building levels based on the player's performance and preferences. In this work, we formulate the problem of generating levels for a player as a Markov Decision Process (MDP) and use adaptive dynamic programming (ADP) to solve the MDP before assembling a level. We tested with two case studies and found that using an ADP outperforms two baselines. Furthermore, we experimented with player proxies and switched them in the middle of play, and we show that a simple modification prior to running ADP results in quick adaptation. By using ADP, which searches the entire MDP, we produce a dynamic progression of levels that adapts to the player.

Motivation & Objective

  • To address the limitations of static level progression in games, which can frustrate skilled players or bore less skilled ones.
  • To develop a dynamic level generation system that adapts to individual player performance and preferences in real time.
  • To evaluate whether adaptive dynamic programming (ADP) can effectively learn optimal level assembly policies in online, player-adaptive settings.
  • To test the system's ability to rapidly adapt when player types change during gameplay.
  • To explore the feasibility of using MDPs with level segments for generating completable, player-adaptive levels.

Proposed method

  • The level generation process is modeled as a Markov Decision Process (MDP), where each state represents a level segment or slice, and actions correspond to assembling these segments into a complete level.
  • A custom reward function is initialized based on designer preferences and dynamically updated using player proxy feedback, including success rates and enjoyment metrics.
  • Adaptive Dynamic Programming (ADP) via Policy Iteration (PI) and its variant, Adaptive Policy Iteration (API), is used to solve the MDP and learn optimal level assembly policies.
  • The system uses player proxies—models of player skill and preference distributions—to simulate player behavior and guide reward updates during online learning.
  • The MDP is solved offline before each playthrough, allowing the director to compute an optimal policy that adapts to the current player proxy.
  • The approach uses a finite-horizon MDP with multi-objective optimization potential, enabling better utility estimation and reduced reward balancing complexity.

Experimental results

Research questions

  • RQ1Can an MDP-based framework with ADP effectively generate adaptive level progressions that respond to individual player performance and preferences?
  • RQ2How does the performance of ADP-based level directors compare to random and greedy baselines in terms of reward and playability?
  • RQ3Can the system rapidly adapt to a change in player type, such as switching from a skilled to a less skilled player proxy?
  • RQ4Does the use of level segments instead of n-grams improve the stability and completable nature of generated levels?
  • RQ5To what extent does API outperform standard PI in exploring the solution space and maintaining adaptability under changing conditions?

Key findings

  • API and PI achieved comparable rewards in the Mario n-gram case study, but API produced levels that were significantly more completable than PI or random directors.
  • The Random director achieved the highest completion rate across all player proxies, but performed worst in reward, indicating a trade-off between playability and designer preference.
  • When player proxies were switched from 'Good Player Likes Hard Levels' to 'Bad Player Likes Easy Levels', only API successfully adapted within 7 levels, while Greedy and PI failed to adjust.
  • In the Kid Icarus case study, API outperformed all other directors in average reward across all player proxies, demonstrating superior generalization and adaptability.
  • The use of level segments reduced looping issues compared to n-gram-based level assembly, which suffered from repeated, non-completable level constructions.
  • The results suggest that ADP with a simple modification (API) enables effective exploration of the solution space, improves data efficiency, and supports rapid adaptation to new player types.

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.