Large-Scale Auto-Regressive Modeling Of Street Networks

Michael Birsak KAUSTKingdom of Saudi Arabia Tom Kelly KAUSTKingdom of Saudi Arabia Wamiq Para KAUSTKingdom of Saudi Arabia  and  Peter Wonka KAUSTKingdom of Saudi Arabia
Abstract.

We present a novel generative method for the creation of city-scale road layouts. While the output of recent methods is limited in both size of the covered area and diversity, our framework produces large traversable graphs of high quality consisting of vertices and edges representing complete street networks covering 400 km² or more. While our framework can process general 2D embedded graphs, we focus on street networks due to the wide availability of training data.

Our generative framework consists of a transformer decoder that is used in a sliding window manner to predict a field of indices, with each index encoding a representation of the local neighborhood. The semantics of each index is determined by a dictionary of context vectors. The index field is then input to a decoder to compute the street graph. Using data from OpenStreetMap, we train our system on whole cities and even across large countries such as the US, and finally compare it to the state of the art.

Street graph synthesis; Generative Roads
copyright: acmcopyrightjournalyear: 2022doi: XXXXXXX.XXXXXXXconference: Make sure to enter the correct conference title from your rights confirmation emai; June 03–05, 2018; Woodstock, NYprice: 15.00isbn: 978-1-4503-XXXX-X/18/06ccs: Computing methodologies Neural networksccs: Mathematics of computing Graph algorithmsccs: Information systems Geographic information systemsccs: Applied computing Cartographyccs: Computer systems organization Neural networks
Figure 1. Our system creates diverse street networks at city-scale. Left: A generated layout over an area of 400 km² (20km x 20km) and view frustum (yellow triangle). Right: A rendering of the street graph from the view frustum.

1. Introduction

Generative modeling is an active field of research with many exciting recent contributions. Examples include the generation of realistic human faces using the StyleGAN architecture (Karras et al., 2020, 2021) and the synthesis of images from language prompts (Ramesh et al., 2021, 2022). The goal of this work is to explore the generative modeling of embedded graphs. In particular, we focus on embedded street graphs where each vertex is associated with a 2D coordinate.

We improve on a body of existing work in generative modeling; a typical example of which is Neural Turtle Graphics (Chu et al., 2019), which gives high-quality results for small regions using GRU cells (Li et al., 2016). However, our analysis shows three shortcomings of this work that we address. First, the approach has an inherent limitation in that it encodes and processes graphs as a collection of polylines rather than considering all relevant information (e.g., patterns in the local neighborhood). Even locally, the model does not have a full understanding of its neighborhood. Second, the approach is limited to small areas; for city-scale street networks it is important to scale up the area generated by at least two orders of magnitude. Third, GRU cells have been surpassed by contemporary state-of-the-art generative models, suggesting that more recent approaches may produce stronger results. To overcome these limitations, we propose the following ideas.

VQVAE
dictionary
IndexModel
1
2
3
4
N-1
4, 3, 6, 2, 4, 1,
decoder
condition maps
encoder
Figure 2. We leverage a VQVAE to obtain a context-rich dictionary. A transformer decoder referred to as the IndexModel is trained to learn a conditional prior of the index distribution. The decoder part of the VQVAE together with a thinning and graph tracing approach proposed in (Bastani et al., 2018) is used to obtain a traversable graph.

First, instead of GRU cells we use a transformer architecture (Vaswani et al., 2017) which is a state-of-the-art architecture for generative modeling. Second, we build on auto-regressive models that operate in a compressed space computed by trainable vector quantization (van den Oord et al., 2017). Working in a compressed space provides better scalability of the model since a large-scale transformer architecture is very hard to train and requires a significant amount of hardware. Third, we use a CNN-based decoder to decompress such a quantized representation into an image-based representation. Finally, we use a thinning approach together with the road-tracing approach proposed in (Bastani et al., 2018) to obtain a street graph. Fourth, we employ a combination of sliding window generation and decoding together with conditioning to generate coherent large-scale results. A standard sliding window approach alone would lead to incoherent results. An overview of our architecture is shown in Figure 2.

In summary, our paper contributes a large-scale modeling framework for high-quality street networks that is able to generate street networks that are two orders of magnitude larger than previous generative models for 2D embedded graphs including street graphs.

2. Related Work

2.1. Classical Approaches

Street networks form a key element of generating urban environments. Traditional modeling approaches have been largely procedural or rule-based. This cross-disciplinary area has been surveyed by a number of papers from graphics (Smelik et al., 2014; Kim et al., 2018; Vanegas et al., 2010), architecture (Spencer, 2009), and physics (Barthélemy, 2011).

Procedural Modeling. Müller et al. (Parish and Müller, 2001) introduced a novel self-sensitive L-System (Prusinkiewicz, 1986) which was well suited to the construction of a variety of different street patterns. It has also been adapted by follow up work (Beneš et al., 2011; Kelly and McCabe, 2007). Other approaches include simple grids (Greuter et al., 2003), mesh-based deformable templates (Peng et al., 2014) and hierarchical domain splitting (Yang et al., 2013). Outside of cities, the interaction of street networks with terrain and natural features (e.g., rivers and lakes) are important to generation (Emilien et al., 2012; Galin et al., 2010). One may also apply optimization and simulation in other ways, such as agent-based generation (Song and Whitehead, 2019), or quality of life factors (e.g., daylight or distance to the nearest park) (Vanegas et al., 2012).

Simulation. Street networks are shaped by complex sociological, economic, and technological aspects throughout history. A large body of work studies land use modeling (Lechner et al., 2006) and other work aims to create more accurate street- and city-scapes by simulation over time, in both contemporary (Weber et al., 2009) or historically (Mas et al., 2020) contexts. Given two historical city maps, Krecklau et al. create a smooth animation  (Krecklau et al., 2012) showing city growth over time, while Vanegas et al. create realistic satellite images form such a prediction (Vanegas et al., 2009). Another approach is to allow the user to author a timeline (Williams and Headleand, 2017), which is used to simulate the history of the urban area.

Interactive Techniques. Direct authoring of street network graphs, placing junctions (nodes) and streets (edges) is accurate, but highly time consuming. At the other extreme, geospatial databases (Sun et al., 2002) are accurate and fast, but cannot synthesize novel areas. In between these extremes, interactive authoring of street networks often focuses on higher level primitives, such as tensor fields  (Chen et al., 2008), brushing elements onto existing street networks (Emilien et al., 2015), or street density and patterns (Galin et al., 2011). The recombination of patches of street networks has been investigated using interactive tools such as expand, scale, replace (Aliaga et al., 2008), blending, warping, growing (Nishida et al., 2016), or shrinking street network patches (Pueyo et al., 2020).

