Autoencoding tree for city generation and applications

Wenyu Han, Congcong Wen, Lazarus Chok, Yan Liang Tan, Sheung Lung Chan, Hang Zhao, Chen Feng

TL;DR

This paper introduces RealCity3D, a massive dataset of over 3 million 3D building objects across eight global cities, and AETree, a novel tree-structured autoencoder designed to generate realistic city layouts. By organizing buildings into a spatial hierarchy and using LSTM cells to capture long-range dependencies, AETree outperforms existing generative models in creating coherent, non-overlapping urban environments.

What Problem Does This Paper Address?

Generating realistic 3D cities is a "holy grail" for urban planners, game developers, and autonomous driving researchers. However, the field faces two major hurdles:

  1. Data Scarcity: Most existing datasets are either 2D (footprints only), small-scale (single rooms), or synthetic. There is a lack of diverse, large-scale, 3D real-world data.
  2. Structural Complexity: Cities aren't just random collections of blocks; they have hierarchical spatial structures (buildings form blocks, blocks form neighborhoods). Standard generative models often fail to capture these relationships, leading to "messy" layouts where buildings overlap or lack realistic alignment.

Methods

The authors propose a two-part solution: a new way to organize urban data and a specific neural architecture to process it.

1. Spatial-Geometric Distance (SGD) & Binary Trees

Instead of treating a city as a flat list of coordinates, the authors use a novel SGD metric to cluster buildings. This metric considers not just Euclidean distance, but also similarities in area, shape, orientation, and the efficiency of merging two footprints into a single bounding box. This allows them to build a binary tree representing the city's spatial hierarchy from the ground up.

2. AETree Architecture

AETree is a tree-structured autoencoder.

  • Encoder: Iteratively merges information from leaf nodes (individual buildings) up to a root node (the global representation) using a bottom-up approach.
  • LSTM Integration: To prevent information loss in deep trees, the authors use Long Short-Term Memory (LSTM) cells as the core processing units within the tree nodes.
  • Relative Representation: Crucially, the model predicts the parameters of child nodes relative to their parents. This normalization makes training more stable and helps the model learn spatial relationships rather than absolute coordinates.

3. Overlapping Area Ratio (OAR)

Standard metrics like Chamfer Distance measure how close points are but ignore physical reality—two buildings cannot occupy the same space. The authors introduce OAR to specifically penalize overlapping generations, providing a more meaningful measure of urban "legality."

Datasets

The paper introduces RealCity3D, a comprehensive dataset compiled from CityGML data of New York, Zurich, Tokyo, Berlin, Boston, Vienna, Brussels, and Estonia.

Overview of the RealCity3D dataset across various global cities.
  • Scale: 3,000,000+ georeferenced objects covering 3,510 km².
  • Formats: Available as polygon meshes, triangle meshes, point clouds, and voxel grids.
  • Detail: Buildings are categorized by "Level of Detail" (LoD), with the dataset primarily focusing on LoD2, which includes roof structures.
Examples of building objects ranging from LoD1 (simple blocks) to LoD4 (detailed interiors).

Key Insights and Ideas

  • Hierarchy is Key: By forcing the neural network to follow a spatial tree structure, the model inherently learns that local alignments (like a row of houses) are part of larger structures (like a city block).
  • Relative > Absolute: Representing a building's position relative to its "parent" cluster is far more effective for generation than using global GPS coordinates. It allows the model to generalize patterns across different parts of a city.
  • LSTMs in Trees: While tree-based networks exist, using LSTMs within the nodes is vital for city-scale data where the tree depth can lead to vanishing gradients.

Key Results

AETree was benchmarked against several state-of-the-art models, including LayoutTransformer and SketchRNN.

  • Quantitative: AETree achieved the lowest Jensen-Shannon Divergence (JSD) (0.0033) and the best OAR (1.66%), meaning its generated layouts were both statistically similar to real cities and physically plausible (minimal overlaps).
  • Efficiency: Despite its performance, AETree is computationally efficient, requiring significantly fewer FLOPs per sample (31.86M) compared to LayoutTransformer (408.39M).
  • Applications: The authors demonstrated that the latent features learned by AETree can be used to automatically classify urban typologies (e.g., distinguishing "dense" vs. "sparse" neighborhoods) without manual labeling.
The data processing pipeline, converting raw polygon meshes into various formats like point clouds and voxels.

Limitations and Future Work

  • Simplified Geometry: For the generative tasks, the authors simplified buildings into 3D cuboids. While this captures the layout, it misses complex architectural flourishes found in the raw mesh data.
  • Fixed Node Counts: The current experiments often use fixed numbers of buildings per set (e.g., 32). Future work could explore more dynamic tree structures that adapt to varying neighborhood sizes.
  • Semantic Integration: While the dataset contains semantic labels (roof, wall, ground), the generative model primarily focuses on geometry. Integrating these labels more deeply into the generation process is a suggested next step.

Summary updated

BibTeX
@inproceedings{han2024autoencoding,
  author = {Wenyu Han and Congcong Wen and Lazarus Chok and Yan Liang Tan and Sheung Lung Chan and Hang Zhao and Chen Feng},
  title = {{Autoencoding tree for city generation and applications}},
  booktitle = {ISPRS},
  year = {2024},
  doi = {10.1016/j.isprsjprs.2024.01.010},
}
Figure