Lode Encoder: AI-constrained co-creativity

Debosmita Bhaumik, Ahmed Khalifa, Julian Togelius · DOI

Introduction

In the realm of mixed-initiative design, AI is typically cast as an assistant that automates tedious tasks or suggests completions to a user's existing vision. However, creativity often flourishes under strict limitations. Lode Encoder explores a counter-intuitive approach to co-creativity: using Variational Autoencoders (VAEs) to deliberately constrain the designer. By removing traditional tile-by-tile editing and forcing users to "paint" levels using only AI-generated suggestions, the system gamifies the design process and encourages the discovery of novel, playable structures.

The Challenge of Lode Runner

The authors chose the 1983 classic Lode Runner as their testbed. Unlike more common targets for Procedural Content Generation via Machine Learning (PCGML), such as Super Mario Bros., Lode Runner presents extreme spatial complexity. Because the player cannot jump, every gold nugget must be reachable through a precise network of ladders, ropes, and diggable tiles. This creates long-distance dependencies that standard generative models often fail to satisfy, making the creation of a playable level a significant technical and creative challenge.

Methodology: Designing through Constraints

Lode Encoder is a web-based tool that replaces traditional editing tools with a constrained interaction loop. The system is powered by three specialized VAEs trained on different level features: Platforms, Ladders, and Gold.

The Lode Encoder interface, featuring the canvas, toolbox, and the palette of six AI-generated suggestions.

Instead of placing individual tiles, the user interacts with a "Suggestion Manager." The current state of the canvas is fed into the VAEs, which generate six distinct suggestions: a low-variance and high-variance version for each of the three feature models. The user then uses a brush tool to paint segments of these suggestions onto their canvas. To maintain the philosophy of constraint, users are limited to seven suggestion "refreshes" per session. A "Wand" tool was later introduced to allow for minor, localized fixes (limited to 7 tiles) to prevent frustration when pathing was nearly complete but technically unplayable.

Data and Training

The models were trained on 150 classic levels from the Video Games Level Corpus (VGLC). Given the small size of the dataset, the authors employed data augmentation—padding edges and reflecting levels—to expand the training set to 3,300 levels. Interestingly, the authors found that while the VAEs struggled to generate entirely new playable levels autonomously, their tendency to "overfit" made them excellent at repairing user input. The models effectively pull a user's messy, half-finished design toward the structured patterns of known-good levels.

Results and User Behavior

A public release of the tool logged 132 sessions from 100 users. The study yielded 24 fully playable, completed levels. Analysis of these levels showed high originality; only 20% of the playable levels had a low Hamming distance from the training data, suggesting the constraints successfully pushed users toward novelty.

Number of user interactions across the six suggestion types, showing a clear preference for low-variance platform models.

User behavior data revealed a strong preference for the "Platform (Low Variance)" model. Designers favored suggestions that provided structural stability while respecting their current layout. Furthermore, the constraint-heavy nature of the tool was well-received; over 50% of sessions involved no refreshes, indicating that users were willing to work within the initial boundaries provided by the AI.

Conclusion and Future Work

Lode Encoder demonstrates that AI can be a powerful creative partner not just by assisting, but by restricting. While the strictness of the tool made playability difficult to achieve—resulting in a low conversion rate of completed levels—it transformed level design into a puzzle-solving experience. Future work will focus on integrating automated playtesting agents to provide real-time feedback, further bridging the gap between creative exploration and functional game design.

Summary updated

BibTeX
@inproceedings{bhaumik2021lode,
  author = {Debosmita Bhaumik and Ahmed Khalifa and Julian Togelius},
  title = {{Lode Encoder: AI-constrained co-creativity}},
  booktitle = {CoG},
  year = {2021},
  doi = {10.1109/cog52621.2021.9619009},
}
Figure