2.2. Generative Models

VAEs. The standard VAE (Kingma and Welling, 2014) is an encoder-decoder framework, where the data is encoded into latent variables, and decoded from those latents. Further refinements include more expressive priors (Tomczak and Welling, 2018; Kingma et al., 2016; Chen et al., 2016), or better architectures (Vahdat and Kautz, 2020; Maaløe et al., 2019; Ranganath et al., 2016; Sønderby et al., 2016) which are often hierarchical. VQVAE (van den Oord et al., 2017; Razavi et al., 2019) introduced vector quantization (Gersho and Gray, 1991) to generative models. During training, the latents from the encoder are replaced by their closest element from a learned dictionary. A discrete dictionary works well in conjunction with auto-regressive models based on transformers.

Transformers. The transformer architecture (Vaswani et al., 2017) originally arose in the field of Natural Language Processing but has since been adapted in fields as diverse as object detection (Carion et al., 2020; Beal et al., 2020), image classification (Dosovitskiy et al., 2021), image generation (Parmar et al., 2018; Esser et al., 2020) and layout generation (Para et al., 2020; Wang et al., 2020). A transformer is composed of multiple layers of attention blocks (Parikh et al., 2016; Lin et al., 2017) which model attention over different positions in the sequence. Transformers used as generative models are Auto-Regressive Models (Oord et al., 2016; Esser et al., 2020) where the generation process occurs step-by-step and the current element depends only on the previously generated elements.

2.3. Graph Synthesis Models

Modeling Graph Connectivity. Deep-generative models for graph-structured data were originally proposed in (Kusner et al., 2017). This was followed by a follow-up work (Dai et al., 2018; Guimaraes et al., 2017; Li et al., 2018; You et al., 2018; De Cao and Kipf, 2018; Simonovsky and Komodakis, 2018) which showed impressive results for molecule generation. Recent methods focus on attaining better performance by using improved architectures (Liao et al., 2019; Li et al., 2021), handling larger graphs by exploiting sparsity (Dai et al., 2020), or improving priors (Shi* et al., 2020; Zang and Wang, 2020; Honda et al., 2020) with flows. Single step generation with VAEs/GANs (De Cao and Kipf, 2018; Simonovsky and Komodakis, 2018), while faster than auto-regressive models (Grover et al., 2019; You et al., 2018; Liao et al., 2019), tends to be of lower quality. These methods are used in domains where nodes do not carry any spatial information and mostly focus on generating valid topology. In the street domain, generating both valid geometry and valid topology is required.

Graphs With Geometric Data. Neural Turtle Graphics (Chu et al., 2019) treats a road network as a graph where the nodes have 2D coordinates. The model is an encoder-decoder architecture based on GRU (Cho et al., 2014) cells in a similar way to Recursive Neural Networks (RNN). For each node, the encoder encodes all the paths which terminate at the node into a hidden state. The decoder works recursively to decode the hidden state into a variable length sequence containing coordinates of the current node, and coordinates of a variable number of neighbouring nodes. PolyGen (Nash et al., 2020) is a method for generating 3D meshes. PolyGen tackles the graph generation problem by factorizing the graph into two models. First a Vertex Model learns the distribution of the nodes/vertices. Second a Face Model learns the connectivity distribution of edges/faces conditioned on the nodes. This enables the modeling of both spatial and topological information. HDMapGen (Mi et al., 2021) also employs auto-regressive modeling for smaller graphs.

We observed that methods like PolyGen (Nash et al., 2020) tend to have problems to provide convincing results when relying on a meaningful topology. We particularly noticed more local errors in connectivity that are ultimately a bit more noticeable than the errors from image-based representations like a distance field. We therefore leverage a robust CNN-based decoder to obtain an image-based representation, followed by a thinning approach and road-tracing method proposed in (Bastani et al., 2018).

Alternatively, GANs could also be used for road modeling (Hartmann et al., 2017; Owaki and Machida, 2020), but it is difficult to compete with auto-regressive models.

3. Methodology

3.1. Overview

Our system consists of multiple parts, an overview of which are introduced in Fig. 2. A graph is traditionally described as where are the vertices and the edges; alternatively, graphs can be represented in the image domain by drawing the graph as a 2D image , with and being the height and width in pixels respectively and being the number of color channels, or a distance field of the same resolution. We first learn a compressed representation of the road layout in the image domain by training a single-level VQVAE called the CompressionModel. This gives us an Index Field, , which contains indices into a learned dictionary of latents. We experimented with various different image-based representations of a street graph and identified distance fields as giving the best results.

The compressed Index Field representation reduces the sequence length for the decoders which operates on the latent representation. This compression is achieved spatially since and , as well as through the re-use of values in the indexed dictionary. The sliding window generation scheme further limits the effective sequence length, but it requires additional supervision, e.g., in the form of high priority roads, a land water map, and a density map to achieve global consistency. Combining these approaches allows us to model road networks corresponding to over in the real world, which is over two orders of magnitude larger than prior art. Further, we can achieve this with a transformer, which is otherwise highly sensitive to long sequence lengths.

3.2. Data Preparation

The input to our training procedure are square crops of city areas with each crop being partitioned into a regular grid of equally sized cells. The reasoning behind this partitioning is to have one cell per index to conform to the compression factor of the CompressionModel.

Zoom Level and Projection. We use the Mercator projection for our map data and could identify a crop width of on the equator (zoom level following OpenStreetMap standards) to be a good trade-off between being large enough to show enough spatial context and at the same time being small enough to cause feasible sequence lengths per cell for our transformer models.

Partitioning Into Cells. Each crop is partitioned into a regular grid of equally sized cells to conform to the compression factor of the CompressionModel. In our experiments, we usually choose an input resolution to the CompressionModel of pixels and a compression ratio to obtain indices as output. Analogously, we subdivide each crop into cells which results in an effective cell extent of .

Density Maps. Our generation is conditioned on a locally computed street density function (street segment length per unit area). The density for each cell is computed at a resolution of , with each sample’s center over an extent of . Computing this map is expensive during test and training time; to this end we accelerate it by pre-computing a global map of densities at a resolution of . This map may be efficiently convolved for any given sample within a cell to compute the local density.

