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

Large-Scale Auto-Regressive Modeling Of Street Networks

Michael Birsak, Tom Kelly, Wamiq Para, Peter WonkaarXiv 2022 · DOI

Abstract

Synthesizing realistic, city-scale street networks is a complex challenge in urban planning and computer graphics. This paper presents a transformer-based generative framework that leverages vector quantization (VQVAE) and an auto-regressive sliding window approach to generate traversable road layouts over areas exceeding 400 $km^2$. By representing street networks as distance fields and conditioning generation on environmental constraints, the model produces urban patterns that statistically match real-world data, significantly outperforming previous graph-generative methods in scale and fidelity.

Introduction

While generative modeling has achieved remarkable success in domains like facial synthesis and text-to-image generation, the synthesis of embedded graphs—specifically street networks where vertices possess precise 2D coordinates—remains a significant hurdle. Existing methods, such as Neural Turtle Graphics, often rely on Recurrent Neural Networks (RNNs) to process roads as collections of polylines. These approaches typically struggle with three major issues: a lack of global context, poor scalability beyond small patches, and reliance on outdated architectures like GRUs.

This research introduces a system capable of generating coherent, high-quality street graphs for entire cities. The framework adheres to user-defined constraints, such as coastlines and population density, bridging the gap between small-scale procedural generation and large-scale urban synthesis.

Methodology

The proposed pipeline transitions from raw map data to a compressed latent representation and finally back to a vector graph through several distinct stages:

  1. Compression via VQVAE: To handle the computational complexity of city-scale data, the system employs a Vector Quantized Variational AutoEncoder (VQVAE). This model learns to represent complex road layouts (modeled as distance fields) using a discrete dictionary of latent codes. This process reduces high-resolution image patches into manageable grids of indices.
  2. Auto-Regressive IndexModel: A transformer decoder is trained to predict these indices. To facilitate the generation of massive urban areas, a sliding window approach is used, where the model predicts the next "cell" of the city based on its immediate spatial neighbors.
  3. Conditioning: Generation is guided by three primary inputs: land/water masks to prevent roads in water bodies, density maps to control urban sprawl, and high-priority road skeletons ($P_1$) to which local residential streets ($P_2$) are anchored.
  4. Graph Extraction: The predicted indices are decoded back into a distance field. A thinning and road-tracing algorithm then converts this pixel-based data into a traversable vector graph consisting of nodes and edges.
Architecture of the generative pipeline, showing the VQVAE compression and the auto-regressive IndexModel.

Technical Insights

A core innovation of this work is the use of distance fields as an intermediate representation rather than raw graph vertices. Predicting raw nodes and edges is topologically brittle; a single misplaced coordinate can invalidate the entire graph structure. Distance fields provide a continuous, image-based representation that neural networks can process more effectively.

Comparison between a binary road mask (left) and its corresponding distance field representation (right).

Furthermore, the use of discrete latents via VQVAE significantly compresses the data. By transforming a $256 \times 256$ pixel patch into a $16 \times 16$ index grid, the sequence length for the transformer is reduced by a factor of 256, allowing the model to capture sufficient context for coherent neighborhood generation.

Results and Evaluation

The model was trained on OpenStreetMap (OSM) data from the 50 largest US cities, capturing a wide variety of urban patterns. Key results include:

  • Massive Scale: The system successfully generated street networks for areas up to $22km \times 22km$ (over 400 $km^2$), two orders of magnitude larger than previous state-of-the-art models.
  • Statistical Fidelity: Compared against CityEngine, a leading procedural tool, the transformer-based model better matched the statistical "fingerprints" of real cities, including node degree distributions and transport efficiency ratios.
  • Urban Style Transfer: The model demonstrates the ability to perform style transfer, such as applying American street grid patterns to the coastline and density constraints of Istanbul.

Conclusion and Future Work

Despite its success, the framework requires manual provision of conditioning maps (land/water, density, and major roads). Future iterations could automate the generation of these high-level blueprints. Additionally, the auto-regressive nature of the model makes generation sequential and potentially slow for planetary-scale tasks. Finally, incorporating terrain elevation and 3D building parcel generation remains a promising direction for creating complete virtual environments.

Summary updated

BibTeX
@misc{birsak2022large,
  author = {Michael Birsak and Tom Kelly and Wamiq Para and Peter Wonka},
  title = {{Large-Scale Auto-Regressive Modeling Of Street Networks}},
  year = {2022},
  eprint = {2209.00281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.00281},
}
Figure