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