TL;DR
CG-Floor is a novel hierarchical framework that generates realistic, large-scale floorplans by explicitly decoupling room layout topology from geometric shape generation. By combining a size-aware semantic centroid heatmap with a vector-quantized latent diffusion transformer, it successfully synthesizes complex, non-Manhattan architectural layouts with dozens of rooms from text descriptions or scene graphs.
What Problem Does This Paper Address?
Automated floorplan generation is a holy grail for virtual space planning, video game level design, and architectural simulation. While deep learning has made strides in generating small-scale residential layouts (typically under 10 rooms), scaling up to large building complexes or multi-apartment structures remains a massive challenge.
Existing approaches suffer from two main bottlenecks:
- Topological Complexity: As the number of rooms grows into the dozens, managing the dense web of room connections becomes chaotic. Models often output misplaced rooms or structurally incoherent layouts.
- Geometric Complexity: Real-world large buildings rarely stick to rigid, boxy, axis-aligned rectangles (Manhattan geometry). They feature irregular, non-Manhattan room shapes. Vector-based models face a combinatorial explosion trying to predict every vertex coordinate, while pixel-based models often output blurry boundaries and artifacts.
CG-Floor tackles these issues by breaking the generation process into two distinct steps: first figuring out where the rooms should go and how big they should be, and then figuring out their exact shapes.
Methods
The authors introduce a coarse-to-fine hierarchical pipeline consisting of three primary components:
-
Semantic Centroid Heatmap Generation: If a user provides a text description, an optional Large Language Model (LLM) pipeline converts it into a structured scene graph. A Graph Transformer then processes this scene graph alongside the building's structural envelope image to simultaneously predict the centroid coordinates and sizes of all rooms. These predictions are converted into a Size-Aware Semantic Centroid Heatmap (SASCH). Unlike standard heatmaps that only mark positions, the SASCH uses adaptive Gaussian kernels scaled to each room's predicted size, providing a rich structural anchor.
-
Floorplan Quantization Compression: To handle irregular room shapes without pixel blur, the authors pre-train a Vector-Quantized Variational Autoencoder (VQ-VAE). This creates a discrete codebook of diverse room-contour patterns, compressing complex floorplan geometry into a compact latent space.
-
Floorplan and Door-Window Generation: A Vector-Quantized Diffusion Transformer samples from the codebook, guided by the SASCH and raw scene graph features injected via skip connections. This outputs a clean room-and-wall layout. Finally, an auxiliary U-Net model predicts the placement of doors and windows to complete the floorplan.
Datasets
The model was trained and evaluated on the MSD (Multi-apartment/Medium-to-large building complexes) dataset. MSD is currently the only large-scale floorplan dataset featuring complex multi-apartment dwellings, containing over 5.3K annotated floorplans. The authors applied extensive data augmentation strategies (random rotation, uniform scaling, mirror flipping, and node-type swapping) to enhance generalization.
Key Insights and Ideas
- The Power of Decoupling: Trying to optimize room connectivity and complex geometry at the same time causes optimization collapse in large scenes. Abstracting away the shapes during the initial layout phase makes large-scale generation tractable.
- Size Matters in Heatmaps: Standard centroid heatmaps only guide where a room is. By making the heatmap "size-aware" (adjusting the Gaussian kernel variance based on room area), the heatmap acts as a spatial budget planner, preventing rooms from overlapping or leaving massive dead spaces.
- Discrete Latent Spaces for Architecture: Using a VQ-VAE codebook allows the diffusion model to treat architectural styles and wall shapes as discrete "tokens." This enforces sharp, realistic walls and naturally accommodates non-Manhattan geometries without explicit polygon vertex tracking.
Key Results
CG-Floor achieves a massive leap in performance on the MSD dataset compared to prior state-of-the-art methods like Graph2Plan, HouseGAN++, UN, and MHD:
- Visual Quality: CG-Floor achieved a Fréchet Inception Distance (FID) of 16.03 and a Kernel Inception Distance (KID) of 6.80. This represents a 79.8% and 89.3% reduction in error metrics, respectively, over the second-best method (MHD).
- Topological Consistency: It scored 91.3 on graph compatibility, proving that the generated rooms actually match the user's requested connectivity constraints.
- User Preference: In a user study with 88 participants, CG-Floor was preferred over 92% of the time across all metrics (similarity to ground truth, input consistency, and real-world realism).
Additionally, the framework seamlessly supports interactive editing (adding, removing, or changing room types) and can automatically convert the 2D pixel outputs into fully realized 3D scenes.
Limitations and Future Work
While CG-Floor represents a major step forward, the authors note that minor local artifacts can still occasionally appear in the generated pixel layouts, though these can typically be cleaned up with simple post-processing filters. The paper does not deeply explore multi-floor vertical scaling (e.g., multi-story skyscrapers), which stands as a promising direction for future extensions of this hierarchical approach.
Summary updated