Introduction
Generating realistic layouts, such as architectural floorplans or furniture arrangements, is a complex task that requires balancing global topology with local spatial precision. Traditional deep learning approaches like GANs or VAEs often struggle with this "Goldilocks" problem, frequently producing "fuzzy" results characterized by overlapping elements, unrealistic gaps, or broken connectivity. Furthermore, many existing state-of-the-art methods rely on user-provided constraints, such as the building's outer boundary or a fixed number of rooms.
This paper introduces a novel "generate-then-optimize" framework that treats layouts as constraint graphs. By decoupling the prediction of layout intent from the calculation of geometric coordinates, the model can generate high-quality, valid layouts from scratch without manual guidance.
The Three-Step Pipeline
The core of the proposed method is a three-phase generative process that combines the creative capacity of neural networks with the mathematical rigor of classical optimization.
- Element Constraint Generation: The process begins with a Transformer architecture (a variant of GPT-2) that generates a sequence of layout elements. In the context of a floorplan, these elements are rooms defined by their functional type and target dimensions (width and height).
- Edge (Relationship) Generation: Once the elements (nodes) are established, a Pointer Network predicts the relationships (edges) between them. These edges represent spatial constraints, such as horizontal or vertical adjacencies and the placement of doors.
- Constrained Optimization: Instead of directly predicting $(x, y)$ coordinates, the system treats the generated elements and edges as a system of linear constraints. A Linear Programming (LP) solver then determines the exact coordinates that satisfy all adjacencies and dimensions while minimizing the overall perimeter of the layout.
This approach ensures that the final output is "watertight," avoiding the common pitfalls of purely neural generative models.
Experimental Results
The model was rigorously evaluated on two major floorplan datasets—RPLAN (80,000 Asian apartment plans) and LIFULL (61,000 Japanese housing plans)—as well as on furniture layout tasks for bedrooms and living rooms.
The researchers compared their framework against established baselines, including StyleGAN and Graph2Plan. Key findings include:
- Superior Quality: Even when generating from scratch (zero-input), the model outperformed baselines that were provided with ground-truth boundaries. It achieved significantly better scores in alignment and shape statistics, indicating more realistic room proportions and fewer overlaps.
- Statistical Performance: On the RPLAN dataset, the model achieved a Fréchet Inception Distance (FID) of 21.47, demonstrating high topological realism.
- Flexibility: Due to its encoder-decoder structure, the model can be conditioned on specific user inputs, such as a required boundary or a partial layout, making it a versatile tool for design.
Discussion and Future Work
The shift from predicting coordinates to predicting constraints is a significant advancement in layout modeling. It acknowledges that neural networks are better at capturing design intent than geometric precision. However, challenges remain. The model occasionally predicts impossible constraints (e.g., a door between non-adjacent rooms) or sets of constraints that are mathematically infeasible to solve.
Future research will focus on extending this framework to 3D scene layouts and using it to refine noisy 3D scans of real-world environments. By integrating physical impossibility checks into the generation phase, the robustness of the system can be further improved.
Summary updated