Abstract
We introduce a learning framework for automated floorplan generation which combines generative modeling using deep neural networks and user-in-the-loop designs to enable human users to provide sparse design constraints. Such constraints are represented by a layout graph. The core component of our learning framework is a deep neural network, Graph2Plan, which converts a layout graph, along with a building boundary, into a floorplan that fulfills both the layout and boundary constraints. Given an input building boundary, we allow a user to specify room counts and other layout constraints, which are used to retrieve a set of floorplans, with their associated layout graphs, from a database. For each retrieved layout graph, along with the input boundary, Graph2Plan first generates a corresponding raster floorplan image, and then a refined set of boxes representing the rooms. Graph2Plan is trained on RPLAN, a large-scale dataset consisting of 80K annotated floorplans. The network is mainly based on convolutional processing over both the layout graph, via a graph neural network (GNN), and the input building boundary, as well as the raster floorplan images, via conventional image convolution.
Introduction
Designing a residential floorplan is a complex architectural task that requires balancing global geometric constraints—the building's outer boundary—with local functional requirements, such as the number of bedrooms, their sizes, and their relative positions. Traditional automated methods often treat this as a "black box" optimization problem, offering users little control over the internal configuration. If a designer requires a specific adjacency (e.g., a kitchen next to a dining area) or a specific room count, existing models often struggle to incorporate these sparse constraints into a coherent geometric output.
This paper introduces Graph2Plan, a deep learning framework designed for "structural retargeting." The goal is to take a desired topological layout (the "what") and fit it into a specific, often complex, geometric boundary (the "where"). By utilizing layout graphs as an intermediate representation, Graph2Plan enables a human-in-the-loop design process that is both intuitive and computationally efficient.
Methodology
The Graph2Plan framework operates through a multi-stage pipeline that bridges graph-based reasoning with convolutional image processing.
1. Layout Graph and Retrieval
User constraints are represented as a layout graph, where nodes represent rooms (labeled by type and size) and edges represent spatial adjacencies. To assist users who may only provide partial constraints, the system utilizes a "Retrieve-and-Adjust" mechanism. It searches the RPLAN dataset—a collection of 80,000 human-designed plans—to find compatible layout graphs. These graphs are then aligned with the user's input boundary using a "turning function" to ensure a preliminary geometric fit.
2. The Graph2Plan Network Architecture
The core of the system is a hybrid neural network:
- GNN & CNN Fusion: A Graph Neural Network (GNN) processes the room relationships within the layout graph, while a Convolutional Neural Network (CNN) encodes the building boundary.
- Raster Guidance: Unlike models that only predict bounding boxes, Graph2Plan simultaneously generates a raster floorplan image. This image acts as a "global prior," providing the model with a holistic view of the spatial flow and helping to resolve local geometric conflicts.
- Box Prediction and Refinement: The network predicts initial bounding boxes for each room. These are then processed by BoxRefineNet, a specialized sub-network that uses the raster image and boundary features to "tighten" the boxes, ensuring they align perfectly with walls and neighboring rooms.
3. Training and Geometric Loss
To ensure the generated plans are architecturally sound, the model is trained using a novel composite loss function:
- Mutex Loss: Penalizes overlapping rooms.
- Interior Loss: Ensures all rooms remain within the building boundary.
- Coverage Loss: Minimizes empty gaps between rooms.
The final output is vectorized into clean, straight lines, making the results ready for use in CAD software.
Results and Evaluation
Graph2Plan was evaluated against the RPLAN dataset and compared with existing procedural and optimization-based methods.
- Plausibility: In a double-blind user study, participants rated Graph2Plan’s generated layouts as being as plausible as human-designed plans approximately 50% of the time.
- Geometric Accuracy: The model achieved an Intersection over Union (IoU) of 0.65 relative to ground truth data, demonstrating high precision in room placement and sizing.
- Efficiency: The end-to-end generation process takes less than 0.4 seconds, a significant improvement over traditional optimization methods that often require several seconds or minutes to converge.
- Robustness: The system maintains performance even when faced with non-rectangular or highly complex building boundaries, which typically cause procedural generation tools to fail.
Discussion and Limitations
While Graph2Plan represents a significant step forward in interactive architectural AI, several challenges remain. The current model does not explicitly account for circulation—the functional paths (hallways and doorways) that allow movement through a home. This can occasionally result in "landlocked" rooms. Additionally, architectural details like windows and load-bearing walls are currently handled via post-processing heuristics rather than direct learning.
Future work will focus on extending the framework to 3D space, incorporating furniture placement, and addressing the complexities of multi-story building generation. By treating floorplan generation as a collaborative effort between human intent and machine optimization, Graph2Plan provides a scalable foundation for the future of automated architectural design.
Summary updated