Floor Plan Exploration Framework Based on Similarity Distances

Chia-Ying Shih, Chi-Han Peng

Introduction

Navigating large-scale architectural datasets is a fundamental challenge for modern designers. Architects frequently need to search through historical floor plans to find inspiration, validate design uniqueness, or analyze spatial trends. However, determining similarity between floor plans is computationally expensive because it involves both geometric properties (room dimensions and shapes) and topological relationships (how spaces connect).

While state-of-the-art deep graph matching models like LayoutGMN provide high accuracy in similarity assessment, they suffer from two major drawbacks: they are too slow for real-time interactive search, and they do not produce a fixed "fingerprint" or feature vector for individual plans. Instead, they calculate similarity relative to other plans in triples, making it impossible to use standard indexing or visualization techniques like PCA. This paper introduces a framework that bridges this gap by projecting complex architectural data into a simple, searchable 3D space.

Methodology

The proposed framework decouples the expensive similarity calculation from the search process by creating a low-dimensional "map" of the floor plan library. The process involves four key steps:

  1. Distance Normalization: Because LayoutGMN produces similarity scores without a fixed upper bound, the authors first apply cosine similarity to map these scores into a consistent range of 0 to 1.
  2. Least Squares Optimization: The core of the framework is a linear least squares problem. Every floor plan in the dataset is assigned a coordinate ($X_i$) in a 3D space. The objective function minimizes the difference between the Euclidean distance of these 3D coordinates and the normalized similarity scores derived from the graph-matching model.
  3. Optimization at Scale: To handle the massive scale of modern datasets, the authors utilized the Google Ceres solver. This allowed the team to process over 12 million pairs of similarity scores to find the optimal global configuration for the 3D map.
  4. Interactive Querying: Once the 3D map is established, finding a similar floor plan is reduced to a simple Euclidean distance calculation. This shift from neural network inference to basic geometry enables near-instantaneous search results.

Experimental Results

Performance and Speed

The framework achieves a massive reduction in computational overhead. In exhaustive search tasks, the time required to find similar plans dropped from 296.8 seconds using the original LayoutGMN model to just 8.7 seconds using the 3D projection framework. This speedup enables interactive exploration that was previously impossible.

Fidelity and Human Alignment

Despite the drastic reduction in dimensionality, the 3D map remains highly faithful to the original complex model. The optimization process reduced residuals (errors in distance) from 1.9e+06 in a random state to 1.3e+03. Furthermore, a user study involving 25 respondents validated that the system's similarity rankings align with human architectural intuition, achieving a 63.6% rank correlation and an 85% pass rate in qualitative similarity tests.

Dataset Auditing and Clustering

The framework provides a new lens through which to view architectural datasets. By visualizing the RPLAN dataset (a standard benchmark of 77,664 plans) in 3D, the authors identified 4,419 nearly redundant entries—plans that differed by only a few pixels. This capability makes the framework an essential tool for "cleaning" training data for generative AI models. Additionally, the 3D projection allowed for the clear visual clustering of plans by style and room arrangement.

Discussion and Future Work

While the 3D projection offers significant advantages in speed and visualization, it is currently limited by the memory requirements of solving the massive coordinate optimization problem. Additionally, the system is more effective at finding similarities between existing dataset entries than it is at matching entirely novel, user-drawn designs from scratch.

Future research will focus on exploring hybrid encoding methods, such as weighted sums of Euclidean and cosine distances, to better capture the subtle nuances of architectural style. By refining the way similarity is encoded, the authors aim to further bridge the gap between automated graph analysis and the intuitive spatial reasoning used by architects.

Summary updated

BibTeX
@inproceedings{shih2022floor,
  author = {Chia-Ying Shih and Chi-Han Peng},
  title = {{Floor Plan Exploration Framework Based on Similarity Distances}},
  booktitle = {STAG},
  year = {2022},
  doi = {10.2312/stag.20221263},
}
Figure