Constrained Layout Generation with Factor Graphs
Mohammed Haroon Dupty, Yanfei Dong, Sicong Leng, Guoji Fu, Yong Liang Goh, Wei Lu, Wee Sun Lee
TL;DR
This work tackles constrained floorplan layout generation by encoding higher-order spatial constraints as a factor graph, where each room is represented by four bounding-box variables $(x_{min}^i, x_{max}^i, y_{min}^i, y_{max}^i)$. A Floor-Plan Factor Graph Neural Network (FP-FGNN) performs neural message passing over variable and factor nodes—including box, relation, boundary, and complete factors—to infer bounding boxes that satisfy user-defined and structural constraints, then converts these boxes into a floorplan image via a CRN-based refinement step. FP-FGNN demonstrates substantial gains over Graph2Plan and HPGM in box-level IOU (roughly a 20% improvement) and strong fidelity to constraints, while supporting rapid iterative design (inference ≈0.023s) and integration into generative pipelines for diversity (via boundary-based retrieval and favorable FID scores). The approach highlights the value of higher-order, domain-knowledge-driven constraints in practice, enabling accurate, interactive AI-guided floorplan design. Future work includes extending FP-FGNN to incorporate language-described requirements for even more expressive, natural human-in-the-loop interaction.
Abstract
This paper addresses the challenge of object-centric layout generation under spatial constraints, seen in multiple domains including floorplan design process. The design process typically involves specifying a set of spatial constraints that include object attributes like size and inter-object relations such as relative positioning. Existing works, which typically represent objects as single nodes, lack the granularity to accurately model complex interactions between objects. For instance, often only certain parts of an object, like a room's right wall, interact with adjacent objects. To address this gap, we introduce a factor graph based approach with four latent variable nodes for each room, and a factor node for each constraint. The factor nodes represent dependencies among the variables to which they are connected, effectively capturing constraints that are potentially of a higher order. We then develop message-passing on the bipartite graph, forming a factor graph neural network that is trained to produce a floorplan that aligns with the desired requirements. Our approach is simple and generates layouts faithful to the user requirements, demonstrated by a large improvement in IOU scores over existing methods. Additionally, our approach, being inferential and accurate, is well-suited to the practical human-in-the-loop design process where specifications evolve iteratively, offering a practical and powerful tool for AI-guided design.
