GenEscape: Hierarchical Multi-Agent Generation of Escape Room Puzzles

Mengyi Shan, Brian Curless, Ira Kemelmacher-Shlizerman, Steve P. Seitz

Abstract

GenEscape is a hierarchical multi-agent framework designed to generate 2D escape room puzzles that are both visually realistic and logically solvable. By decomposing the generation process into specialized roles—designing, playtesting, and building—the system overcomes the "spatial illiteracy" of standard text-to-image models to create complex, multi-step functional scenes.

Introduction

While modern Vision-Language Models (VLMs) like GPT-4o or DALL-E 3 can produce high-quality images, they often fail at "functional" logic. Standard models frequently generate scenes with physical impossibilities, such as floating keys or unreachable ladders. A successful escape room puzzle requires two critical components: logical solvability (a coherent sequence of actions) and visual affordance (clear cues that guide the player without offering unintended shortcuts).

Methods: Hierarchical Multi-Agent Framework

To address these challenges, researchers from the University of Washington developed a framework that mimics a professional design studio. Instead of a single prompt-to-image call, GenEscape utilizes four specialized agents:

  1. The Designer: Drafts the initial concept, a symbolic YAML-based scene graph, and the intended solution.
  2. The Player: A VLM instance that "playtests" the design by attempting to solve it based on the scene graph or image.
  3. The Examiner: Compares the Player’s attempt to the Designer’s solution, providing feedback to refine the design if shortcuts or dead-ends are found.
  4. The Builder: Translates the finalized logic into a 2D layout sketch and eventually a photorealistic image.
The GenEscape framework decomposes puzzle generation into a hierarchical pipeline involving specialized agents for design, building, playtesting, and examination.

The process is iterative, looping through symbolic (text), layout (icons), and image (pixels) levels to ensure logical consistency at every stage. By forcing the AI to first agree on a scene graph, the system anchors the logic before the visual generation begins.

Key Results

The multi-agent approach significantly outperformed vanilla GPT-4o across all functional metrics. The use of symbolic intermediates and a playtesting loop allowed the system to anchor logic before image generation, catching fallacies that single-pass models miss.

Quantitative comparison showing GenEscape (Ours full) significantly outperforming baseline methods in solvability and shortcut avoidance.
  • Solvability: Increased from a baseline of 3.3% for vanilla GPT-4o to 53.3% with the full GenEscape framework.
  • Shortcut Avoidance: Improved from 0.0% to 46.6%, effectively blocking "cheats" like climbing a desk instead of finding a ladder.
  • Efficiency: The full pipeline reached a solvable state in an average of only 4.5 image generations, demonstrating the effectiveness of the iterative refinement loop.

Limitations and Future Work

Despite its success, GenEscape currently only supports puzzles where all objects are visible, precluding "hidden object" mechanics. It also struggles with logic chains exceeding eight steps. Future research aims to implement "state-aware" generation, where the system creates new images reflecting the room's state after a player's action, such as an opened door or a moved object.

Summary updated

Abstract

We challenge text-to-image models with generating escape room puzzle images that are visually appealing, logically solid, and intellectually stimulating. While base image models struggle with spatial relationships and affordance reasoning, we propose a hierarchical multi-agent framework that decomposes this task into structured stages: functional design, symbolic scene graph reasoning, layout synthesis, and local image editing. Specialized agents collaborate through iterative feedback to ensure the scene is visually coherent and functionally solvable. Experiments show that agent collaboration improves output quality in terms of solvability, shortcut avoidance, and affordance clarity, while maintaining visual quality.
BibTeX
@misc{shan2025genescape,
  author = {Mengyi Shan and Brian Curless and Ira Kemelmacher-Shlizerman and Steve P. Seitz},
  title = {{GenEscape: Hierarchical Multi-Agent Generation of Escape Room Puzzles}},
  year = {2025},
  eprint = {2506.21839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.21839},
}
Figure