COHO: Context-Sensitive City-Scale Hierarchical Urban Layout Generation

Liu He, Daniel Aliaga · DOI · OpenReview

Introduction

Urban planning is an intricate puzzle where no element exists in isolation. Historically, AI-driven urban layout generators have struggled with this interconnectedness, often treating city blocks as independent units. This "island" approach frequently results in disjointed urban environments—the "uncanny valley" of city planning—where architectural styles clash or repetitive patterns emerge.

A research team from Purdue University has introduced COHO, a context-sensitive, hierarchical framework designed to generate realistic urban layouts at a city-wide scale. By shifting the focus from individual blocks to the broader urban context, COHO ensures that generated neighborhoods exhibit the stylistic harmony found in real-world cities.

The Context-Sensitivity Gap

Generating a city is a massive scaling challenge. A typical metropolitan area can contain anywhere from 1,000 to 50,000 blocks. Existing methodologies generally fall into two categories:

  1. Procedural Generation: Relies on hand-coded rules. While highly scalable, it often lacks the organic variety and "soul" of real urban environments.
  2. Deep Learning: Typically utilizes pixel-based representations or isolated-block generation. These methods often fail to maintain global consistency, leading to either excessive diversity (where neighbors don't match) or excessive similarity (where the city feels mechanical).

COHO addresses this "context-sensitivity gap" by treating the city as a multi-layer semantic graph, allowing information and stylistic cues to flow between structures and neighborhoods.

The COHO Framework

The COHO architecture is built upon three primary pillars:

1. Canonical Graph Representation

Rather than using a rigid grid of pixels, COHO represents a city as a graph $G$. In this model, nodes represent individual city blocks, and edges represent spatial adjacency. Each node encapsulates features regarding the block's geometry and a quantized representation of the buildings within it. This graph-based approach allows the model to handle arbitrary block shapes and road networks efficiently.

2. Hierarchical Quantization (BVAE)

To manage the complexity of building layouts within a block, the researchers employed a Block-level Variational AutoEncoder (BVAE). This component compresses diverse building attributes—such as shape, height, and position—into a 512-dimensional vector, which is then mapped to a discrete codebook. This creates a manageable "vocabulary" of urban styles for the generative model.

3. Graph-based Masked AutoEncoder (GMAE)

The core generative engine is a Graph-based Masked AutoEncoder. During training, the model is presented with city graphs where certain block features are "masked" or hidden. The GMAE learns to predict these missing elements based on the surrounding context. At inference time, COHO uses a Priority-based Scheduled Generation strategy. Instead of generating the entire city simultaneously, it identifies "anchor" blocks (the most confident or central hubs) and iteratively fills in the surrounding areas. This mimics the organic growth of real cities, where central districts influence the development of adjacent neighborhoods.

Large-Scale Urban Benchmarking

To train and validate COHO, the researchers developed a massive new vector-based urban layout dataset. This benchmark includes data from 330 US cities with populations exceeding 100,000, totaling over 833,000 city blocks and 17.6 million buildings. By merging data from OpenStreetMap (OSM), Microsoft Building Footprints (MSF), and TIGER road networks, this dataset provides one of the most comprehensive resources for large-scale urban AI research.

Results and Performance

COHO demonstrates superior performance compared to state-of-the-art models like LayoutDM and GlobalMapper across several key metrics.

Comparison of COHO against other generative models and the Context Score (CTS) metric.

Realism and Consistency

COHO achieved significantly lower Fréchet Inception Distance (FID) and Kernel Inception Distance (KID) scores, indicating that its generated layouts are statistically much closer to real-world data. Furthermore, the researchers introduced a Context Score (CTS) to measure stylistic harmony. As shown in the comparison above, COHO (CTS = 0.21) maintains a balance close to real data (CTS → 0), whereas other models either produce jarring shifts or overly identical patterns.

Computational Efficiency

Despite its hierarchical complexity, COHO is remarkably fast. It achieves an inference time of approximately 7.94ms per block on an NVIDIA RTX A5000. This performance makes it nearly instantaneous compared to diffusion-based models like SDXL, which can take several seconds to generate a single patch.

Socio-Economic Predictive Power

A notable finding of the study was that the features learned by the GMAE are highly descriptive of the urban environment's social reality. These features can predict socio-economic metrics, such as poverty levels or flood risk, with over 75% accuracy. This suggests that the physical "fingerprint" of a neighborhood's layout is deeply intertwined with its socio-economic characteristics.

Conclusion and Future Work

By conceptualizing the city as a living, connected graph, COHO represents a significant step toward AI that understands the structural and contextual logic of urban life. While the current model excels at 2.5D layouts (footprints and heights), future iterations aim to tackle highly irregular 3D geometries and integrate road network generation into a unified simulation. Such advancements could revolutionize autonomous driving simulations, urban planning tools, and procedural world-building in game design.

Summary updated

Abstract

The generation of large-scale urban layouts has garnered substantial interest across various disciplines. Prior methods have utilized procedural generation requiring manual rule coding or deep learning needing abundant data. However, prior approaches have not considered the context-sensitive nature of urban layout generation. Our approach addresses this gap by leveraging a canonical graph representation for the entire city, which facilitates scalability and captures the multi-layer semantics inherent in urban layouts. We introduce a novel graph-based masked autoencoder (GMAE) for city-scale urban layout generation. The method encodes attributed buildings, city blocks, communities and cities into a unified graph structure, enabling self-supervised masked training for graph autoencoder. Additionally, we employ scheduled iterative sampling for 2.5D layout generation, prioritizing the generation of important city blocks and buildings. Our approach achieves good realism, semantic consistency, and correctness across the heterogeneous urban styles in 330 US cities. Codes and datasets are released at~\url{https://github.com/Arking1995/COHO}.
BibTeX
@misc{he2024coho,
  author = {Liu He and Daniel Aliaga},
  title = {{COHO: Context-Sensitive City-Scale Hierarchical Urban Layout Generation}},
  year = {2024},
  eprint = {2407.11294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11294},
}
Figure