TL;DR
This paper introduces FP-MAE, a self-supervised learning model that completes incomplete architectural floor plans by reconstructing masked regions. Leveraging a Vision Transformer and a new dataset called FloorplanNet, FP-MAE demonstrates impressive accuracy in generating plausible and functionally coherent layouts from sparse inputs, acting as a valuable assistant for architects during early design stages.
What Problem Does This Paper Address?
Architectural design is an iterative process, often starting with rough sketches or incomplete floor plans. Refining these drafts is time-consuming and repetitive. While AI has advanced in image tasks, floor plans are domain-specific, requiring understanding of geometric relationships, design conventions, and functional zoning, which differs from generic image completion. This paper addresses the challenge of automatically completing these incomplete floor plans to accelerate the early design phase, improve efficiency, and support architects' creative process without replacing their judgment.
Methods
The core of FP-MAE is a Masked Autoencoder (MAE) strategy adapted for architectural floor plans. This involves:
- Vision Transformer (ViT) Encoder: A lightweight ViT processes visible, unmasked patches of the floor plan. It uses self-attention to capture global relationships between these patches, learning a latent representation of the existing layout. Crucially, the encoder only sees the visible parts.
- Asymmetric Decoder: This component takes the encoded visible patches and learned "mask tokens" (placeholders for missing regions). It reconstructs the masked areas by attending to both the encoded context and the mask tokens, effectively "inpainting" the missing parts. The decoder is kept relatively shallow to prevent overfitting.
- Self-Supervised Learning: The model is trained by masking portions of floor plan images and learning to reconstruct them, eliminating the need for extensive labeled data.
- Mean Squared Error (MSE) Loss: A simple MSE loss is used to measure the difference between the reconstructed and original masked regions, which is found to be effective for the structured and relatively low-texture nature of floor plans.
Datasets
- FloorplanNet: A newly introduced dataset comprising 8000 residential floor plans. It includes:
- 300 "Real-plan" floor plans.
- 7700 standardized "R-plan" floor plans generated by the RPLAN toolbox.
- Both line-drawing and color-coded semantic representations are available.
Key Insights and Ideas
- MAE for Architectural Structure: The MAE approach, successful in natural images, is highly effective for floor plans because it forces the model to learn global structural patterns and semantic relationships, not just local textures.
- High Masking Ratios are Beneficial: Unlike natural images, architectural floor plans benefit from higher masking ratios (e.g., 75%) because their inherent structural regularities (wall continuity, room adjacencies) allow for robust extrapolation even from limited visible information.
- Beyond Pixel-Level Reconstruction: FP-MAE not only reconstructs walls but also infers room types (in colored plans), demonstrating an understanding of architectural semantics.
- Plausible Hypothesis Generation: The model generates plausible completions, not deterministic recoveries of original intent. This is crucial as multiple valid completions can exist for partial inputs.
- Architectural Priors are Key: The model leverages learned "architectural priors" about how rooms connect and layouts are structured, enabling it to generate coherent designs even from highly sparse or irregular inputs.
Key Results
- Quantitative Performance: FP-MAE achieved state-of-the-art results on the FloorplanNet dataset across various masking strategies, outperforming baselines like Pix2Pix and CycleGAN in terms of FID, PSNR, and SSIM metrics. For example, under random masking, it achieved an FID of 12.6053 and SSIM of 0.9757 on line drawings.
- Qualitative Results:
- Random Masking (80%): Successfully reconstructed complete structures and inferred room types, demonstrating extrapolation capabilities.
- Center Masking (30%): Accurately reconstructed internal layouts even when the center was entirely missing.
- Perimeter/Edge Masking (70%): Effectively restored house outlines and added exterior walls.
- Spotted-corner Masking (80%): Showed robustness in handling fragmented inputs, generating plausible completions.
- Biased-keyhole Masking (90%): Demonstrated the ability to extrapolate entire layouts from very limited clues, producing structured but simplified results.
- One-Sided Masking (30%): Excelled at reconstructing missing boundaries, producing coherent and visually convincing results.
- Corner Masking (75%): Showed impressive ability to imagine the rest of a house from a tiny corner clue, producing valid floor plans.
- Robustness: The model demonstrated robustness on real sketches from early design projects, indicating practical applicability.
Limitations and Future Work
- Fine-Grained Details: While structurally sound, reconstructions may have minor deviations in pixel-level details like exact window placement or dimensions. Future work could incorporate geometric constraints or semantic rules.
- External Constraints: The current model doesn't consider external factors like climate, context, or regulations. Integrating these would enhance real-world applicability.
- Sketch Heterogeneity: Real architectural sketches have diverse incompleteness (e.g., partial lines, corrections) not fully captured by current masking schemes. Future work could explore stroke-based, vectorized, or graph-based representations.
- Speculative Outputs: FP-MAE generates plausible hypotheses, not definitive designs. Human oversight remains essential.
- Broader Typologies: Current work focuses on residential layouts. Extending to offices, public facilities, etc., would broaden applicability.
- Multimodal Integration: Combining floor plans with text descriptions or 3D models could lead to richer, more context-aware generation.
- Real-World Sketch Input: Evaluating robustness on more varied and less structured freehand sketches is a key future direction.
- Usability Assessment: Incorporating architecture-aware metrics (e.g., room accessibility, adjacency logic) for functional and spatial performance evaluation is crucial.
- Workflow Integration: Developing plugins for CAD/BIM software to allow interactive acceptance/modification of generated elements.
- Downstream Tasks: Leveraging FP-MAE's learned representations for tasks like energy prediction, room type classification, or design assistance.
Summary updated