FloorplanMAE:A self-supervised framework for complete floorplan generation from partial inputs

Jun Yin, Jing Zhong, Pengyu Zeng, Peilin Li, Miao Zhang, Ran Luo, Shuai Lu

Abstract

Architectural design is an iterative process that often begins with incomplete sketches or functional requirements. Generating full floorplans from these partial inputs remains a challenge due to the strict geometric and functional constraints inherent in architectural logic. This paper presents FloorplanMAE, a self-supervised framework based on Masked Autoencoders (MAE) designed to reconstruct complete floorplans from sparse, masked inputs. By training on a specialized dataset of 8,000 plans, the model learns to capture the global design "grammar" of residential layouts. Our results demonstrate that FloorplanMAE can reconstruct high-fidelity plans even with masking ratios as high as 80%, significantly outperforming traditional image-to-image translation baselines.

Introduction

Unlike natural images, which contain significant pixel-level redundancy, architectural floorplans are highly structured and symbolic. In a natural image, a missing pixel can often be inferred from its immediate neighbors. In contrast, a floorplan is governed by complex design logic: rooms must be accessible, functional zones must be logically placed, and structural elements like walls and windows must follow specific geometric rules.

Existing computer vision models often struggle with these constraints, treating floorplans as standard images rather than structured data. FloorplanMAE addresses this by adapting the Masked Autoencoder architecture to the architectural domain, providing a tool that allows architects to transition from partial, messy sketches to complete, rational layouts.

Methodology

FloorplanMAE utilizes an asymmetric encoder-decoder architecture based on the Vision Transformer (ViT). The process is divided into two primary stages:

  1. The Encoder: The encoder processes only the visible (unmasked) patches of a floorplan. These patches are converted into mathematical embeddings, allowing the model to focus on the available information without being distracted by missing regions.
  2. The Decoder: A lightweight decoder receives the embeddings from the encoder along with a set of "mask tokens"—placeholders representing the missing sections. The decoder's task is to reconstruct the original pixels for the entire image.

Training is conducted using a Mean Squared Error (MSE) loss function, comparing the reconstructed output against the ground truth. A critical component of this methodology is the masking strategy. The researchers simulated various architectural workflows by applying different masking patterns, including random, center, edge, and one-sided masking.

Experimental Setup and Dataset

To train and evaluate the model, the authors introduced FloorplanNet, a dataset comprising 8,000 floorplans:

  • Real-plan: 300 plans sourced from actual architectural projects.
  • R-plan: 7,700 standardized layouts generated via the RPLAN toolbox.

The dataset includes both color-coded functional drawings (where colors denote room types) and line drawings. The data was partitioned into 7,000 training samples, 500 validation samples, and 500 test samples.

Key Insights and Results

The Power of High Masking Ratios

One of the most significant findings of this research is the effectiveness of high masking ratios. While natural image models typically perform best with 25-50% masking, FloorplanMAE showed improved understanding of architectural logic at masking ratios as high as 80%. Because floorplans are sparse, forcing the model to work with minimal data compels it to learn global structural relationships rather than relying on local textures.

Distribution vs. Content

The experiments revealed that the distribution of known information is more critical than the specific content. Random masking, which spreads known patches across the entire plan, allows the model to capture the global structure more effectively than center masking, where a single large contiguous area is missing.

Quantitative and Qualitative Performance

FloorplanMAE outperformed traditional baselines such as pix2pix and CycleGAN. In one-sided masking tests (30% masked), the model achieved a Fréchet Inception Distance (FID) of 8.84 and a Peak Signal-to-Noise Ratio (PSNR) of 80.14. Qualitatively, even at 80% random masking, the model successfully restored primary functional zones and maintained architectural logic, though minor errors in window or door placement occurred in extremely sparse scenarios.

Discussion and Future Work

While FloorplanMAE excels at reconstruction, it highlights a tension between controllability and creativity. A primary challenge remains the evaluation of "rationality." Standard metrics like FID measure pixel-level similarity but do not necessarily reflect whether a floorplan is livable or functionally sound for a human resident.

Future research will focus on balancing user-specific constraints with the model's generative suggestions. Additionally, the authors aim to develop new metrics that specifically evaluate the "architectural common sense" of AI-generated designs, ensuring that the outputs are not just visually accurate, but functionally viable.

Summary updated

BibTeX
@misc{yin2025floorplanmae,
  author = {Jun Yin and Jing Zhong and Pengyu Zeng and Peilin Li and Miao Zhang and Ran Luo and Shuai Lu},
  title = {{FloorplanMAE:A self-supervised framework for complete floorplan generation from partial inputs}},
  year = {2025},
  eprint = {2506.08363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.08363},
}
Figure