Introduction
Generative AI has achieved remarkable success in creating visually appealing architectural imagery. However, traditional raster-based models often fail when tasked with designing floorplans that must adhere to precise numerical and topological constraints. A master bedroom of exactly 200 square feet connected to a specific hallway is a requirement that pixel-based "hallucinations" struggle to meet.
A new research paper, "DStruct2Design: Data and Benchmarks for Data Structure Driven Generative Floor Plan Design," proposes a shift from generating pixels to generating underlying data structures. By treating floorplan design as a structured text problem, the authors demonstrate that Large Language Models (LLMs) can become competent geometric reasoners.
The Challenge of Constraint-Driven Design
In architectural design, functional constraints—such as total area, room counts, and adjacency—take precedence over aesthetics. Existing generative models, primarily GANs and Diffusion models, struggle here because they operate in pixel space. The metadata regarding dimensions and connections is often buried within the image and mathematically inconsistent.
As shown in the comparison above, most existing methods lack the ability to simultaneously specify geometry and use absolute coordinates. DStruct2Design addresses this gap by enabling precise control over numerical constraints through a structured language approach.
The DS2D Methodology
The core of the DStruct2Design (DS2D) approach is a data-structure to data-structure formulation. The researchers represent floorplans as JSON objects where each room is defined by its type, polygon vertices, area, and bounding box dimensions.
The pipeline involves fine-tuning a Llama3-8B-Instruct model using Low-Rank Adaptation (LoRA). The model is prompted with constraint strings (e.g., total area) and/or adjacency strings (bubble diagrams). By training with "masking" strategies—randomly hiding some constraints—the model learns to robustly fill in the blanks, such as generating a full layout from only a total area requirement.
Datasets and Evaluation
The authors introduced the DStruct2Design dataset by converting two major sources into a unified JSON format:
- RPLAN: Over 80,000 real-world residential floorplans from Asia.
- ProcTHOR-10k: 12,000 procedurally generated, interactive 3D houses.
To evaluate performance, the study introduced "Self-Consistency" and "Prompt Consistency" metrics. Self-consistency checks if the model's stated room area matches the area calculated from its generated polygon vertices using the shoelace formula. Prompt consistency measures how well the output matches the initial user requirements.
Key Results
The LLM-based approach demonstrated superior performance in several key areas:
- Adjacency Accuracy: On the RPLAN dataset, the model achieved a Graph Edit Distance (GED) of 0.46 for 5-room plans, significantly outperforming the previous state-of-the-art, HouseDiffusion (GED 1.5).
- Numerical Precision: Prompt consistency scores for room areas reached 0.90–0.95, indicating high fidelity to user-specified dimensions.
- Zero-Shot Capability: The model successfully generated plausible layouts even when provided with minimal prompts, such as only the total square footage of the house.
Limitations and Future Outlook
The primary challenge identified is spatial overlap. Since the LLM processes coordinates as a sequence of numbers rather than "seeing" them on a 2D plane, it occasionally places rooms on top of each other. Future work aims to integrate spatial reasoning modules or physics-based post-processing to resolve these geometric conflicts and expand the dataset to include architectural details like doors, windows, and furniture.
The code and dataset are available on GitHub at https://github.com/plstory/DS2D.
Summary updated