FP-MAE: A Self-Supervised Model for Floorplan Generation with Incomplete Inputs

Jing Zhong, Ran Luo, Peilin Li, Tianrui Li, Pengyu Zeng, Zhifeng Lei, Tianjing Feng, Jun YinBuildings 2026 · DOI

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

Abstract

Floor plans are a central representational component of architectural design, operating in close relation to sections, elevations, and three-dimensional reasoning to support the production and understanding of architectural space. In this context, we address the bounded computational task of completing incomplete floor plan representations as a form of early-stage design assistance, rather than treating the floor plan as an isolated architectural object. Within this workflow, being able to automatically complete a floor plan from an unfinished draft is highly valuable because it allows architects to generate preliminary schemes more quickly, streamline early discussions, and reduce the repetitive workload involved in revisions. To meet this need, we present FP-MAE, a self-supervised learning framework designed for floor plan completion. This study proposes three core contributions: (1) We developed FloorplanNet, a dedicated dataset that includes 8000 floorplans consisting of both schematic line drawings and color-coded plans, providing diverse yet consistent examples of residential layouts. (2) On top of this dataset, FP-MAE applies the Masked Autoencoder (MAE) strategy. By deliberately masking sections of a plan and using a lightweight Vision Transformer (ViT) to reconstruct the missing regions, the model learns to capture the global structural patterns of floor plans from limited local information. (3) We evaluated FP-MAE across multiple masking scenarios and compared its performance with state-of-the-art baselines. Beyond controlled experiments, we also tested the model on real sketches produced during the early stages of design projects, which demonstrated its robustness under practical conditions. The results show that FP-MAE can produce complete plans that are both accurate and functionally coherent, even when starting from highly incomplete inputs. FP-MAE is a practical and scalable solution for automated floor plan generation. It can be integrated into design software as a supportive tool to speed up concept development and option exploration, and it also points toward broader opportunities for applying AI in architectural automation. While the current framework operates on two-dimensional plan representations, future extensions may integrate multi-view information such as sections or three-dimensional models to better reflect the relational nature of architectural design representations.
BibTeX
@inproceedings{zhong2026fp,
  author = {Jing Zhong and Ran Luo and Peilin Li and Tianrui Li and Pengyu Zeng and Zhifeng Lei and Tianjing Feng and Jun Yin},
  title = {{FP-MAE: A Self-Supervised Model for Floorplan Generation with Incomplete Inputs}},
  booktitle = {Buildings},
  year = {2026},
  doi = {10.3390/buildings16030558},
}
Figure