Video Game Level Design as a Multi-Agent Reinforcement Learning Problem

Sam Earle, Zehua Jiang, Eugene Vinitsky, Julian Togelius

Abstract

Procedural Content Generation via Reinforcement Learning (PCGRL) offers a method for training controllable level designer agents without the need for human datasets, using metrics that serve as proxies for level quality as rewards. Existing PCGRL research focuses on single generator agents, but are bottlenecked by the need to frequently recalculate heuristics of level quality and the agent’s need to navigate around potentially large maps. By framing level generation as a multi-agent problem, we mitigate the efficiency bottleneck of single-agent PCGRL by reducing the number of reward calculations relative to the number of agent actions. We also find that multi-agent level generators are better able to generalize to out-of-distribution map shapes, which we argue is due to the generators’ learning more local, modular design policies. We conclude that treating content generation as a distributed, multi-agent task is beneficial for generating functional artifacts at scale.

Introduction

Procedural Content Generation (PCG) is the algorithmic creation of game content, a vital tool for scaling game worlds. A popular modern approach is PCGRL, where an agent is trained to "play" a level editor, receiving rewards for creating functional levels. However, single-agent PCGRL faces two major bottlenecks: the computational cost of calculating global properties (like pathfinding) after every tile edit, and the "horizon problem," where agents struggle to cover large maps effectively. This research investigates whether decomposing level design into a multi-agent cooperative problem can solve these efficiency and scaling issues.

Methods

The researchers extended the PCGRL framework to support Multi-Agent Proximal Policy Optimization (MAPPO). In this setup, multiple "turtle" agents operate on the same map simultaneously, sharing a single policy and a joint reward signal.

The multi-agent architecture utilizes shared FC and GRU layers for action and value branches, updating the environment and calculating rewards collectively.

To optimize performance, the entire training loop was implemented in JAX, allowing simulations to run entirely on the GPU for a ~17x speedup. The approach was tested in two environments: a Binary Maze domain (maximizing path length) and a Dungeon domain (placing keys, doors, and enemies). To ensure fair comparisons across different agent counts, the authors introduced the "board scan" metric to normalize total editing effort.

Key Results and Insights

The multi-agent approach demonstrated significant advantages in both performance and generalization. In the Maze domain, 3 agents consistently achieved higher mean episode rewards than 1 or 2 agents across all map sizes.

Training curves showing that increasing the number of agents leads to higher returns and faster convergence in the maze generation task.

Key findings include:

  • Superior Generalization: On $32 \times 32$ maps with randomized shapes, the 3-agent model achieved a reward of 88.43, compared to only 68.36 for the single-agent model. This suggests that multi-agent systems learn local "design patterns" that are more robust to new environments than global strategies.
  • Stigmergic Communication: Agents coordinate effectively without direct communication by observing and responding to the environmental changes made by others.
  • Efficiency: By batching edits before recalculating expensive global rewards, the system reduces computational overhead. Performance remained stable even when reward calculations were performed only every 10 steps.
  • Local vs. Global: Agents with small, local observation windows ($3 \times 3$) actually outperformed those with a full view of the map, indicating that complex design is best factorized into modular, local tasks.

Conclusion

Reframing level generation as a multi-agent problem effectively addresses the scaling and efficiency limitations of traditional PCGRL. By learning modular policies, these systems generate higher-quality content and generalize better to unseen map configurations. Future work will explore heterogeneous agent roles and hierarchical coordination to further enhance the complexity of procedurally generated worlds.

Summary updated

BibTeX
@inproceedings{earle2025video,
  author = {Sam Earle and Zehua Jiang and Eugene Vinitsky and Julian Togelius},
  title = {{Video Game Level Design as a Multi-Agent Reinforcement Learning Problem}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aiide.v21i1.36807},
}
Figure