Floor Plan Reconstruction from Sparse Views: Combining Graph Neural Network with Constrained Diffusion

Arnaud Gueze, Matthieu Ospici, Damien Rohmer, Marie-Paule CaniWorkshops @ ICCV 2023

Introduction

In real estate and architectural modeling, obtaining a complete 3D scan or a full set of blueprints is often impractical. More commonly, only a few photographs and a basic understanding of room connectivity are available. This research addresses the challenge of "Sparse Reconstruction": the task of building a globally consistent, accurate, and vectorized floor plan from incomplete local clues.

Existing automated methods generally fall into two categories: dense reconstruction, which requires high-quality data like 360° panoramas for every room, or unconstrained generation, which produces plausible layouts that may not correspond to a specific physical site. This paper introduces a modular pipeline that treats floor plan reconstruction as a constrained optimization problem, bridging the gap between these two approaches.

Methodology

The proposed system utilizes a two-stage pipeline that combines the structural reasoning of Graph Neural Networks (GNNs) with the generative capabilities of Diffusion Models.

The proposed two-stage pipeline for floor plan reconstruction, integrating graph construction, corner prediction via GNN, and floor plan generation via a constrained diffusion model.

1. Extended Graph Representation

The apartment layout is represented as a graph where nodes correspond to rooms. To incorporate sparse visual data, the researchers introduce "leaf nodes" representing partial shapes extracted from available photos. These shapes are encoded using Zernike Moments—mathematical descriptors invariant to rotation and scaling—allowing the model to process visual information regardless of camera orientation.

2. GNN-based Feature Inference

A state-of-the-art GNN architecture (GPS++) propagates information across the room-connectivity graph. This allows the system to infer properties of rooms even when no direct visual data is available. For instance, the GNN can estimate the number of corners in a room based on its neighbors. The model employs ordinal regression for corner prediction, recognizing the inherent numerical relationship between different corner counts (e.g., a 6-corner room is geometrically closer to an 8-corner room than a 4-corner one).

3. Constrained Diffusion Model

The final geometry is generated using a Diffusion Model that extends the HouseDiffusion framework. To ensure the output strictly adheres to the input photos, a Cross-Attention mechanism is introduced. This module utilizes Chain Codes—sequences of vectors describing polygon edges—to steer the denoising process.

Comparison between the baseline HouseDiffusion architecture (a) and the proposed architecture (b) incorporating an encoder and cross-attention for geometric constraints.

By treating partial views as "soft constraints," the diffusion model can fill in missing information (such as walls occluded by furniture) while maintaining the overall compactness and connectivity required for a realistic floor plan.

Experimental Evaluation

The model was trained and evaluated using a subset of the ProcTHOR-10K dataset, consisting of 5,149 valid scenes containing at least a living room, kitchen, and bedroom. To simulate sparse views, ground-truth polygons were randomly "cut" to create partial, contiguous shapes mimicking single camera perspectives.

Key Results

The "Shape Constrained" (SC) model was compared against a "No Shape Constraints" (NSC) baseline:

  • Corner Prediction Accuracy: The GNN achieved high precision. With two views per room, the Mean Absolute Error (MAE) for corner prediction dropped to nearly zero for simple rooms and remained low (0.9) for complex 10-corner rooms.
  • Geometric Fidelity: Using Hu Invariants to measure shape similarity, the constrained model significantly outperformed the baseline, reducing error from 0.31 to 0.143.
  • Structural Consistency: The model achieved a modified Graph Edit Distance (mGED) of 1.13, demonstrating that the generated floor plans respect the input connectivity graph far better than unconstrained models.

Conclusion and Future Work

This research demonstrates that combining graph-based structural reasoning with constrained generative models can effectively reconstruct floor plans from sparse data. However, limitations remain, such as occasional "gaps" between adjacent rooms in complex layouts and sensitivity to corner prediction errors. Future work aims to incorporate multi-modal inputs, such as natural language descriptions from real estate listings, to further enhance reconstruction accuracy.

Summary updated

BibTeX
@inproceedings{gueze2023floor,
  author = {Arnaud Gueze and Matthieu Ospici and Damien Rohmer and Marie-Paule Cani},
  title = {{Floor Plan Reconstruction from Sparse Views: Combining Graph Neural Network with Constrained Diffusion}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00173},
}
Figure