Street Types. We observed unsatisfying results in early experiments when trying to synthesize a whole street network in one go without distinguishing between the street types (e.g., motorway, residential road); therefore, our goal is to generate a street network in a hierarchical manner by starting with high-priority streets such as highways and to condition the generation of lower-priority streets on already generated streets of higher priority. To this end, we define two priority classes and , with being streets of high priority (e.g., motorway, trunk) and being streets of low priority (e.g., residential road, living street), and split the data accordingly. For the proof of concept proposed in this paper, we focus on the generation of streets and assume an already existing network of streets. Please refer to Appendix B for a complete assignment list of street types to priority classes.

Figure 3. Two different image-based representations of an example crop partitioned into cells . Left: The crop in the image domain ( px, px per cell) rendered using Bresenham line rasterizer. Right: Distance Field.

3.3. CompressionModel

We leverage the VQGAN implementation of Esser et al. (Esser et al., 2020) to learn a dictionary of context-rich latent codes. However, we could not observe any improvement when using the discriminator but only use a combination of reconstruction loss, perceptual loss and dictionary loss. Due to this missing adversarial component, we consider our CompressionModel to be a VQVAE. We experimented with a two image-based representations of a street network to be used as input to our model – simple graph drawings and distance fields (See Fig. 3):

Simple Graph Drawings. To represent a graph as a simple image with uniform spatial properties, we draw each edge using a line rasterizer. We use the Bresenham algorithm (Bresenham, 1965) due to its simplicity. However, we observe problems with thin one-pixel-wide edges used as input to the VQVAE – the reconstructions tend to be fragmented and do not retain the important topology of the underlying graph. We therefore experimented with morphological dilation to obtain a better reconstruction quality. This however did not properly solve the mentioned issues. We hypothesize that the VQVAE needs a smooth representation to process information about the street network not only at pixels corresponding to actual elements of the graph, but at each pixel of the input image. This is a condition that a thin rendering does not possess as it has sharp transitions (e.g., between road and non-road regions).

Distance Fields. We use distance fields as a smooth image-based representation of the graph. While it would be possible to compute the fields analytically on-demand, we found this to be a performance bottleneck when training. Therefore, we first compute the rasterized graph as a simple graph drawing (as above) and then pre-compute the distance field, interpreting all pixels corresponding to the graph to have a distance of . While this approximation reduces the accuracy of the distance fields, we could not observe a significant drop of the output quality and therefore rasterize all image-based street network data prior to the distance field computation.

3.4. IndexModel

Once we have a trained CompressionModel, we use the model to compress crops from renders of city areas into an index field. We compress into a field having a spatial resolution that is per axis times smaller than the input resolution. We then train a transformer on this field following (Esser et al., 2020). Our index field is ordered into a sequence . The transformer is trained with the next-token prediction task - given the partial sequence , predict the next token. This leads to the following probability model . Extending the model to generate probabilities, conditioned on a context (e.g., street density or a land-water map) leads to the following model:

(1)

Architecture and Training. The architecture of the transformer is a standard encoder-decoder model, with bidirectional attention on the encoder, and causal attention on the decoder. We use a sliding-window representing the receptive field of the transformer of size resulting in a sequence length of . We use a learned positional embedding where the position assigned to each index is the absolute location within the window. We also need to be able to condition on the provided context. There are two forms of context. The first is the cell-based context (), which is the quantized representation of the density. The density map is th the size of the desired spatial resolution of the graph, while and the land-water map have the same resolution. The cell-based context is encoded by using a linear layer on the scalar value of the cell to project to the embedding dimension of the transformer. The second type of context is the pixel-based context () which is the image based representation of given distance fields (e.g., streets) and the land-water map. We extract the patches corresponding to each of the cells in the sliding window from the image representations. The image representations are flattened and projected by a linear layer to the embedding dimension. This is done independently for every cell. The two embedding vectors per-cell are concatenated in the channel dimension, and another linear layer projects them again to the embedding dimension. The encoder input sequence is then the concatenation of all the embedding vectors, this time along the sequence dimension. The complete context , in Eq. 1 is the concatenation of the the two contexts on a per-cell basis . A transformer encoder encodes this context. A transformer decoder performs cross-attention into the output of the encoder to create a distribution over the possible tokens and generate as in Eq. 1.

Inference. In order to generate an index field, we need a set of conditioning maps - a distance field representing , a density map defining the desired street network density per cell and the land-water map. Inference is almost the same as training, where we take the corresponding crops from the appropriate conditioning maps, move the sliding window by 1 cell during the generation process and denote the generated index field as . Using the sliding window approach, we are able to generate index fields of arbitrary size. For a street network corresponding to an area of about 20km x 20km, we choose both the height and width of the index field to be 256.

3.5. Decoder

We decode the generated index field back into a distance field using the trained decoder of the VQVAE. We post-process the distance field to a graph representation. To do this we first apply a threshold, then using a thinning and road-tracing (Bastani et al., 2018), before finally filtering small disconnected parts. This results in a vector street graph output.

4. Results

We trained on the largest 50 US cities by population to extract a large variety of different city crops. Our results show interesting layouts containing many different patterns.

Implementation Details. Our models are trained on a single node with one to four A100 Nvidia GPUs. For the VQVAE, we use the official VQGAN implementation of (Esser et al., 2020) without a discriminator and the fast transformers library of (Katharopoulos et al., 2020; Vyas et al., 2020) for the IndexModel. For the results shown in this paper, we choose a learning rate of , attention heads, and usually train for gradient updates. We found a warm-up of gradient updates to be beneficial and use a cosine annealing afterwards. Training takes about hours for the VQVAE and hours for the IndexModel. For easier data acquisition, we set up our own OpenStreetMap server consisting of a tile server for the land/water maps and leverage the Overpass API to query the vector data of street networks.

Output Diversity. We use our model repeatedly using the same set of condition maps to show the diversity of the generated results. In Fig. 6, we show two different layouts for crops of size km km for three US cities. Note how the model adheres to the given conditions (land/water, higher priority streets, density) to create a different layout in each case.

Large-Scale Results. Using our model in a sliding window fashion we are able to create a city area of arbitrary size. The only limiting factor in this regard is the autoregressive generation which requires the output to be generated sequentially. We validate our system by choosing an area consisting of cells, each cell corresponding to an area of about m m, the output extent thereby corresponding to about km km in the Mercator-projected space. Although our system can be used together with a user-defined density map, we use the ground-truth density map for our results to allow a direct comparison with existing cities. In Fig. 1, we show an alternative city layout for New York City. Our model is able to adhere to the provided condition maps in a meaningful way and to generate a diverse layout that would be difficult to achieve with state-of-the-art procedural models.

