GenEscape: Hierarchical Multi-Agent Generation of Escape Room Puzzles

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

TL;DR

GenEscape introduces a hierarchical multi-agent framework to generate 2D escape room puzzle images that are both visually realistic and logically solvable. By breaking down the generation process into structured stages—from symbolic scene graphs to layout sketches and final image editing—the system successfully reasons about spatial relationships and object affordances where standard text-to-image models fail.

What Problem Does This Paper Address?

While modern text-to-image models excel at creating aesthetically stunning visuals, they notoriously struggle with complex scenes that demand strict spatial logic, physical affordance reasoning, and multi-step functional coherence.

Consider an escape room puzzle: it must be strictly solvable via a specific sequence of actions, and the visual cues must guide the player without allowing accidental "shortcuts" (e.g., a player simply reaching a high key because a generated desk was placed too close to it). Standard vision-language models (VLMs) lack the structured planning and feedback loops required to enforce these rules, often producing images that look plausible but are functionally broken or trivial to bypass. GenEscape tackles this gap by framing puzzle generation as a collaborative, multi-agent design problem.

Methods

The authors propose a hierarchical multi-agent framework composed of four specialized VLM instances (using GPT-4o):

  1. The Designer: Generates the initial natural language scene description, a structured symbolic scene graph (in YAML format), and the intended solution sequence.
  2. The Player: Simulates a human player attempting to solve the puzzle based purely on the current state representation (graph, layout, or image).
  3. The Examiner: Acts as a critic, comparing the Player's proposed actions against the intended solution to detect logical flaws or unintended shortcuts.
  4. The Builder: Translates the verified symbolic structure into a 2D layout sketch using abstract icons, and eventually renders and locally edits the final photorealistic image.

Instead of optimizing the image directly, GenEscape employs a hierarchical refinement strategy across four distinct stages: Text Description $\rightarrow$ Symbolic Scene Graph $\rightarrow$ 2D Layout $\rightarrow$ Photorealistic Image. At each stage, the Player and Examiner engage in an iterative feedback loop to verify solvability. If the Player finds a shortcut, the Examiner provides feedback to update the scene graph or layout before any pixels are rendered, drastically saving computational cost.

Figure 2. Hierarchical multi-agent pipeline for escape room image generation. The Designer creates an initial scene graph and solution. The Player and Examiner iteratively refine it for logical solvability. The Builder then generates a 2D layout and image, which are further verified by the agents to ensure visual and functional consistency.

Datasets

The method was evaluated on a newly curated benchmark of 15 diverse escape room scene settings (e.g., "Pool + Lifebuoy", "Classroom + Ladder", "Prison + Ice"), each designed around two core interactive objects.

Because evaluating puzzle logic is inherently subjective, the authors relied heavily on human evaluation. Ten human annotators reviewed the generated images alongside baseline outputs to judge them across three metrics: Solvability, Shortcut Avoidance, and Spatial Alignment. Automated evaluation was conducted using the Long-CLIP score to measure semantic alignment with the prompt.

Key Insights and Ideas

  • Symbolic First, Pixels Last: Validating puzzle logic on text descriptions and symbolic scene graphs before rendering images prevents the high computational waste of iterative image generation.
  • The VLM Shortcut Blindspot: Out-of-the-box VLMs have a near-zero understanding of shortcut avoidance. Without an explicit adversarial "Player" agent trying to break the puzzle, models routinely generate layouts that make the puzzle trivial.
  • Affordance-Guided Local Editing: By mapping abstract icons from the layout stage to the final image, the Builder agent can perform targeted local image editing to enhance or suppress specific visual cues (like fixing a malformed tool or adjusting object heights) to properly steer human perception.

Key Results

The quantitative results highlight the massive leap in logical consistency achieved by the multi-agent framework compared to vanilla generation:

  • Solvability & Shortcut Avoidance: Vanilla GPT-4o achieved a meager 3.3% solvability and 0.0% shortcut avoidance. The full GenEscape pipeline boosted these numbers to 53.3% solvability and 46.6% shortcut avoidance.
  • Generation Efficiency: By filtering out logical errors early in the symbolic stages, the full pipeline required only 4.5 image generations on average to converge, compared to 13.2 to 15.8 generations for ablated versions that lacked early layout planning.
Figure 3. Our visual results compared with baseline and alternative designs. Left columns are naive generation (top) and assisted by a textual design (bottom). The second and third columns show the scene graph and 2D layout (top), and results with them (bottom). Right columns are the final results after visual signal-based image optimization. See if you can solve the puzzle! Official solutions and example human interaction are provided in the appendix.

The authors also demonstrated a live human-in-the-loop interface where a human player interacts with the VLM Examiner to solve the generated puzzles in real-time, proving the practical playability of the outputs.

Limitations and Future Work

Despite its success, the authors note a few key limitations:

  • Fully Visible Objects Only: The framework currently cannot handle hidden items (e.g., keys hidden inside drawers or boxes), which limits the depth of the escape room mechanics.
  • Complexity Cap: The model struggles to converge on puzzles requiring long solution chains (more than 8 steps or 8 interactive objects).
  • Static Scenes: Current VLM image-editing limitations prevent the system from generating dynamic, state-changing images that show the room's updated state after a player performs an action.

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 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