Generative Floor Plan Design with LLMs via Reinforcement Learning with Verifiable Rewards

Paper · arXiv 2605.14117 · Published May 13, 2026
RL with Verifiable Rewards (RLVR)

An AI system for professional floor plan design must precisely control room dimensions and areas while respecting the desired connectivity between rooms and maintaining functional and aesthetic quality. Existing generative approaches focus primarily on respecting the requested connectivity between rooms, but do not support generating floor plans that respect numerical constraints. We introduce a text-based floor plan generation approach that fine-tunes a large language model (LLM) on real plans and then applies reinforcement learning with verifiable rewards (RLVR) to improve adherence to topological and numerical constraints while discouraging invalid or overlapping outputs. Furthermore, we design a set of constraint adherence metrics to systematically measure how generated floor plans align with user-defined constraints. Our model generates floor plans that satisfy user-defined connectivity and numerical constraints and outperforms existing methods on Realism, Compatibility, and Diversity metrics. Across all tasks, our approach achieves at least a 94% relative reduction in Compatibility compared with existing methods.1 Our results demonstrate that LLMs can effectively handle constraints in this setting, suggesting broader applications for text-based generative modeling.

Introduction. Generative models have emerged as powerful tools for accelerating design across different sectors. However, their widespread adoption depends on their ability to strike a balance between flexibility and precise control. This challenge is particularly pronounced in floor plan generation, where users often need to specify strict constraints, including exact room sizing and connectivity. To address this, we propose a model that handles user-defined constraints, and we introduce evaluation metrics that measure how well generated floor plans satisfy those constraints. Most existing generative modeling techniques for floor plan design rely on top-down 2D renderings and use input graphs, referred to as bubble diagrams, to represent the spatial connectivity between rooms. However, such approaches have inherent drawbacks. Vision-based generative models, for instance, produce rasterized image-based outputs, making it challenging to access or modify them directly. Additionally, many models focus exclusively on adjacency constraints, disregarding room geometry entirely, thereby reducing the degree of control users can exert over the generated layouts. To overcome these limitations, we adopt a JSONbased representation for generative floor plan modeling that encodes room layouts as polygonal structures. Our method builds on prior vectorized floor plan approaches, such as House-GAN, House- GAN++ (Nauata et al., 2020, 2021), and HouseDiffusion (Shabani et al., 2023), and leverages data from the RPLAN dataset (Wu et al., 2019). This structured format facilitates greater control over spatial parameters, including room size and connectivity. To validate this approach, we fine-tune a large language model (LLM) to generate JSONencoded floor plans with spatial constraints specified in the prompt. See Figure 1 for an overview of the inference process. Through our experiments, we validate the effectiveness of our approach in maintaining high compliance with the specified constraints, as measured by our proposed constraint-adherence metrics. In the most complex setting, the eight-room task, our approach with best-of-10 sampling reduces Compatibility by 94% relative to HouseDiffusion (Table 1). Compatibility is a standard metric of how well the generated floor plan matches the desired room connectivity, where lower is better.

Our key contributions are as follows:

  1. We fine-tune an LLM in two stages, first via supervised learning and then via reinforcement learning, to transform constraint inputs into valid structured floor plans, demonstrating the feasibility and advantages of a structured-data-to-structured-data generative paradigm.

  2. We propose new constraint adherence metrics that systematically evaluate the extent to which generated floor plans align with userdefined constraints, filling a critical evaluation gap in this domain.

Related work. Generative Models. House-GAN and House- GAN++ (Nauata et al., 2020, 2021) are a family of GAN-based methods that learn to generate floor plan images using convolutional graph-based networks. House-GAN starts with a noise vector for every existing room in the connectivity graph and makes use of a convolutional message passing network (Conv-MPN) to update node features while preserving spatial relationships. Notably, however, these models only condition on a bubble diagram and cannot impose other forms of constraints. The outputs from these methods are also scale-invariant (i.e., not metric) and thus cannot be used directly in any downstream task. FloorplanGAN (Luo and Huang, 2022) proposes a self-attention-based GAN that takes as input room centers, desired areas (encoded as relative proportions), as well as room type for each room. However, the outputs from the GAN do not always adhere to the original constraints. While the use of a differentiable rasterizer to compute losses in pixel space opens up possibilities, the core method does not appear to support a partial specification of constraints or polygons.