Style Transfer We experimented with using our trained model to transfer the style of streets between different locations. We used our model that was trained on street patterns in US cities to synthesize street networks for cities in other countries. In Fig. 7 we show the application of the model to recreate Istanbul, in an US style, from high-priority streets, density, and coastline.

Figure 4. Left: rendered graphs. Right: distance fields.

Comparing Statistics to Procedural Models We use several statistics to compare our results to procedural cities generated by CityEngine (CE). CE has several parameters for street generation, including the pattern type (grid, organic), average block width, and average block length. We estimate these parameters from real cities and compare our generated street networks to CE results. This comparison mainly illustrates that procedural models do not have enough parameters to recreate the pattern of real street maps. We show an example for Chicago in Fig. 8 and more comparisons and an explanation of the statistics in supplementary.

Comparison to GANs.

Figure 5. StyleGAN generated image representations of the street network. We found that the output was too noisy (left), did not have enough sharp features (center), or was too different from the training set (right) to create useful street graphs after thinning.

Generative Adversarial Networks (GANs) are another competing approach that could be employed for street generation. We show an example in Fig.5 generated with StyleGANv2 (Karras et al., 2020). While GANs offer the advantage of fast generation times, the output is unusable with the thinning algorithm or other vector graphic extraction algorithms.

Figure 6. Given the maps for conditioning (land/water, density, existing higher-priority streets), our model is able to generate a large diversity of different street networks. The insets show the difference between the Ground Truth and the generated networks.
Figure 7. Our model can be used to do style transfer of street pattern. Left: original street map of Istanbul. Right: regenerated street network with the density map of Istanbul by a network trained only on US street graphs.
Figure 8. Our model is significantly better able to adhere to statistical numbers of existing cities than the state-of-the art rule-based system CityEngine. Orange: Our model, Red: Ground-Truth, Blue: CityEngine

5. Conclusions, Limitations, and Future Work

We propose a novel framework for modeling large-scale street networks using auto-regressive models. Our results show street networks over two magnitude larger than networks produced by prior art. Our work has some limitations that could be addressed in future work. For now, conditioning information is manually designed. While this provides end-users with control over the generated layouts, it is still a laborious and time consuming process. It would be desirable to generate conditioning information by other generative models specifying only high-level details. Further, we do not consider terrain as conditioning information in the current iteration of the paper. The main reason was the difficulty of obtaining training data. In future work, we hope to expand the model to generate parcels and buildings.

