TL;DR
InstructLayout is a novel two-stage generative framework that synthesizes complex 2D poster and 3D indoor layouts directly from natural language instructions. By first generating a "semantic graph" that explicitly models object relationships and then decoding this graph into precise spatial coordinates, the system achieves significantly higher controllability and visual fidelity than previous state-of-the-art methods.
What Problem Does This Paper Address?
Automatically generating layouts—whether for an e-commerce poster or a 3D bedroom—is difficult because it requires a model to understand both what objects are and how they relate to each other spatially.
Existing methods typically struggle with two things:
- Controllability: Most models treat object relationships implicitly. If you tell a model to "put a lamp to the left of the bed," it might get the objects right but fail the spatial constraint because it doesn't have an explicit internal representation of "left of."
- Visual Detail: Many models represent objects only by simple category labels, ignoring crucial details like style, font, or texture, which leads to aesthetically inconsistent results.
InstructLayout tackles these gaps by introducing an intermediate "semantic graph" that acts as a blueprint, ensuring the final layout strictly follows the user's textual instructions.
Methods
The authors propose a two-stage pipeline that separates the "planning" of the layout from the "execution" of the spatial coordinates.
1. The Semantic Graph Prior
Instead of jumping straight to coordinates, the model first generates a semantic graph $G$. In this graph, nodes represent objects (with attributes like category and appearance) and edges represent spatial relationships (e.g., "above," "enclosing," "front").
- Feature Discretization: To handle complex 3D appearances, the authors use a VQ-VAE to quantize high-dimensional features from a multimodal model (OpenShape) into discrete tokens.
- Discrete Diffusion: The graph is generated using a mask-based discrete diffusion process. The model starts with a fully masked graph and iteratively "unmasks" nodes and edges based on the text prompt.
2. The Layout Decoder
Once the graph is finalized, a second model—a continuous diffusion model—takes over. It treats the graph as a condition and predicts the precise location, scale, and orientation for every object.
- Graph Transformer: Both stages use a Graph Transformer architecture that employs node self-attention and node-edge fusion to ensure every object "knows" where its neighbors are.
Datasets
Because high-quality instruction-layout pairs are rare, the authors curated two new benchmarks:
- 3D Indoor Scene-Instruction Dataset: Built upon 3D-FRONT, they used BLIP to caption objects, ChatGPT to refine those captions, and rule-based scripts to extract spatial triplets for instructions.
- 2D E-commerce Poster-Instruction Dataset: Built upon AutoPoster, they added web-crawled product descriptions and used an improved inpainting strategy (based on LaMa) to create clean background images for training.
Key Insights and Ideas
- Decoupling is Key: By separating discrete attributes (what is it? how does it relate?) from continuous ones (where exactly is it?), the model avoids the optimization "burden" of trying to learn everything at once.
- Graphs as a Universal Language: The semantic graph serves as a unified representation for both 2D and 3D tasks, proving that layout logic is somewhat domain-independent.
- Zero-Shot Versatility: Because the graph prior is trained with a masking objective, it can perform downstream tasks like completion (adding objects to a partial scene) or re-arrangement without any additional fine-tuning.
Key Results
InstructLayout outperforms baselines like ATISS and DiffuScene by substantial margins:
- Controllability: In 3D scene synthesis, the "instruction recall" (iRecall)—a metric measuring how well the model followed spatial triplets—improved by 15% to 25% across different room types.
- Fidelity: The model achieved lower Frechet Inception Distance (FID) scores, indicating the generated scenes look more like real-world data.
- User Preference: In a blind study, participants preferred InstructLayout's results 87.1% of the time for 3D scenes and 89.5% for 2D posters.
Limitations and Future Work
Despite its strengths, the authors note a few hurdles:
- Physical Collisions: In 3D, the model sometimes places objects so they clip through each other because it uses bounding boxes rather than full mesh-aware physics.
- Generalization: The current models are specialized (e.g., one for bedrooms, one for dining rooms). The authors suggest that moving toward a single, unified Large Vision Language Model (VLM) could improve generalization across all categories.
- 2D Overlap: In posters, the model occasionally places text boxes over existing text in the background image if the background is particularly "noisy."
Summary updated