HouseDiffusion (Shabani et al., 2023) is a diffusionbased method that creates a 1-D polygonal loop for each room in the bubble diagram and, through the diffusion process, iteratively improves their shape and position. While it also utilizes a transformer architecture to attend to the input graph, the floor plan generation process is done through diffusion. This method also only allows the input of a bubble diagram without the additional ability to condition on numerical constraints and therefore suffers from the same shortcomings as the House-GAN models.

Large Language Models. ArchiText (Galanos et al., 2023) also leverages LLMs to generate floor plans, but its prompts appear to be limited to natural-language descriptions rather than explicit geometry. In contrast to these approaches, our method allows users to specify detailed room constraints (e.g., room areas) and outputs room polygons in metric units that can directly be used in CAD drawing software. Providing both of these is crucial to the novelty and architectural usability of our method.

In Tell2Design (Leng et al., 2023), likely the most similar existing work, the authors create a new dataset for floor plan generation based on naturallanguage descriptions, based on RPLAN. They incorporate spatial (sizing) and relational positioning constraints in their natural-language prompts, and train a T5 sequence-to-sequence model on their dataset. Unlike our work, the authors render the floor plans as images and use image-based metrics for evaluation, which functionally ignore structural errors such as overlaps.

Method. Our task requires the model to satisfy explicit numerical and topological constraints and produce artifacts that can be automatically validated and consumed by downstream geometry and CAD tooling. Prior work shows that imposing structure in the conditioning signal can improve reliability: standardized marker templates provide an explicit control interface that improves generation quality and instruction adherence (D’souza et al., 2025). Complementarily, work in semantic parsing and code generation shows that unconstrained freeform generation is prone to syntactically invalid or non-executable outputs, while enforcing structural constraints during generation improves validity and accuracy (Yin and Neubig, 2018; Scholak et al., 2021; Raspanti et al., 2025). Collectively, these results substantiate the use of explicit, structured representations for both the conditioning and output sides. Accordingly, we choose JSON over alternative input and output formats such as natural-language specifications. JSON (1) enables unambiguous parsing of numerical constraints, reducing ambiguity in measurements and spatial relationships, (2) enforces a consistent structure across training examples, reducing the burden on the model to infer implicit fields, (3) naturally captures nested relationships in floor plan specifications via its hierarchical organization, and (4) supports direct integration with CAD tools and architectural software that already rely on structured representations. See Appendix A.1 for the input and output schemas.

4 Our Method To enable the model to generate valid floor plans from explicit design specifications, we employ a two-stage training procedure: supervised finetuning in stage one, and reinforcement learning–based fine-tuning in the second stage using GRPO with rewards derived from automated quantitative metrics, together with a hard feasibility condition that assigns zero reward to invalid or overlapping outputs. For all experiments, we use Llama-3.3-70B- Instruct as the backbone (Grattafiori et al., 2024). At inference time, we use best-of-10 sampling, selecting for each prompt the candidate with the smallest overlap area and breaking ties by Compatibility. Complete technical training and inference details appear in Appendix A.3.

4.1 Supervised Fine-Tuning In the first phase, we perform supervised instruction tuning so that the model learns to translate structured prompts into JSON-encoded floor plans. Let x = {(ki, vi)}K i=1 be the conditioning input (e.g., room count, total area, bubble diagram), and let y1:T be the ground-truth token sequence. We adapt the pre-trained LLM by minimizing the negative log-likelihood:

