CityGen: Infinite and Controllable 3D City Layout Generation

Jie Deng, Wenhao Chai, Jianshu Guo, Qixuan Huang, Wenhao Hu, Jenq-Neng Hwang, Gaoang Wang

Abstract

Generating realistic, large-scale urban environments is a critical challenge for urban planning, autonomous vehicle simulation, and game development. Traditional methods often struggle with the trade-off between labor-intensive procedural modeling and deep learning approaches that fail to scale beyond small, repetitive blocks. This paper introduces CityGen, an end-to-end framework that utilizes diffusion models to generate infinite-scale, controllable 3D city layouts. By combining an infinite expansion module with multi-scale refinement, CityGen produces high-quality semantic and height fields that significantly outperform current state-of-the-art methods in both diversity and structural realism.

Introduction

Creating virtual cities at scale is a massive data problem. Previous generative approaches, such as GANs or VAEs, often represent buildings as simple axis-aligned bounding boxes, failing to capture the complex, interlocking shapes of real-world urban architecture. While semantic mask approaches offer more detail, they face hurdles in scalability (visible seams), controllability (difficulty in manual guidance), and the computational cost of high-resolution generation. CityGen addresses these limitations through a modular pipeline that transitions from local "seeds" to expansive global landscapes.

The CityGen Framework

CityGen's architecture is designed to move from initial noise to a fully realized 3D layout through several specialized stages:

The CityGen pipeline: from local generation and infinite expansion to multi-scale refinement and 3D synthesis.
  • One-Hot Diffusion: Unlike standard RGB-based diffusion, CityGen operates in a "one-hot space," representing city elements (roads, buildings, vegetation) as categorical vectors. This ensures sharp, distinct boundaries required for city layouts.
  • Infinite Expansion Module: To grow cities indefinitely, the model employs an outpainting strategy with a sliding window and specialized merging techniques, avoiding the repetitive patterns common in older auto-regressive models.
  • Multi-scale Refinement: The model generates low-resolution blocks that are subsequently processed by a refinement module. This acts as a "neural cleanup crew," sharpening object boundaries and removing aliasing artifacts.
  • 3D Synthesis via Height Fields: The system moves from 2D to 3D by synthesizing a global height field. It utilizes Simplex noise for terrain and Gaussian-distributed heights for building instances, allowing for realistic skyline variation.

Data Preparation and Training

The authors leveraged OpenStreetMap (OSM), a massive open-source geographic database, to build their training set.

Data processing workflow: extracting OSM classes, rendering via Blender, and post-processing for training.

3D models were populated from OSM data and rendered using Blender to create a custom dataset of 2D semantic projections. The final training set consisted of millions of patches at resolutions of 128², 256², and 512² to support the multi-scale training process. Post-processing steps like color mapping and boundary refinement were applied to ensure the data was suitable for high-fidelity generative training.

Key Insights and Results

CityGen introduces several innovations for urban generation:

  • Inpainting for Control: By treating user sketches as partial images, the model uses inpainting to fill in details while respecting the user's defined road networks.
  • Instance-Level Logic: Segmenting buildings into individual instances allows for realistic height distribution, distinguishing between high-rise office towers and low-rise residential areas.

Quantitatively, CityGen demonstrates a significant leap over existing models. On the Fréchet Inception Distance (FID) metric, CityGen achieved a score of 20.18 at the 128 scale, a massive improvement over the 80.35 score of InfiniCity. Qualitatively, the model produces much sharper, more coherent road networks and building shapes, maintaining clear boundaries even at infinite scales.

Limitations and Future Work

While CityGen represents a major advancement, the current resolution limit of 0.5 meters per pixel is not yet sufficient for street-level architectural details. Future work will focus on integrating dynamic elements like traffic and pedestrians, as well as incorporating text-to-city capabilities to allow users to describe city styles (e.g., "dense European coastal town") through natural language guidance.

Summary updated

Abstract

City layout generation has recently gained significant attention. The goal of this task is to automatically generate the layout of a city scene, including elements such as roads, buildings, vegetation, as well as other urban infrastructures. Previous methods using VAEs or GANs for 3D city layout generation offer limited diversity and constrained interactivity, only allowing users to selectively regenerate parts of the layout, which greatly limits customization. In this paper, we propose CityGen, a novel end-to-end framework for infinite, diverse and controllable 3D city layout generation.First, we propose an outpainting pipeline to extend the local layout to an infinite city layout. Then, we utilize a multi-scale diffusion model to generate diverse and controllable local semantic layout patches. The extensive experiments show that CityGen achieves state-of-the-art (SOTA) performance under FID and KID in generating an infinite and controllable 3D city layout. CityGen demonstrates promising applicability in fields like smart cities, urban planning, and digital simulation.
BibTeX
@inproceedings{deng2025citygen,
  author = {Jie Deng and Wenhao Chai and Jianshu Guo and Qixuan Huang and Wenhao Hu and Jenq-Neng Hwang and Gaoang Wang},
  title = {{CityGen: Infinite and Controllable 3D City Layout Generation}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure