TL;DR
BuildingGPT reformulates 3D building wireframe reconstruction from point clouds as an auto-regressive sequence generation task, treating architectural structures like sentences in a language model. By combining a hierarchical footprint-to-roof tokenization strategy with Direct Preference Optimization (DPO), it achieves state-of-the-art geometric accuracy and topological correctness without relying on heavy post-processing.
What Problem Does This Paper Address?
Reconstructing precise 3D models of buildings from raw point clouds is a foundational challenge for smart cities, autonomous driving, and urban planning. Wireframes are highly favored for this because they are lightweight and capture clean geometric boundaries.
However, existing approaches fall short. Traditional primitive detection methods (which detect vertices and then predict edge connections) and newer diffusion-based models often struggle with noisy or incomplete point clouds. They frequently miss critical edges or produce structurally disjointed results, requiring complex, hand-crafted post-processing steps to fix topological errors. These methods fail to fully exploit the global structural and semantic regularities—such as parallelism, verticality, and coplanarity—inherent in human architecture.
Methods
BuildingGPT addresses these limitations by treating wireframe reconstruction as a next-token prediction problem. The pipeline consists of two main stages:
- Hierarchical Tokenization & Auto-Regressive Pre-training: Continuous 3D wireframe coordinates are quantized into discrete tokens. Crucially, the authors organize these tokens in a structurally and semantically aware order that mirrors real-world construction: Footprint $\rightarrow$ Walls $\rightarrow$ Roofs. Within each component, vertices are sorted by their $z-y-x$ coordinates.
A Point Transformer encoder processes the input point cloud into a fixed-length latent code. This code is prepended to the sequence, serving as the prompt condition. A decoder-only Transformer (OPT architecture) then auto-regressively predicts the wireframe tokens sequence by sequence.
- Post-training via Direct Preference Optimization (DPO): While pre-training captures the general structure, the model can still generate physically unrealistic or messy topologies. To fix this, the authors introduce a reinforcement learning stage using DPO. They define a Preference Score Function (PSF) based on geometric accuracy (Corner and Edge F1 scores) and topological correctness (Wireframe Edit Distance). The model generates candidate pairs, and DPO fine-tunes the network to favor the structurally superior candidate.
Datasets
- MunichWF (New): Because existing datasets focus almost exclusively on roofs and lack the scale needed to train large generative models, the authors curated MunichWF. Extracted from the LOD2 building mesh dataset of Munich, it contains 267K holistic building samples (262K for training, 5K for testing) including footprints, walls, and roofs.
- AHN3: An independent, complex building dataset used strictly to evaluate the model's zero-shot cross-data generalization capabilities.
Key Insights and Ideas
- Architecture as a Language: Buildings are highly structured and rule-bound. By sorting tokens from the ground up (footprint to roof), the auto-regressive model naturally learns structural dependencies, such as the fact that roofs must be supported by walls.
- RL for Geometric Sanity: Direct Preference Optimization isn't just for aligning text models with human safety guidelines; it is highly effective at penalizing geometric hallucinations (like floating edges or disconnected vertices) that standard cross-entropy losses fail to heavily discourage.
- LLM-like Scaling Laws: The authors observed clear scaling trends: as the model size grew (from 129M to 730M parameters) and the dataset scaled up, the test loss consistently followed a predictable downward trajectory, implying that building reconstruction can directly benefit from the "bigger is better" paradigm of modern foundation models.
Key Results
BuildingGPT significantly outperformed all baseline methods (including PC2WF, Point2Roof, PBWR, EdgeDiff, and BWFormer) on the MunichWF dataset:
- Topological Accuracy: Achieved a 29.5% reduction in Wireframe Edit Distance (WED) compared to the previous state-of-the-art diffusion model (EdgeDiff).
- Geometric Precision: Reduced the Average Corner Offset (ACO) by 33.3%.
- Completeness: Scored exceptionally high on Corner F1 (97.4%) and Edge F1 (94.4%).
Furthermore, when tested zero-shot on the unseen AHN3 dataset, BuildingGPT successfully reconstructed complex structures without any fine-tuning, demonstrating robust cross-domain generalization.
Limitations and Future Work
Despite its strong performance, BuildingGPT still encounters difficulties with highly complex or irregular architectural designs, occasionally resulting in locally missing or disordered edges.
The authors outline three key areas for future research:
- Scaling up to even larger and more finely annotated datasets.
- Developing finer-grained tokenization strategies to capture detailed internal and external architectural components like windows, doors, and stairs.
- Exploring more advanced reinforcement learning techniques to further refine topological alignment.
Summary updated