Abstract
We propose the Interactive Constrained MAP-Elites, a quality-diversity solution for game content generation, implemented as a new feature of the Evolutionary Dungeon Designer: a mixed-initiative co-creativity tool for designing dungeons. The feature uses the MAP-Elites algorithm, an illumination algorithm that segregates the population among several cells depending on their scores with respect to different behavioral dimensions. Users can flexibly and dynamically alternate between these dimensions anytime, thus guiding the evolutionary process in an intuitive way, and then incorporate suggestions produced by the algorithm in their room designs. At the same time, any modifications performed by the human user will feed back into MAP-Elites, closing a circular workflow of constant mutual inspiration. This paper presents the algorithm followed by an in-depth analysis of its behaviour, with the aims of evaluating the expressive range of all possible dimension combinations in several scenarios, as well as discussing their influence in the fitness landscape and in the overall performance of the mixed-initiative procedural content generation.
Introduction
In Procedural Content Generation (PCG), a persistent challenge lies in balancing quality (ensuring levels are playable and engaging) with diversity (providing a wide variety of distinct designs). Traditional evolutionary algorithms often suffer from premature convergence, focusing on a single global optimum that limits their utility for designers seeking inspiration.
Furthermore, many PCG tools operate as "black boxes," offering little room for Mixed-Initiative Co-Creativity (MI-CC). This paper addresses these gaps by introducing Interactive Constrained MAP-Elites (IC MAP-Elites), a system that provides diverse, high-quality suggestions that respond dynamically to a designer's manual edits in real-time.
Methodology: The IC MAP-Elites Framework
The core of our approach is the integration of the Multi-dimensional Archive of Phenotypic Elites (MAP-Elites) algorithm into the Evolutionary Dungeon Designer (EDD). Unlike standard search algorithms, MAP-Elites discretizes the search space into a grid of cells based on specific "feature dimensions." Each cell stores the "elite" (best-performing) individual for that specific combination of features.
Key technical components include:
- Constrained Evolution: We utilize a "feasible-infeasible" approach (FI2Pop) to handle game constraints. This allows the algorithm to explore unplayable rooms as "stepping stones" toward complex, valid designs.
- Interactive Feedback Loop: The evolution runs continuously. When a designer modifies the "target room," the algorithm immediately updates its fitness calculations to ensure suggestions remain relevant to the user's current intent.
- Feature Dimensions: We define seven behavioral dimensions to categorize rooms: Symmetry, Similarity (to the target), Number of Meso-patterns (e.g., treasure rooms), Number of Spatial-patterns (e.g., corridors), Linearity, Inner Similarity, and Leniency (difficulty).
Experimental Setup and Analysis
To evaluate the algorithm's performance, we used 13 × 7 tile rooms—a standard size for dungeon crawlers like The Binding of Isaac. We benchmarked the system using two target rooms: a "Basic" room and a "Complex" room.
Our analysis focused on the Expressive Range of the generator—how much of the theoretical feature space the algorithm can actually populate with high-quality designs. We found that IC MAP-Elites is significantly more robust than standard Evolutionary Algorithms (EA). While standard EAs often stagnate after a few dozen generations, IC MAP-Elites continues to discover novel, high-quality solutions for over 1,000 generations.
Key Results
- Coverage and Diversity: IC MAP-Elites explored approximately 52.4% of the available feature space on average, a massive improvement over the 22.48% achieved by standard objective-based EAs.
- Quality Maintenance: Despite the emphasis on diversity, the average fitness of generated elites remained high at 0.89 (on a 0-1 scale), comparable to the 0.92 of a specialized EA that ignores diversity entirely.
- Dimension Synergy: We observed that dimensions like Leniency and Symmetry act as explorative drivers, pushing the search into new territories, while Similarity acts as an exploitative anchor, refining designs near the user's current work.
Conclusion and Future Work
IC MAP-Elites successfully bridges the gap between automated generation and human-centric design. By providing a diverse map of high-quality suggestions that update in seconds, it enables a truly interactive co-creative workflow.
Future work will focus on scaling this approach from individual rooms to entire dungeon layouts, requiring new metrics for flow and connectivity. Additionally, we plan to conduct formal user studies with professional game designers to evaluate the qualitative "inspiration value" of the suggestions provided by the system.
Summary updated