References

  • D. Ackley, G. Hinton, and T. Sejnowski (1987) A learning algorithm for boltzmann machines. In Readings in Computer Vision, M. A. Fischler and O. Firschein (Eds.), pp. 522–533. External Links: ISBN 978-0-08-051581-6, Document, Link Cited by: Appendix A.
  • D. G. Aliaga, B. Beneš, C. A. Vanegas, and N. Andrysco (2008) Interactive reconfiguration of urban layouts. IEEE Computer Graphics and Applications 28 (3), pp. 38–47. Cited by: §2.1.
  • M. Barthélemy (2011) Spatial networks. Physics Reports 499 (1), pp. 1–101. External Links: ISSN 0370-1573, Document, Link Cited by: §2.1.
  • F. Bastani, S. He, S. Abbar, M. Alizadeh, H. Balakrishnan, S. Chawla, S. Madden, and D. DeWitt (2018) RoadTracer: automatic extraction of road networks from aerial images. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vol. , Los Alamitos, CA, USA, pp. 4720–4728. External Links: ISSN , Document, Link Cited by: Figure 2, §1, §2.3, §3.5.
  • J. Beal, E. Kim, E. Tzeng, D. H. Park, A. Zhai, and D. Kislyuk (2020) Toward transformer-based object detection. arXiv preprint arXiv:2012.09958. Cited by: Appendix A, §2.2.
  • I. Beltagy, M. E. Peters, and A. Cohan (2020) Longformer: the long-document transformer. ArXiv abs/2004.05150. Cited by: Appendix A.
  • B. Beneš, O. Št’ava, R. Měch, and G. Miller (2011) Guided procedural modeling. In Computer Graphics Forum, Vol. 30, pp. 325–334. Cited by: §2.1.
  • G. Boeing (2019) The morphology and circuity of walkable and drivable street networks. In The mathematics of urban morphology, pp. 271–287. Cited by: Appendix D.
  • G. Boeing (2020) A multi-scale analysis of 27,000 urban street networks: every us city, town, urbanized area, and zillow neighborhood. Environment and Planning B: Urban Analytics and City Science 47 (4), pp. 590–608. Cited by: Appendix D.
  • J. E. Bresenham (1965) Algorithm for computer control of a digital plotter. IBM Systems Journal 4 (1), pp. 25–30. External Links: Document Cited by: §3.3.
  • N. Carion, F. Massa, G. Synnaeve, N. Usunier, A. Kirillov, and S. Zagoruyko (2020) End-to-end object detection with transformers. In Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part I, A. Vedaldi, H. Bischof, T. Brox, and J. Frahm (Eds.), Lecture Notes in Computer Science, Vol. 12346, pp. 213–229. External Links: Link, Document Cited by: Appendix A, §2.2.
  • G. Chen, G. Esch, P. Wonka, P. Müller, and E. Zhang (2008) Interactive procedural street modeling. ACM Transactions on Graphics (TOG) 27 (3), pp. 1–10. Cited by: §2.1.
  • X. Chen, D. P. Kingma, T. Salimans, Y. Duan, P. Dhariwal, J. Schulman, I. Sutskever, and P. Abbeel (2016) Variational lossy autoencoder. arXiv preprint arXiv:1611.02731. Cited by: Appendix A, §2.2.
  • K. Cho, B. van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio (2014) Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, pp. 1724–1734. External Links: Link, Document Cited by: §2.3.
  • H. Chu, D. Li, D. Acuna, A. Kar, M. Shugrina, X. Wei, M. Liu, A. Torralba, and S. Fidler (2019) Neural turtle graphics for modeling city road layouts. In ICCV, Cited by: §1, §2.3.
  • H. Dai, A. Nazi, Y. Li, B. Dai, and D. Schuurmans (2020) Scalable deep generative modeling for sparse graphs. In Proceedings of the 37th International Conference on Machine Learning, H. D. III and A. Singh (Eds.), Proceedings of Machine Learning Research, Vol. 119, pp. 2302–2312. External Links: Link Cited by: §2.3.
  • H. Dai, Y. Tian, B. Dai, S. Skiena, and L. Song (2018) Syntax-directed variational autoencoder for structured data. In International Conference on Learning Representations, External Links: Link Cited by: §2.3.
  • N. De Cao and T. Kipf (2018) MolGAN: An implicit generative model for small molecular graphs. ICML 2018 workshop on Theoretical Foundations and Applications of Deep Generative Models. Cited by: §2.3.
  • A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby (2021) An image is worth 16x16 words: transformers for image recognition at scale. In International Conference on Learning Representations, External Links: Link Cited by: Appendix A, §2.2.
  • A. Emilien, A. Bernhardt, A. Peytavie, M. Cani, and E. Galin (2012) Procedural generation of villages on arbitrary terrains. The Visual Computer 28 (6), pp. 809–818. Cited by: §2.1.
  • A. Emilien, U. Vimont, M. Cani, P. Poulin, and B. Benes (2015) Worldbrush: interactive example-based synthesis of procedural virtual worlds. ACM Transactions on Graphics (TOG) 34 (4), pp. 1–11. Cited by: §2.1.
  • P. Esser, R. Rombach, and B. Ommer (2020) Taming transformers for high-resolution image synthesis. External Links: 2012.09841 Cited by: Appendix A, §2.2, §3.3, §3.4, §4.
  • E. Galin, A. Peytavie, N. Maréchal, and E. Guérin (2010) Procedural generation of roads. Computer Graphics Forum 29 (2), pp. 429–438. External Links: Document, Link, https://onlinelibrary.wiley.com/doi/pdf/10.1111/j.1467-8659.2009.01612.x Cited by: §2.1.
  • E. Galin, A. Peytavie, E. Guérin, and B. Beneš (2011) Authoring hierarchical road networks. In Computer Graphics Forum, Vol. 30, pp. 2021–2030. Cited by: §2.1.
  • A. Gersho and R. M. Gray (1991) Vector quantization and signal compression. Kluwer Academic Publishers, USA. External Links: ISBN 0792391810 Cited by: Appendix A, §2.2.
  • P. Ghosh, M. S. M. Sajjadi, A. Vergari, M. Black, and B. Scholkopf (2020) From variational to deterministic autoencoders. In International Conference on Learning Representations, External Links: Link Cited by: Appendix A.
  • I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio (2014) Generative adversarial nets. In Advances in Neural Information Processing Systems, Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K. Q. Weinberger (Eds.), Vol. 27, pp. . External Links: Link Cited by: Appendix A.
  • S. Greuter, J. Parker, N. Stewart, and G. Leach (2003) Real-time procedural generation ofpseudo infinite’cities. In Proceedings of the 1st international conference on Computer graphics and interactive techniques in Australasia and South East Asia, pp. 87–ff. Cited by: §2.1.
  • A. Grover, A. Zweig, and S. Ermon (2019) Graphite: iterative generative modeling of graphs. ArXiv abs/1803.10459. Cited by: §2.3.
  • G. L. Guimaraes, B. Sánchez-Lengeling, P. L. C. Farias, and A. Aspuru-Guzik (2017) Objective-reinforced generative adversarial networks (organ) for sequence generation models. ArXiv abs/1705.10843. Cited by: §2.3.
  • S. Hartmann, M. Weinmann, R. Wessel, and R. Klein (2017) Streetgan: towards road network synthesis with generative adversarial networks. Cited by: §2.3.
  • K. He, X. Zhang, S. Ren, and J. Sun (2016) Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778. Cited by: Appendix A.
  • J. Ho, N. Kalchbrenner, D. Weissenborn, and T. Salimans (2020) Axial attention in multidimensional transformers. External Links: Link Cited by: Appendix A.
  • S. Honda, H. Akita, K. Ishiguro, T. Nakanishi, and K. Oono (2020) Graph residual flow for molecular graph generation. External Links: Link Cited by: §2.3.
  • A. Jain, P. Abbeel, and D. Pathak (2020) Locally masked convolution for autoregressive models. In Conference on Uncertainty in Artificial Intelligence (UAI), Cited by: Appendix A.
  • B. Jiang (2009) Ranking spaces for predicting human movement in an urban environment. International Journal of Geographical Information Science 23 (7), pp. 823–837. Cited by: Appendix D.
  • T. Karras, M. Aittala, J. Hellsten, S. Laine, J. Lehtinen, and T. Aila (2020) Training generative adversarial networks with limited data. In Proc. NeurIPS, Cited by: §1, §4.
  • T. Karras, M. Aittala, S. Laine, E. Härkönen, J. Hellsten, J. Lehtinen, and T. Aila (2021) Alias-free generative adversarial networks. In NeurIPS, Cited by: §1.
  • A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret (2020) Transformers are rnns: fast autoregressive transformers with linear attention. In Proceedings of the International Conference on Machine Learning (ICML), Cited by: §4.
  • G. Kelly and H. McCabe (2007) Citygen: an interactive system for procedural city generation. In Fifth International Conference on Game Design and Technology, pp. 8–16. Cited by: §2.1.
  • J. Kim, H. Kavak, and A. Crooks (2018) Procedural city generation beyond game development. 10 (2), pp. 34–41. External Links: Link, Document Cited by: §2.1.
  • D. P. Kingma and M. Welling (2014) Auto-encoding variational bayes. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, Y. Bengio and Y. LeCun (Eds.), External Links: Link Cited by: Appendix A, Appendix A, §2.2.
  • D. P. Kingma, T. Salimans, R. Jozefowicz, X. Chen, I. Sutskever, and M. Welling (2016) Improved variational inference with inverse autoregressive flow. In Advances in Neural Information Processing Systems, D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett (Eds.), Vol. 29, pp. . External Links: Link Cited by: Appendix A, §2.2.
  • L. Krecklau, C. Manthei, and L. Kobbelt (2012) Procedural interpolation of historical city maps. In Computer Graphics Forum, Vol. 31, pp. 691–700. Cited by: §2.1.
  • M. J. Kusner, B. Paige, and J. M. Hernández-Lobato (2017) Grammar variational autoencoder. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML’17, pp. 1945–1954. Cited by: §2.3.
  • T. Lechner, P. Ren, B. Watson, C. Brozefski, and U. Wilenski (2006) Procedural modeling of urban land use. In ACM SIGGRAPH 2006 Research posters, pp. 135–es. Cited by: §2.1.
  • Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner (1998) Gradient-based learning applied to document recognition. Proceedings of the IEEE 86 (11), pp. 2278–2324. External Links: Document Cited by: Appendix A.
  • J. Li, J. Yu, D. Juan, H. Zhichao, A. Gopalan, H. Cheng, and A. Tomkins (2021) Graph autoencoders with deconvolutional networks. External Links: Link Cited by: §2.3.
  • Y. Li, O. Vinyals, C. Dyer, R. Pascanu, and P. Battaglia (2018) Learning deep generative models of graphs. External Links: Link Cited by: §2.3.
  • Y. Li, R. Zemel, M. Brockschmidt, and D. Tarlow (2016) Gated graph sequence neural networks. In Proceedings of ICLR’16, Proceedings of ICLR’16 edition. External Links: Link Cited by: §1.
  • R. Liao, Y. Li, Y. Song, S. Wang, W. Hamilton, D. K. Duvenaud, R. Urtasun, and R. Zemel (2019) Efficient graph generation with graph recurrent attention networks. In Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (Eds.), Vol. 32, pp. . External Links: Link Cited by: §2.3.
  • Z. Lin, M. Feng, C. N. d. Santos, M. Yu, B. Xiang, B. Zhou, and Y. Bengio (2017) A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130. Cited by: Appendix A, §2.2.
  • L. Maaløe, M. Fraccaro, V. Liévin, and O. Winther (2019) BIVA: a very deep hierarchy of latent variables for generative modeling. In NeurIPS, Cited by: Appendix A, §2.2.
  • A. Mas, I. Martin, and G. Patow (2020) Simulating the evolution of ancient fortified cities. In Computer Graphics Forum, Vol. 39, pp. 650–671. Cited by: §2.1.
  • L. Mi, H. Zhao, C. Nash, X. Jin, J. Gao, C. Sun, C. Schmid, N. Shavit, Y. Chai, and D. Anguelov (2021) Hdmapgen: a hierarchical graph generative model of high definition maps. In Proc. CVPR, pp. 4227–4236. Cited by: §2.3.
  • C. Nash, Y. Ganin, S. M. A. Eslami, and P. Battaglia (2020) PolyGen: an autoregressive generative model of 3D meshes. In Proceedings of the 37th International Conference on Machine Learning, H. D. III and A. Singh (Eds.), Proceedings of Machine Learning Research, Vol. 119, pp. 7220–7229. External Links: Link Cited by: §2.3, §2.3.
  • G. Nishida, I. Garcia-Dorado, and D. G. Aliaga (2016) Example-driven procedural urban roads. In Computer Graphics Forum, Vol. 35, pp. 5–17. Cited by: §2.1.
  • A. v. d. Oord, N. Kalchbrenner, O. Vinyals, L. Espeholt, A. Graves, and K. Kavukcuoglu (2016) Conditional image generation with pixelcnn decoders. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS’16, Red Hook, NY, USA, pp. 4797–4805. External Links: ISBN 9781510838819 Cited by: Appendix A, §2.2.
  • A. V. Oord, N. Kalchbrenner, and K. Kavukcuoglu (2016) Pixel recurrent neural networks. In Proceedings of The 33rd International Conference on Machine Learning, M. F. Balcan and K. Q. Weinberger (Eds.), Proceedings of Machine Learning Research, Vol. 48, New York, New York, USA, pp. 1747–1756. External Links: Link Cited by: Appendix A.
  • T. Owaki and T. Machida (2020) RoadNetGAN: generating road networks in planar graph representation. In International Conference on Neural Information Processing, pp. 535–543. Cited by: §2.3.
  • L. Page, S. Brin, R. Motwani, and T. Winograd (1999) The pagerank citation ranking: bringing order to the web.. Technical report Stanford InfoLab. Cited by: Appendix D.
  • W. Para, P. Guerrero, T. Kelly, L. Guibas, and P. Wonka (2020) Generative layout modeling using constraint graphs. arXiv preprint arXiv:2011.13417. Cited by: Appendix A, §2.2.
  • A. Parikh, O. Täckström, D. Das, and J. Uszkoreit (2016) A decomposable attention model for natural language inference. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, Austin, Texas, pp. 2249–2255. External Links: Link, Document Cited by: Appendix A, §2.2.
  • Y. I. H. Parish and P. Müller (2001) Procedural modeling of cities. In Proceedings of SIGGRAPH 2001, pp. 301–308. External Links: Document Cited by: Appendix C, §2.1.
  • N. Parmar, A. Vaswani, J. Uszkoreit, L. Kaiser, N. Shazeer, A. Ku, and D. Tran (2018) Image transformer. In International Conference on Machine Learning, pp. 4055–4064. Cited by: Appendix A, §2.2.
  • C. Peng, Y. Yang, and P. Wonka (2014) Computing layouts with deformable templates. ACM Transactions on Graphics (TOG) 33 (4), pp. 1–11. Cited by: §2.1.
  • P. Prusinkiewicz (1986) Graphical applications of l-systems. In Proceedings of graphics interface, Vol. 86, pp. 247–253. Cited by: §2.1.
  • O. Pueyo, A. Sabrià, X. Pueyo, G. Patow, and M. Wimmer (2020) Shrinking city layouts. Computers & Graphics 86, pp. 15–26. Cited by: §2.1.
  • A. Ramesh, P. Dhariwal, A. Nichol, C. Chu, and M. Chen (2022) Hierarchical text-conditional image generation with clip latents. arXiv. Cited by: §1.
  • A. Ramesh, M. Pavlov, G. Goh, S. Gray, C. Voss, A. Radford, M. Chen, and I. Sutskever (2021) Zero-shot text-to-image generation. External Links: 2102.12092 Cited by: §1.
  • R. Ranganath, D. Tran, and D. Blei (2016) Hierarchical variational models. ArXiv abs/1511.02386. Cited by: Appendix A, §2.2.
  • A. Razavi, A. van den Oord, and O. Vinyals (2019) Generating diverse high-fidelity images with vq-vae-2. In Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (Eds.), Vol. 32, pp. . External Links: Link Cited by: Appendix A, Appendix A, §2.2.
  • O. Ronneberger, P. Fischer, and T. Brox (2015) U-net: convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, N. Navab, J. Hornegger, W. M. Wells, and A. F. Frangi (Eds.), Cham, pp. 234–241. Cited by: Appendix A.
  • T. Salimans, A. Karpathy, X. Chen, and D. P. Kingma (2017) PixelCNN++: a pixelcnn implementation with discretized logistic mixture likelihood and other modifications. In ICLR, Cited by: Appendix A.
  • C. Shi*, M. Xu*, Z. Zhu, W. Zhang, M. Zhang, and J. Tang (2020) GraphAF: a flow-based autoregressive model for molecular graph generation. In International Conference on Learning Representations, External Links: Link Cited by: §2.3.
  • M. Simonovsky and N. Komodakis (2018) GraphVAE: towards generation of small graphs using variational autoencoders. External Links: Link Cited by: §2.3.
  • R. M. Smelik, T. Tutenel, R. Bidarra, and B. Benes (2014) A survey on procedural modelling for virtual worlds. In Computer Graphics Forum, Vol. 33, pp. 31–50. Cited by: §2.1.
  • C. Sønderby, T. Raiko, L. Maaløe, S. K. Sønderby, and O. Winther (2016) Ladder variational autoencoders. In NIPS, Cited by: Appendix A, §2.2.
  • A. Song and J. Whitehead (2019) TownSim: agent-based city evolution for naturalistic road network generation. In Proceedings of the 14th International Conference on the Foundations of Digital Games, pp. 1–9. Cited by: §2.1.
  • D. Spencer (2009) Cities and complexity: understanding cities with cellular automata, agent-based models, and fractals. The Journal of Architecture 14 (3), pp. 446–450. External Links: Document Cited by: §2.1.
  • J. Sun, X. Yu, G. Baciu, and M. Green (2002) Template-based generation of road networks for virtual city modeling. In Proceedings of the ACM symposium on Virtual reality software and technology, pp. 33–40. Cited by: §2.1.
  • J. Tomczak and M. Welling (2018) VAE with a vampprior. In Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics, A. Storkey and F. Perez-Cruz (Eds.), Proceedings of Machine Learning Research, Vol. 84, pp. 1214–1223. External Links: Link Cited by: Appendix A, §2.2.
  • A. Vahdat and J. Kautz (2020) NVAE: a deep hierarchical variational autoencoder. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (Eds.), Vol. 33, pp. 19667–19679. External Links: Link Cited by: Appendix A, §2.2.
  • A. van den Oord, O. Vinyals, and k. kavukcuoglu (2017) Neural discrete representation learning. In Advances in Neural Information Processing Systems, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.), Vol. 30, pp. . External Links: Link Cited by: Appendix A, Appendix A, §1, §2.2.
  • C. A. Vanegas, D. G. Aliaga, B. Benes, and P. Waddell (2009) Visualization of simulated urban spaces: inferring parameterized generation of streets, parcels, and aerial imagery. IEEE Transactions on Visualization and Computer Graphics 15 (3), pp. 424–435. Cited by: §2.1.
  • C. A. Vanegas, D. G. Aliaga, P. Wonka, P. Müller, P. Waddell, and B. Watson (2010) Modelling the appearance and behaviour of urban spaces. In Computer Graphics Forum, Vol. 29, pp. 25–42. Cited by: §2.1.
  • C. A. Vanegas, I. Garcia-Dorado, D. G. Aliaga, B. Benes, and P. Waddell (2012) Inverse design of urban procedural models. ACM Transactions on Graphics (TOG) 31 (6), pp. 1–11. Cited by: §2.1.
  • A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin (2017) Attention is all you need. In Advances in Neural Information Processing Systems, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.), Vol. 30, pp. . External Links: Link Cited by: Appendix A, Appendix A, §1, §2.2.
  • A. Vyas, A. Katharopoulos, and F. Fleuret (2020) Fast transformers with clustered attention. Cited by: §4.
  • X. Wang, C. Yeshwanth, and M. Nießner (2020) SceneFormer: indoor scene generation with transformers. arXiv preprint arXiv:2012.09793. Cited by: Appendix A, §2.2.
  • B. Weber, P. Müller, P. Wonka, and M. Gross (2009) Interactive geometric simulation of 4d cities. In Computer Graphics Forum, Vol. 28, pp. 481–492. Cited by: §2.1.
  • B. Williams and C. J. Headleand (2017) A time-line approach for the generation of simulated settlements. In 2017 International Conference on Cyberworlds (CW), pp. 134–141. Cited by: §2.1.
  • Y. Yang, J. Wang, E. Vouga, and P. Wonka (2013) Urban pattern: layout design by hierarchical domain splitting. ACM Transactions on Graphics (TOG) 32 (6), pp. 1–12. Cited by: §2.1.
  • J. You, R. Ying, X. Ren, W. L. Hamilton, and J. Leskovec (2018) GraphRNN: generating realistic graphs with deep auto-regressive models. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, J. G. Dy and A. Krause (Eds.), Proceedings of Machine Learning Research, Vol. 80, pp. 5694–5703. External Links: Link Cited by: §2.3.
  • C. Zang and F. Wang (2020) MoFlow: an invertible flow model for generating molecular graphs. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery; Data Mining, KDD ’20, New York, NY, USA, pp. 617–626. External Links: ISBN 9781450379984, Link, Document Cited by: §2.3.

