NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spatial Assembly: Generative Architecture With Reinforcement Learning, Self Play and Tree Search

Panagiotis Tigas, Tyson HosmerarXiv 2021

TL;DR

This paper introduces a novel approach to generating complex spatial assemblies, like architectural designs, by combining the constraint-solving power of Wave Function Collapse (WFC) with the learning capabilities of Reinforcement Learning (RL) and self-play. This method allows for the creation of assemblies that not only satisfy design constraints but also optimize for specific, designer-defined objectives, moving beyond purely rule-based generation.

What Problem Does This Paper Address?

Generating intricate spatial structures, such as architectural designs, often involves balancing a multitude of constraints (e.g., structural integrity, material limitations, aesthetic rules) with desired functional or aesthetic goals. Traditional procedural generation methods, like Wave Function Collapse (WFC), excel at creating valid assemblies based on predefined rules and tile sets. However, they struggle to optimize these assemblies for subjective or complex objectives that aren't easily encoded as hard constraints. This paper addresses the challenge of creating generative systems that can produce assemblies that are both valid according to a set of rules and optimal with respect to designer-specified criteria, bridging the gap between constraint satisfaction and goal-driven optimization in design.

Methods

The core of this work is the Spatial Assembly algorithm, which frames the generation process as a Markov Decision Process (MDP). The state transitions in this MDP are governed by the Wave Function Collapse (WFC) algorithm. WFC, a constraint-based procedural generation technique, works by iteratively filling a space with tiles (geometric blocks) while ensuring that adjacency rules and constraints are met.

Instead of WFC's default random tile selection for nodes with the least constraint (lowest entropy), the proposed algorithm uses a learned policy, denoted as $\pi(\alpha|S, \text{tiles})$. This policy, trained using Reinforcement Learning (specifically, Proximal Policy Optimization - PPO), outputs a probability distribution over available tiles. The goal is to learn a policy that selects tiles which lead to assemblies maximizing designer-defined objectives.

The training process involves:

  1. Rollouts: Generating assemblies using the current policy, starting from an empty state.
  2. Evaluation: Assessing the generated assembly against the designer's objectives (e.g., structural stability, built area, volume, type of space).
  3. Policy Update: Using the rewards from the evaluation to update the RL policy via PPO, aiming to improve future tile selections. The system is trained through self-play, where the agent learns by generating and evaluating assemblies repeatedly until convergence.

Datasets

Not discussed in the paper. The methodology is demonstrated through application to architectural design projects, implying that the "dataset" is the set of geometric tiles and the defined constraints for each project.

Key Insights and Ideas

  • Bridging Constraint Satisfaction and Optimization: The paper successfully integrates a constraint-based generation method (WFC) with an optimization-focused learning paradigm (RL). This allows for the generation of designs that are not only valid but also tailored to specific performance criteria.
  • WFC as an MDP Transition Engine: By viewing WFC's tile placement process as state transitions in an MDP, the problem becomes amenable to RL techniques, enabling learned control over the generation process.
  • Self-Play for Design Exploration: The use of self-play allows the RL agent to iteratively refine its policy, discovering effective strategies for generating assemblies that satisfy complex, multi-objective goals without explicit human supervision during training.
  • Beyond Prototypical Examples: Unlike traditional WFC which often aims to replicate patterns from a given example, this approach allows for the generation of novel assemblies that optimize for abstract criteria, moving beyond mere imitation.

Key Results

The paper demonstrates the application of the Spatial Assembly algorithm in three architectural design projects: ArchiGo (2018), Nomas (2019), and ISIRLA (2020). These projects showcase the method's ability to:

  • Iteratively design and test spatial part sets with varying characteristics and relations.
  • Invent new spatial languages for housing strategies using simple prefabricated parts.
  • Generate reconfigurable cultural centers with parts assembled and reconfigured by autonomous robots.

While specific quantitative metrics (e.g., percentage improvement in stability, exact values for built area optimization) are not detailed in the provided text, the visual examples and project descriptions suggest successful generation of complex, multi-part structures that align with design objectives. The paper highlights the potential for creating buildings with reconfigurable and adaptive life cycles.

Limitations and Future Work

  • Lack of Differentiability: The paper acknowledges that traditional constraint-solving algorithms like WFC lack differentiability, making direct gradient-based optimization difficult. Their approach circumvents this by learning a policy that controls the black-box WFC process.
  • Computational Cost: Training RL agents, especially with complex state spaces and reward functions, can be computationally intensive. The paper mentions training until convergence, implying significant computational resources.
  • Defining Objectives: The effectiveness of the system relies heavily on how well the designer's objectives are translated into reward signals for the RL agent. Crafting these reward functions can be a challenging aspect of the design process.

Future work could involve exploring more sophisticated RL algorithms, developing richer objective functions, and applying the methodology to a wider range of design domains beyond architecture. The potential for integrating real-time feedback or user interaction into the generation loop is also an avenue for exploration.

Summary updated

BibTeX
@misc{tigas2021spatial,
  author = {Panagiotis Tigas and Tyson Hosmer},
  title = {{Spatial Assembly: Generative Architecture With Reinforcement Learning, Self Play and Tree Search}},
  year = {2021},
  eprint = {2101.07579},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.07579},
}
Figure