TL;DR
CityGen is an end-to-end framework that generates infinite, diverse, and user-controllable 3D city layouts. By combining one-hot diffusion models with a multi-scale refinement pipeline, it produces high-fidelity urban environments—from roads and buildings to vegetation—that can be directed via simple user sketches.
What Problem Does This Paper Address?
Generating realistic virtual cities is a cornerstone of urban planning, autonomous vehicle simulation, and game development. However, existing methods struggle with a "trilemma" of scale, complexity, and control.
Procedural modeling is scalable but requires rigid, expert-defined rules that lack diversity. Early deep learning approaches (like VAEs and GANs) often represent buildings as simple axis-aligned bounding boxes, failing to capture the organic, irregular shapes found in real-world cities. Furthermore, while recent diffusion-based models can generate impressive local patches, extending them to an "infinite" global scale while maintaining user control and structural coherence remains a significant challenge.
Methods
CityGen tackles these issues through a modular pipeline centered on diffusion models. The framework is divided into four main stages:
- Local Block Generation: Instead of working in standard RGB space, the authors train a diffusion model (DDPM) in one-hot semantic space. By representing each pixel as a one-hot vector of city elements (building, road, water, etc.), the model avoids the color-bleeding artifacts common in RGB-based semantic generation.
- Infinite Expansion: To move beyond fixed-size images, an outpainting module iteratively extends local blocks. It uses a sliding window approach with a specialized mask to ensure smooth transitions and structural continuity across the expanding city.
- Multi-scale Refinement: Generating high-resolution global maps is computationally expensive. CityGen generates low-resolution global layouts first, then uses a refinement module to upsample and "fix" artifacts (like jagged edges or isolated pixels) at a local level.
- 3D Synthesis: The 2D semantic layout is converted to 3D by synthesizing a height field. Interestingly, the authors found that purely neural height generation often led to inconsistent rooftops. They instead use a hybrid rule-based approach: simplex noise for natural terrain and instance-based Gaussian sampling for buildings to ensure flat, realistic rooftops.
Datasets
The model is trained on data derived from OpenStreetMap (OSM). The researchers developed a custom pre-processing pipeline to turn raw geographic data into clean training samples:
- Blender Rendering: They populated 3D models from OSM data and rendered orthogonal aerial projections.
- Post-processing: A custom pipeline was used for boundary refinement and color correction to ensure the semantic labels were pixel-perfect.
- Scale: The final dataset includes millions of patches at various resolutions ($128^2$, $256^2$, and $512^2$) to support the multi-scale training strategy.
Key Insights and Ideas
- One-Hot is King: Training diffusion models directly on one-hot encoded semantic maps significantly outperforms RGB-space training. It forces the model to learn the underlying categorical structure of the city rather than just trying to match colors, leading to much sharper boundaries between roads and buildings.
- Separating Semantics from Height: While multi-task networks can theoretically predict both layout and height, they often lose coherence at scale. By treating height synthesis as a separate, rule-informed step, CityGen maintains the "flatness" required for realistic urban infrastructure.
- Sketch-to-City: By framing user control as an inpainting task, the model allows users to draw rough road networks or building footprints, which the model then "completes" into a full, high-fidelity city layout.
Key Results
CityGen demonstrates state-of-the-art performance both quantitatively and qualitatively:
- Quantitative: In block generation tests, CityGen achieved a Frechet Inception Distance (FID) of 20.18 at the $128^2$ scale, vastly outperforming InfiniCity (80.35) and CityDreamer (111.44).
- Qualitative: Unlike previous methods that produce "blobby" buildings or disconnected roads, CityGen generates clear, instance-separable structures. The infinite expansion module successfully creates vast urban areas without the repetitive tiling patterns often seen in auto-regressive models.
Limitations and Future Work
The authors identify a few areas for growth:
- Resolution: The current maximum resolution is 0.5 meters per pixel. While high, even finer detail is needed for street-level applications.
- Dynamic Elements: The current framework generates static layouts. Future iterations aim to include dynamic agents like moving vehicles and pedestrians.
- Multimodal Control: While sketching is intuitive, the authors plan to incorporate text prompts and reference images to give users even more granular control over the architectural style and "vibe" of the generated city.
Summary updated