Appendix A Background

There exist many complementary frameworks for generative models - Variational AutoEncoders (VAEs) (Kingma and Welling, 2014), Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), Energy Based Models (EBMs) (Ackley et al., 1987). All of these models can be built using modern building blocks of deep networks - Convolutional Neural Nets (CNNs) (Lecun et al., 1998), transformers (Vaswani et al., 2017) and their numerous variants like UNET (Ronneberger et al., 2015), ResNet (He et al., 2016) for CNNs and Axial Attention (Ho et al., 2020), Longformer (Beltagy et al., 2020) for Transformers.

VAE The standard VAE (Kingma and Welling, 2014) is an encoder-decoder framework, where the data is encoded into latent variables, and decoded from those latents. By making sure that the latents come from a tractable distribution (usually a zero-mean, unit variance Gaussian), efficient sampling is achieved. Further refinements to this base include more expressive priors (Tomczak and Welling, 2018; Kingma et al., 2016; Chen et al., 2016), or better architectures (Vahdat and Kautz, 2020; Maaløe et al., 2019; Ranganath et al., 2016; Sønderby et al., 2016) which are often hierarchical. A complementary strategy to improve performance is to break down training into two steps: 1: autoencoding without any prior; 2: post-hoc learning of the latent. This is the approach adopted by (Ghosh et al., 2020; van den Oord et al., 2017; Razavi et al., 2019).

