Controllable Path of Destruction

Matthew Siper, Sam Earle, Zehua Jiang, Ahmed Khalifa, Julian Togelius

Abstract

Generative models often struggle with data scarcity and a lack of fine-grained control in structured domains like game design. This paper presents an evolution of the "Path of Destruction" (PoD) framework, a self-supervised method that learns to generate content by repairing iteratively destroyed artifacts. By introducing "signed relative" control signals, the system enables precise steering of output properties—such as enemy count or path length—using minimal training data. We demonstrate the efficacy of this approach across 2D dungeon generation and 3D Lego car modeling.

Introduction

State-of-the-art generative models, including GANs and Diffusion models, typically require massive datasets to achieve high-quality results. In specialized fields like procedural content generation (PCG) for games or architectural modeling, such "gold standard" data is often unavailable. Furthermore, these models frequently operate as black boxes, offering designers little control over specific functional attributes.

The "Controllable Path of Destruction" addresses these challenges by focusing on data efficiency and controllability. Instead of learning from millions of images, the model learns the underlying logic of a domain by observing how to fix broken structures, allowing it to generalize from just dozens of examples.

Methodology: Learning through Repair

The core of the system is the Path of Destruction (PoD) algorithm. Its fundamental philosophy is that to understand how to build a complex structure, an agent must first learn how to repair it.

The Destruction Loop

The training process begins with a small set of "goal" artifacts. The system iteratively destroys these artifacts, one tile or block at a time. For each step, it records the state before and after the destruction.

The training process for the Path of Destruction generator, illustrating the loop from goal artifacts to repair actions.

The Repair Task and Signed Relative Signals

The AI is trained to perform the inverse operation: given a "broken" state, it predicts the "repair action" required to move closer to the goal. To introduce user control, the authors implemented signed relative signals. Rather than requesting an absolute value (e.g., "5 enemies"), the model receives a conditional input:

  • +1: Increase the feature (e.g., add an enemy).
  • -1: Decrease the feature (e.g., remove an enemy).
  • 0: Maintain the current state.

This relative approach allows the model to understand the logic of modification, enabling it to reach target values it may not have encountered frequently during training.

Experimental Domains

The method was evaluated in two distinct environments:

  1. Zelda Dungeon Generation: A 2D grid-based environment where the model was trained on only 50 human-designed levels.
  2. Lego Car Generation: A 3D domain involving 37 block types, trained on a tiny set of just 15 unique car models.

Results and Discussion

The controllable PoD significantly outperformed baselines in functional reliability and user steering.

Playability and Diversity

In the Zelda domain, the model achieved a playability rate of 78.96%, a massive improvement over the original PoD (37.88%) and standard GAN approaches (47%). Crucially, the model did not simply memorize the training data; it produced diverse, novel maps that adhered to the structural rules of the game, such as path length and enemy placement.

Generated 2D Zelda dungeon levels demonstrating diverse layouts and functional placement of game elements.

3D Structural Logic

The application to Lego cars proved that the method scales to 3D. The agent learned essential structural constraints—such as the necessity of four wheels—and achieved approximately 80% similarity to goal artifacts despite the extremely small training set.

Conclusion and Future Directions

Controllable Path of Destruction offers a powerful alternative for content generation in data-starved domains. By shifting from one-shot generation to iterative refinement guided by relative signals, it provides designers with a functional and steerable tool. Future work aims to replace the "Random Destructor" with a "Smart Destructor" that strategically breaks artifacts to expose the model to rare or difficult-to-learn states, further enhancing robustness.

Summary updated

BibTeX
@inproceedings{siper2023controllable,
  author = {Matthew Siper and Sam Earle and Zehua Jiang and Ahmed Khalifa and Julian Togelius},
  title = {{Controllable Path of Destruction}},
  booktitle = {CoG},
  year = {2023},
  doi = {10.1109/cog57401.2023.10333141},
}
Figure