Creative Coding

A New AI Model Lays Out Furniture the Way a Floor Plan Actually Works

RoomTokens represents a room as a grid of tokens carrying semantic class, instance identity, and facing direction together, then denoises that grid with masked diffusion — producing furniture layouts that respect walls instead of clipping through them.

Generate a 3D indoor scene with an AI model today and you’ll usually hit one of two failure modes: furniture that floats, overlaps, or clips through walls because the model treated each object as an independent floating box; or a scene that respects the room’s geometry but can’t tell you which object is which, or which way a chair is actually facing, because it collapsed everything into a flat occupancy map. RoomTokens, from Xiaohao Sun and Angel X. Chang at Simon Fraser University, is built specifically to avoid having to pick one problem over the other.

A token that carries three things at once

The core idea is a sliced structured-token representation: instead of representing the room as a sequence of object vectors (position, size, class) or as a 2D semantic map, each spatial cell in a discrete grid holds a token carrying its semantic class, instance-color identity, and facing direction jointly. A grid cell doesn’t just say “this is floor” or “this is furniture” — it says which specific piece of furniture, and which way it’s oriented, while the grid itself enforces that nothing overlaps or crosses a wall it shouldn’t.

To actually generate that grid, the authors use MDIRT — Masked Diffusion over RoomTokens — a masked discrete diffusion model that denoises the semantic, instance-color, and facing channels jointly with a shared cross-slice backbone, rather than generating them in separate passes that then have to be reconciled. Architectural elements like walls and doorways are clamped as explicit floor-plan constraints going in, so the model is sampling furniture arrangements that are already guaranteed to respect the room’s actual shape, not hoping a learned prior happens to.

Why this matters past the benchmark number

On the standard 3D-FRONT dataset, the paper reports improved layout fidelity and physical consistency over both the sequence/vector-based and semantic-map-based approaches it’s compared against. The more useful way to read that result isn’t the number itself but what it implies for anyone building on top of this kind of model: a representation that keeps instance and orientation information intact through the whole generation process is one you can actually hand off to a downstream renderer or game engine without a reconciliation step, because it already knows which chair is which and which way it’s pointed.

That’s the detail that keeps tripping up automated scene generation for games, architectural visualization, and synthetic-data pipelines alike — a technically plausible-looking floor plan is not the same thing as a scene you can actually place a camera inside and render, and the gap between the two is usually exactly the information RoomTokens is designed to preserve.