Specifically, in (van den Oord et al., 2017) the Vector Quantized VAE (VQVAE) is proposed. During training, the latents from the encoder are replaced by their closest element from a learned dictionary, a process known as Vector Quantization in signal processing literature (Gersho and Gray, 1991). As this dictionary has discrete indices, we are therefore able to learn a discrete representation of the input. A prior is then learned over this representation. (Razavi et al., 2019) use a hierarchical version of the VQVAE to model high quality images of up to pixels.

Transformers The transformer architecture (Vaswani et al., 2017) originally arose in the field of Natural Language Processing, but has since seen prolific use in fields as diverse as Object Detection (Carion et al., 2020; Beal et al., 2020), Image Classification (Dosovitskiy et al., 2021), Image Generation (Parmar et al., 2018; Esser et al., 2020) and Layout Generation (Para et al., 2020; Wang et al., 2020). A transformer is composed of multiple layers of Attention Blocks (Parikh et al., 2016; Lin et al., 2017) which model dependencies of different positions in the sequence relative to each other. Transformers use sequences as their input. Concretely, if we have a sequence of length , we embed these discrete tokens to get the features , where is the dimensionality of the embedding. From this, we compute representations via three independent MLPs and generate query , key and value, . The output of the block is then given by

The matrix, defines the interaction strength between each possible pairs of positions, and uses those as weights to combines the features from . A transformer uses multiple layers of this operation. The matrix formed by the operation has a size which makes the attention/transformer architecture have an dependency on the length of the input sequence. A lot of research has therefore gone into reducing this dependency by using alternative attention schemes.