4.2 GRPO In the second phase of training, we perform reinforcement-learning-based fine-tuning using reinforcement learning with verifiable rewards (RLVR). Specifically, we use Group Relative Policy Optimization (GRPO) as our RLVR algorithm (Shao et al., 2024). GRPO is a PPO-style policy optimization method (Schulman et al., 2017) that improves the policy using relative reward comparisons within groups of sampled outputs, rather than relying on a learned value function. For each input specification x, we sample a group of G = 4 candidate floor plans {yi}G i=1 from the current policy. Each candidate is assigned a scalar reward R(x, yi) based on automatically computed constraint adherence metrics. We then normalize rewards within the sampled group to obtain group-relative advantages:

  1. Connectivity Reward: We reconstruct a connectivity graph from the generated layout and compare it with the input connectivity graph. The reward increases when the generated floor plan better matches the requested connectivity structure, and decreases when connectivity errors are present. This yields a reward rconn(y) ∈[0, 1], where higher is better, and 1 indicates an exact match.

  2. Total Area Reward: Let A(y) denote the total area of the generated layout for candidate y, and let A⋆denote the target total area specified in the input prompt. We define the total area error as:

Conclusion. We introduced a structured generator that maps a bubble diagram and numerical specifications to a floor plan. Our two-stage training recipe, which combines supervised fine-tuning with reinforcement learning with verifiable rewards, trains an LLM to improve Compatibility while reducing overlap between room polygons and preserving area-related accuracy. Across the five- to eightroom tasks, our model achieves the lowest Compatibility (0.01 to 0.15), the lowest Diversity values (7.0 to 9.0), and a Realism score of 0.028, indicating that the generated layouts were judged similarly to the ground truth on average according to volunteer feedback. In the most complex eightroom setting, our method reduces Compatibility by 94% and improves Diversity by 26% relative to the peer-reviewed state of the art, HouseDiffusion. Together, these results show that text-based models can produce controllable, CAD-ready floor plans under explicit connectivity constraints and structured area specifications. Limitations include occasional overlaps at higher room counts, inference requires multiple samples per prompt (increasing computational cost), and the use of single-floor residential floor plans from Asia derived from RPLAN, potentially limiting generalizability to other architectural styles or building types. Future work will scale to multi-floor residential buildings, add additional verifiable objectives to the reward (for example, circulation and daylight proxies), and enable interactive editing while preserving constraints. More broadly, the same structured approach should transfer to other graph and schema-constrained design problems beyond floor plan design.

Limitations. Our reinforcement learning with verifiable rewards (RLVR) optimizes only a limited set of automatically checkable objectives. These rewards are necessary but not sufficient for architectural validity and usability: many constraints that determine realworld quality (e.g., circulation, egress, accessibility, daylight, structural constraints, and local building codes) are not modeled or verified. Consequently, strong performance on our metrics should not be interpreted as evidence of code compliance or construction readiness. Our experiments are conducted on floor plans derived from RPLAN, which contains single-floor residential layouts from a specific geographic and cultural distribution. This scope limits generalization to other regions, architectural styles, multifamily housing, commercial programs, or multifloor buildings. In addition, the conversion pipeline from rasterized annotations to metric polygons may introduce noise (e.g., imperfect polygon reconstruction or scaling). Our results implicitly assume these artifacts are not dominant; performance may degrade on datasets with different annotation conventions, room taxonomies, higher geometric complexity, or more complex constraint sets. Finally, our empirical evidence is restricted to a single underlying dataset and a small set of task regimes (held-out room-count generalization).

Lines of inquiry this paper opens 24

Research framings built by reading the notes related to this paper — the questions it feeds into.

Can visual rendering-based rewards effectively improve code and layout quality? How can reward models overcome their inherent blindspots and biases? Can RL enable genuinely new reasoning or just optimize existing capabilities? Can neural networks achieve compositionality without explicit mechanisms? How important is reward engineering relative to pretraining for reasoning? How should design principles adapt for AI-generated interfaces? Does chain-of-thought reveal genuine reasoning or merely imitate learned behavior? Can AI systems formally evaluate design quality and taste? Does alignment training genuinely modify model behavior or only outputs? How do architectural constraints limit monolithic LLM performance on complex tasks?