arXiv:2608.25652cs.CVAug 2026

Manuscript Offprint

arXiv:2608.25652

Diffusion Transformers for Roof Graph Synthesis and Reconstruction

Daniel Panangian, Ksenia Bittner

Daniel Panangian Ksenia Bittner

The Remote Sensing Technology Institute

German Aerospace Center (DLR), Wessling, Germany

{daniel.panangian,ksenia.bittner}@dlr.de

Random Generation

Conditional Generation

Figure

Figure 1. Illustration of the three roof-graph generation tasks in our framework: (1) unconditional generation from noise, (2) conditional generation from building footprints, and (3) aerial-image-guided generation for reconstructing complete roof structures. The figure highlights our model's ability to sample plausible roof layouts from a learned prior and to perform constrained prediction using geometric and visual observations.

Abstract

We present ROOFDiT, a generative framework for 2d roof graph synthesis and reconstruction. The method represents roofs as vertex-edge graphs in top view and uses a two-stage pipeline. A diffusion transformer first generates roof graph vertices, and an edge prediction module then predicts graph connectivity. To improve geometric fidelity, RoofDiT incorporates relative geometry-aware attention, conditioning on footprint vertices and pretrained aerial image features, and a roof alignment regularizer that encourages horizontal, vertical, and diagonal structural patterns common in roof layouts. By varying the conditioning signal, the same model supports unconditional generation, footprint-conditioned generation, and image-guided reconstruction. Experiments on the benchmark show improved graph generation quality over a diffusion baseline in the unconditional setting, strong performance against a straight-skeleton prior in the footprint-conditioned setting, and competitive reconstruction results. Overall, our results demonstrate the potential of diffusion transformers for generative modeling of roof graphs.

1. Introduction

Residential roofs exhibit rich structural regularities [16]. Their layouts are not arbitrary collections of edges and vertices, but follow recurring patterns in alignment, connectivity, and part composition. At the same time, roof structures remain diverse: buildings with similar overall shapes can realize different valid roof organizations. This combi-nation of strong geometric constraint and nontrivial variation makes roof structure a compelling target for generative modeling. A useful model should capture both the regularities that make roof graphs structurally valid and the diversity that gives rise to multiple plausible configurations. Recent years have seen substantial progress in generative modeling of structured visual and geometric data. Beyond image synthesis, generative models have been successfully applied to domains such as layouts, floorplans, and structured shape representations, where the objective is not only to produce realistic outputs but also to capture the underlying organization and constraints of the data. These advances suggest that generative models can serve as effective priors for domains in which validity depends on both local geometry and global structural consistency. Roof structure reconstruction remains challenging because the available observations often provide only partial evidence about the realized geometry. Many recent methods rely primarily on image-driven cues, such as roof lines, junctions, edges, texture, or learned feature maps from aerial imagery, to infer structural elements and assemble them into a roof layout [5, 20, 22]. These approaches have achieved strong performance, but they remain sensitive to ambiguity caused by occlusion, shadow, low resolution, and weak or missing visual boundaries. Other methods address this difficulty by incorporating stronger geometric priors, structural primitives, or topological constraints into the reconstruction process, improving robustness when image evidence alone is insufficient.

In this work, we investigate roof structure modeling through both unconditional and conditional generation. Given conditioning information such as building footprints or aerial imagery, the model is guided toward plausible structures consistent with the available evidence. We study three scenarios: random roof graph generation, footprint-conditioned generation, and image-guided reconstruction. Figure 1 provides an overview of these tasks. Through this framework, we evaluate how a learned roof prior supports roof graph generation under different levels of conditioning.

Our contributions are summarized as follows:

• We formulate roof structure modeling as a generative problem over 2D roof graphs and propose an approach for learning a prior over plausible roof structures.

• We adapt a diffusion-transformer model for roof graph generation, with support for conditioning on building footprints and aerial imagery.

• We benchmark the proposed method against roof generation and reconstruction baselines across unconditional, footprint-conditioned, and image-guided settings.

Overall, our results show that modeling a generative prior over roof graphs is useful beyond unconstrained sampling alone. It enables plausible roof generation without observations, controlled generation under footprint constraints, and improved reconstruction when aerial imagery is available.

References (23)