TL;DR
Existing text-to-3D indoor scene generators fail in real-world rooms with curved or angled walls because they rely on rigid, axis-aligned "Manhattan world" assumptions. This paper introduces SPG-Layout, a novel framework that combines spatial prior guidance and a hierarchical placement strategy to generate physically plausible, collision-free 3D room layouts for complex, non-orthogonal architectures. By optimizing Large Language Models (LLMs) via reinforcement learning with geometric and semantic priors, it sets a new state-of-the-art for both irregular and standard rectangular rooms.
What Problem Does This Paper Address?
When humans design or imagine an indoor space, we easily adapt to the room's shape—whether it's a standard rectangular bedroom or a modern studio with curved walls and sharp, non-orthogonal angles. However, current text-driven 3D scene synthesis methods heavily rely on the Manhattan Assumption, meaning they assume all walls are orthogonal and structures are axis-aligned.
While this simplification works well for grid-based generation, it fails spectacularly in real-world, non-Manhattan architectures. When existing LLM-based layout generators attempt to populate irregular rooms, they lack the geometric intuition required for non-orthogonal spaces. As a result, they suffer from semantic-spatial misalignment, frequently placing furniture clipping through angled walls or overlapping awkwardly.
Methods
To bridge this gap, the authors present SPG-Layout, a two-stage text-driven framework designed to generate physically valid and functionally coherent layouts in complex environments.
- Two-Stage Training Paradigm:
- Stage 1: Supervised Fine-Tuning (SFT): The authors perform full-parameter fine-tuning on a Qwen3-4B backbone to align the LLM with a Structured Scene Representation (SSR), ensuring the model outputs valid syntax (object descriptions, scales, positions, and rotations).
- Stage 2: Reinforcement Learning via GRPO: To enforce physical constraints without needing a separate critic network, they optimize the model using Group Relative Policy Optimization (GRPO) driven by a multi-objective reward function.
-
Spatial Prior Guidance (SPG): Instead of forcing the model to blindly memorize coordinates, SPG introduces explicit statistical rewards based on human-refined designs. It calculates two key terms modeled as Gaussian kernels:
-
Object-Architecture Prior: Evaluates how well an object's distance to the nearest wall matches typical human placement.
- Object-Object Prior: Measures the spatial affinity between pairs of objects. Crucially, an attention-weighted mechanism dynamically anchors dependent objects (e.g., ensuring a nightstand responds primarily to the position of the bed rather than a distant wardrobe).
- Hierarchical Layout Strategy (HLS): Mimicking human interior designers, HLS enforces a coarse-to-fine workflow. It categorizes objects into three tiers based on area occupancy (Large, Medium, Small) and places them in descending order. This prevents smaller items from fragmenting the continuous free space and blocking the placement of dominant furniture. HLS also acts as a dynamic conflict resolution mechanism during single-object editing.
Datasets
- SSR-3DFRONT: A structured version of the standard 3D-FRONT dataset, used for the initial SFT structural alignment phase.
- New Non-Manhattan Benchmark: Because no dataset existed for irregular rooms, the authors curated a new benchmark consisting of 500 high-quality non-Manhattan scenes derived from professional floor plans and polished via manual refinement. It is split into 'bed' (252), 'liv' (148), and 'all' (500) environments.
- Prior Estimation Set: An additional, separate mix of 200 non-Manhattan and 100 Manhattan scenes was used exclusively to extract the statistical spatial priors, ensuring the test set remained completely unseen.
Key Insights and Ideas
- The Power of Attention in Space: Naively averaging spatial relationships introduces noise from unrelated objects. By using an attention mechanism to weight spatial anchors, the model learns to prioritize immediate functional groupings (like a bed and its flanking nightstands) even when the room's outer walls turn obliquely.
- Emulating Human Workflow (HLS): Prioritizing large objects acts as a natural geometric constraint. Securing the "spatial backbone" first drastically reduces the mathematical complexity of placing smaller items later.
- Full Fine-Tuning vs. LoRA: The authors discovered that parameter-efficient tuning methods like LoRA struggle with rigid structural syntax, achieving only a 78% format success rate compared to 99% with full-parameter fine-tuning. High compliance is essential before entering the reinforcement learning stage.
Key Results
The framework was evaluated on two primary tasks: Single Object Addition and Full Scene Synthesis.
- Drastic Violation Reductions: In full scene synthesis within non-Manhattan environments, SPG-Layout reduced layout violations (Out-Of-Bounds, Mesh-Based Layout loss) by 86% to 96% compared to the strongest baseline (ReSpace).
- Superior Fidelity: It consistently achieved the highest scores in semantic accuracy (ATR) and object-relationship distributions (OOR, OAR).
- Excellent Generalization: When tested back on conventional, rectangular Manhattan datasets, SPG-Layout still outperformed all existing methods, proving that learning from complex geometries makes the model a more robust general-purpose layout engine.
- User Study: In a blind perceptual study with 20 participants, SPG-Layout received 1,362 votes, vastly outperforming the runner-up, ReSpace, which received 346 votes.
Limitations and Future Work
Despite its strong performance, the authors note a few limitations:
- Data Dependency: The spatial priors rely on a dataset of 300 scenes, which might limit the model's ability to generalize to rare, long-tail object categories.
- Global Rearrangements: During single-object editing, if a room is highly constrained, the HLS mechanism might trigger unintended global reshuffling of existing small objects to fit a new item.
- Fine-Grained Orientation: Accurately orienting highly asymmetric or very small objects remains a minor challenge, occasionally leading to functional placement errors.
- Computational Overhead: Calculating voxel-based geometric rewards during the RL stage is computationally heavy, slightly reducing training efficiency.
Summary updated