Visual Exploration of Tile Datasets

Seth Cooper, Faisal Abutarab, Emily Halina, Nathan R. SturtevantEXAG@AIIDE 2023

Abstract

This paper introduces an interactive "Level Explorer" tool designed for the real-time visual search and filtering of massive procedural content generation (PCG) datasets. By employing an efficient bitstring encoding scheme and bitwise operations, the tool enables researchers and designers to navigate millions of game levels, identifying specific configurations and global dataset properties that are otherwise obscured in large-scale data. The system demonstrates sub-second filtering performance on datasets containing up to a million levels, providing a scalable solution for understanding the latent space of level repositories.

Introduction

In the field of Procedural Content Generation (PCG), the volume of available data has increased dramatically. Whether originating from Machine Learning (PCGML) training sets, exhaustive search outputs, or repositories like the Video Game Level Corpus (VGLC), researchers and designers frequently encounter datasets containing hundreds of thousands or even millions of levels.

Despite this abundance, these datasets often function as "black boxes." Finding a level with a specific path, a particular combination of tiles, or a specific difficulty tag typically requires writing custom scripts. There is a notable lack of general-purpose tools for the visual exploration of these massive spaces. This research introduces a tool to bridge this gap, allowing humans to intuitively explore and understand the constraints and possibilities within existing level data.

Methodology: Bitstring Encoding and Filtering

The core innovation of the Level Explorer is its efficiency, achieved through a specialized bitstring encoding scheme that reduces complex spatial queries to simple bitwise operations.

  1. Encoding: Every unique element in a dataset—including 2D tile types, path edges (directed connections between tiles), and metadata tags—is assigned a specific bit in a long bitstring. Each level is then represented as a single bitstring where a 1 indicates the presence of an element.
  2. Filtering: When a user selects desired elements, the tool performs a bitwise AND across the entire dataset. This creates a Boolean mask of levels that satisfy the criteria.
  3. Visualization: To show the user what is "still possible" after filtering, the tool performs a bitwise OR on the remaining levels. The interface then updates to show a "superposition" of all possible tiles at every location.
The bitstring encoding process, mapping tile configurations and paths to a binary representation.

Interactive Visualization and Scalability

To handle the visual clutter inherent in millions of possibilities, the tool employs an interactive UI with smart abstraction. If a location has too many possibilities, it displays an "abstracted" tile that expands upon interaction. Path edges are represented via "source dots" to maintain clarity.

Interactive visualization of the Mario dataset, showing the superposition of possible paths and tiles after filtering.

The authors demonstrated the tool's scalability across five diverse datasets, ranging from 150 levels in Lode Runner to approximately 8 million levels in a Mario dataset generated via n-gram enumeration. For most datasets under 1 million levels (such as The Witness or Boxoban), filtering times were sub-second, typically ranging from 0.15s to 0.25s.

Key Insights

  • Search as an Alternative to Generation: For very large datasets, searching for a level with specific properties might be more practical than training a generative model to produce one, offering better control for designers.
  • Hardware Acceleration: By reducing the problem to bitwise operations, the tool leverages highly optimized libraries like NumPy, allowing a standard computer to filter 8 million Mario levels in roughly 4.5 seconds.
  • Revealing Dataset Constraints: The tool helps discover what isn't there. For example, exploring the Boxoban dataset reveals that no levels contain boxes in corners, providing immediate insight into the generator's constraints.

Conclusion and Future Work

While the Level Explorer successfully manages massive datasets, several areas for improvement remain. Current limitations include the lack of "negative" filtering (finding levels that do not have a specific element) and the absence of quantitative feedback, such as heat maps showing the frequency of certain elements. Future work will focus on implementing more complex spatial or logical queries and conducting formal user studies to evaluate the tool's impact on the level design workflow.

Summary updated

BibTeX
@inproceedings{cooper2023visual,
  author = {Seth Cooper and Faisal Abutarab and Emily Halina and Nathan R. Sturtevant},
  title = {{Visual Exploration of Tile Datasets}},
  booktitle = {EXAG@AIIDE},
  year = {2023},
  url = {https://openreview.net/forum?id=4hRVQPvPNk},
}
Figure