Auto-Regressive Modelling VAEs focus on decoding latents which are sampled from tractable distributions into entire data points, whether language, images or audio. An alternative to this is to use auto-regressive modelling where the likelihood of data point, say can be decomposed into the product of conditional likelihoods.

This is a causal ordering meaning that the probability of the current position depends only on the previously generated positions. This is natural for modalities like language, where words inherently exist in a sequence, but somewhat non-intuitive for images. A simple way to treat the image as a sequence is to flatten the entire image into a length sequence. This is one of the approaches used in (Oord et al., 2016). In images, where local context is generally more important, a simple modification is possible to save on computation. This modified factorization can be written as

where refers to any arbitrary subset of pixels before the current pixel. This is usually chosen to be a causal window around the current pixel which can easily be achieved by Convolutional Networks with proper masking (Salimans et al., 2017; Oord et al., 2016; Jain et al., 2020).

In the context of transformers, the so-called attention matrix, breaks the causal-ordering by having any position depend on all positions in the sequence. This is fixed by setting for the elements where . With this, the transformer model can only model interactions between elements in the sequence before the current position.

We make heavy use of the VQVAE architecture and an Auto-Regressive transformer in our proposed method.

Appendix B Priority Classes

We use data from the OSM to obtain information about the type of every street. In detail, we extract key-value pairs which are assigned to each way, where a way is what the OSM denotes as a polyline, in our case representing a street section. The key highlighting a way to be a street is the term highway, the value indicates the street type. Note that we do not consider street types like pedestrian ways or street types that do not really contribute to the actual street network of a city like service roads. We assign street sections to the defined priority classes and according to the values in Table 1.

motorway tertiary
trunk tertiary_link
primary residential
secondary living_street
motorway_link road
trunk_link unclassified
primary_link
secondary_link
Table 1. Assignment of OSM street types to our three priority classes.

Appendix C L-System streets

Table  2 contains the short and long street length parameters used to generate the street networks. These values were sampled directly from the area in the ground-truth, by computing each block boundary, finding the minimum bounding box, and reporting the short or long length of the box. We took range within one standard deviation of the mean. Following (Parish and Müller, 2001) we used the implementation of CityEngine. An obstacle map was used to mark the water. Following typical street design in North America, major streets followed an organic pattern, and minor streets follow a raster pattern. 50,000 streets were generated and cropped to the region extent. The implementation allowed no control over raster orientation or whether a region bounded by major streets would be filled with minor streets.

width (m) deviation length (m) deviation
Washington 93.63 93.75 185.48 186.87
Chicago 123.91 96.35 255.29 182.69
Los-Angeles 104.26 86.28 213.58 178.88
San Francisco 96.81 75.98 196.63 159.82
New York 92.97 78.47 182.51 156.60
Table 2. Parameters sampled from the ground-truth used on the L-System streets.

Appendix D Statistical measures

Here we describe the statistical measures used in the evaluation of our networks, but refer the interested reader to  (Boeing, 2020) as an example of the wide area graph statistics in use by the urban planning community.

A segment is a sequence of edges in the graph without branches, connected by vertices with valencies only of 2. circuity measures the ratio between the length of the segment (the sum of the length of the edges in the segment) against the euclidean distance between the first and last vertex of the segment. It describes the local curvature of the streets.

The transport ratio (Boeing, 2019) measures the ratio between the walking distance (along the graph) and the euclidean between two vertices. We sample its value over randomly chosen vertex pairs in the graph. The transport distance describes the connectivity of the city - how easy it is to get between nearby points.

Pagerank is an algorithm originally intended to measure the connectivity of webpages (Page et al., 1999). It has since been applied to the study of street networks (Jiang, 2009), providing a measure of topological connectivity. It models the movements of a traveler through the graph starting from a random vertex, stepping between adjacent vertices randomly, continuing with a probability (and halting with a probability ). As is only a measure of topological connectivity, ignoring vertex position and edge length. To address this, we introduce Pagerank-by-edge. In this model, the traveler travels over an edge graph (EG). An EG has a vertex for every edge in the input graph, and an edge to all adjacent edges in the input graph. We use a to simulate longer walks on large graphs. It highlights areas with long edges and high connectivity, at the cost of over-penalizing short edges.

The reported density values normalize the values over the area of land in the street graph. We show all of these statistics in Fig. 9.

Figure 9. We show statistics from the ground-truth in Red, our model in Orange, and CityEngine in Blue. The cities from left-to-right are Chicago, San Francisco, Washington DC and Los Angeles.
Figure 10. Alternative street layout for the city of Istanbul.