Hugging Face Papers ↗ · 2026-11-23
RoomTokens: Masked Diffusion over Structured Tokens for Indoor Scene Synthesis
Media reports Hugging Face Papers Source language: Chinese
RoomTokens use sliced tokens with class, instance‑color, and facing fields, and MDiRT masked diffusion generates geometry‑consistent 3D indoor layouts with higher…
Full text
\iclrfinalcopy
RoomTokens: Masked Diffusion over
Structured Tokens for Indoor Scene Synthesis
Xiaohao Sun Affiliation: Simon Fraser University Angel X. Chang Affiliation: Simon Fraser University Affiliation: Alberta Machine Intelligence Institute (Amii)https://3dlg-hcvc.github.io/RoomToken/
Abstract
Generating 3D indoor scenes requires a representation that captures object semantics, instance identity, height structure, and orientation while respecting room geometry. Methods that model scenes as sequences of object vectors learn spatial constraints implicitly, leaving collisions and boundary violations to losses or post-processing; semantic-map methods make occupancy explicit, but collapse instance and directional structure. We introduce RoomTokens, a sliced structured-token representation in which each token stores semantic class, instance-color identity, and facing field. This representation allows a scene to be generated as a discrete grid while preserving cues for instance grouping, orientation estimation, and 3D extent prediction. To learn the RoomToken distribution, we propose MDiRT (Masked Diffusion over RoomTokens), a masked discrete diffusion model that denoises semantic/instance-color/facing channels jointly with a shared cross-slice backbone. Architectural tokens are clamped as explicit floor-plan constraints, so the model samples furniture layouts that respect room geometry while retaining instance and object-attribute structure. Experiments on 3D-FRONT show that RoomTokens with MDiRT improve layout fidelity and physical consistency over sequence/vector- and map-based methods, suggesting structured spatial tokens as a practical choice for discrete 3D scene synthesis.
1 Introduction
Automatic generation of 3D scenes is increasingly important, as it allows for scaling up of training data for 3D scene understanding and embodied AI, and provides content for applications such as augmented reality, gaming, and entertainment. Compositional 3D indoor scene generation \citeptam2026survey formulates the problem as an object arrangement problem, where we must decide on object categories, individual object identities, placement, and orientation while respecting the geometry of the room. To ensure that generated scenes are plausible, it is important to model the spatial structure and object-level semantics together.
Most existing methods represent scenes as sets or sequences of object vectors \citeppaschalidou2021atiss,tang2024diffuscene,hu2026mixed,lin2024instructscene, where each object vector encodes the object category and bounding box of the object. While this representation is compact, it does not make occupancy constraints explicit and cannot ensure that two generated boxes do not occupy the same space. As a result, generated scenes may contain inter-object collisions, wall penetrations, and inadequate clearance for accessing objects and room regions. Prior systems therefore add auxiliary mechanisms, such as intersection penalties in the training objective \citeptang2024diffuscene, rejection-style resampling of invalid insertions \citepritchie2019fast, or optimization-based layout refinement after an initial prediction \citepluo2020end. Another line of work \citepfeng2023layoutgpt,yang2025sceneweaver,xia2026sage leverages the broad knowledge encoded in LLMs/VLMs for more extensive semantic priors, but their coordinate outputs still require geometric cleanup and potentially multiple passes with a visual critic to ensure a physically plausible scene.
Approaches that generate scenes based on semantic-maps \citepyang2021indoor,sun2026semlayoutdiff capture the spatial arrangements explicitly by assigning semantic labels to cells on a dense grid. A recent work, SemLayoutDiff \citepsun2026semlayoutdiff demonstrated improved floor-plan-conditioned generation with fewer collisions and out-of-boundary objects. However, a single top-down semantic map fails to capture important information needed for 3D scene generation. It collapses vertical information, merges adjacent objects of the same category under connected-component decoding, and provides no directional cue for estimating object orientation. In this work, we tackle the challenge of how to introduce instance-level and vertical information into these spatial maps.

Figure 1: Top. Comparison of scene representations for indoor scene generation. Object sequences (a) encode object attributes but lack explicit spatial relationship information. Semantic maps (b) make spatial structure explicit, but lack vertical, instance, and orientation information. We propose RoomTokens (c) to address these missing factors by encoding semantic occupancy, instance identity, and facing cues in a sliced spatial grid. Bottom. We introduce MDiRT (d), a masked discrete diffusion model over RoomTokens, which denoises missing token fields while keeping architectural tokens fixed so generated scenes respect room boundaries.
We introduce RoomTokens, a sliced structured-token representation for indoor scenes. We represent a room as a stack of height-aware grids, with each grid cell storing a RoomToken with three fields that capture the semantic class, the instance identity, and facing cues. Encoding the instance identity is challenging as the assignment of a particular ID to an object is arbitrary (i.e., can be permuted or re-assigned), and the number of objects in a scene is not fixed. As our aim is to distinguish spatially adjacent object instances on a planar map (vs. providing an instance ID), we can use four ‘colors’ (following the four-color theorem \citeprobertson1997four) to identify different instances. For orientation, the facing field encodes whether a furniture token occupies the body or front half of an object; non-furniture tokens use none. We find that these two furniture labels are sufficient for decoding orientation. Together, these properties provide sufficient information for a model to generate a discrete spatial layout while preserving cues for instance grouping, orientation estimation, and 3D extent prediction.
To learn the RoomToken distribution, we propose MDiRT (Masked Diffusion over RoomTokens), a single-stage masked discrete diffusion model for indoor scene generation. Each token property is embedded as a semantic, instance-color, or facing channel. The channels are processed by a shared cross-slice UNet and decoded jointly. The denoising process maps masked RoomTokens to structured 3D scene layouts while conditioning on and clamping the architectural tokens from the floor plan (Fig. 1 (bottom)), so furniture tokens are generated within the valid interior region defined by the architectural condition. Instead of predicting semantics and then instance-level attributes as in prior work \citepsun2026semlayoutdiff, this multichannel parameterization learns semantic, instance-color, and facing dependencies through shared features in a single reverse process. Experiments on 3D-FRONT \citepfu20213dfront show that MDiRT generates more plausible layouts compared with SemLayoutDiff \citepsun2026semlayoutdiff. Generated layouts better match reference rooms (FID 50.14 vs. 71.18) and capture more plausible object relations (Pair-Rel 12.09 vs. 20.65). They also contain fewer collisions (COL 12.64 vs. 16.24) and leave doors and windows more unobstructed (OC 82.31 vs. 56.02).
In summary, our contributions are: 1) A sliced structured RoomToken representation that stores semantic class, graph-color instance identity, and facing information in each height-aware grid token. 2) A single-stage masked discrete diffusion model, MDiRT, for RoomTokens that clamps the architectural condition throughout denoising so furniture is generated within the valid room interior, while jointly modeling semantic/instance-color/facing channels with a shared cross-slice backbone. 3) An empirical analysis showing that explicit instance-color and facing fields improve instance recovery and orientation estimation and provide for physically plausible scene layouts.
2 Related Work
Object-vector and relational scene synthesis. Many indoor scene synthesis methods represent a room as a set or sequence of objects with attributes specifying the semantic class, position, and orientation of objects. Early neural and graph-based approaches learn spatial priors over object arrangements \citepwang2018deep,ritchie2019fast,li2019grains,wang2019planit,zhang2020deep, while recent autoregressive and diffusion methods predict the object attributes directly \citepwang2021sceneformer,paschalidou2021atiss,sun2024forest2seq,tang2024diffuscene,hu2026mixed,maillard2024debara,sun2025reltriple. Other recent work leverages scene graphs, relational triples, or mixed graph diffusion for improved modeling of object layouts \citeplin2024instructscene,zhai2023commonscenes,zhai2024echoscene,bai2025freescene,ruiz2025geoscenegraph, and physical or human-aware constraint objectives and optimization \citepyi2023mime,yang2024physcene,sun2024haisor,su2025chord,lin2026pat3d. These methods differ in conditioning and priors, but their generated layout is ultimately a set of object bounding boxes. As a result, generated scenes may contain object collisions and boundary overlaps, and additional post-processing is required as the representation does not natively prevent these. MDiRT instead generates a discrete occupancy grid, where each cell has a single semantic assignment and grid-level overlap is therefore explicit. By modeling object occupancy explicitly across height-aware slices, the representation helps reduce inter-object collisions.
LLM and agent-based scene generation. By leveraging LLMs and VLMs, it is possible to condition on language input and access the common sense knowledge of how objects are positioned, stored in these pretrained models. LayoutGPT \citepfeng2023layoutgpt predicts layouts with language models, while Holodeck \citepyang2024holodeck, AnyHome \citepwen2024anyhome, SceneTeller \citepocal2024sceneteller, and open-universe systems \citepaguina2024open connect text prompts with object retrieval, constraint solving, or scene assembly. More recent LLM/VLM and agentic methods use program synthesis, visual-language feedback, or multi-agent refinement for broader controllability \citephu2024scenecraft,ccelen2024design,sun2025layoutvlm,yang2025sceneweaver,pfaff2026scenesmith,gao2025discolayout. These systems provide flexible interfaces, but coordinate- or program-level outputs still require geometric cleanup for dense indoor layouts. Our focus is complementary: we learn the layout distribution from annotated 3D-FRONT rooms and make the representation itself carry local occupancy, instance, and orientation structure.
Discrete spatial representations for scene synthesis. Discrete spatial representations encode the scene by assigning labels directly to locations on a 2D or 3D lattice, making occupancy constraints local and explicit. \citetyang2021indoor use voxel labels, \citetlee2023diffusion model scene-scale categorical 3D data, and SemLayoutDiff \citepsun2026semlayoutdiff applies multinomial discrete diffusion to a top-down semantic map. This family is closest to ours because it moves generation from unordered boxes toward explicit spatial fields. However, semantic-only spatial grids do not distinguish touching same-class instances, top-down maps collapse vertical structure, and a single class label per cell provides no direct orientation cue. Our representation keeps the grid advantage but upgrades each sliced cell into a structured RoomToken carrying semantic, instance-color, and facing fields. Graph coloring is used to assign instance colors during preprocessing, with the four-color theorem \citepappel1977every,robertson1997four providing the minimum number of colors needed for separating adjacent same-class instances. Similar coloring ideas have been studied for discriminative instance segmentation \citepkulikov2018instance,zhangfour, but remain largely unexplored as compact instance channels for generative modelling.
Discrete diffusion and masked token modeling. Masked discrete diffusion corrupts categorical data by replacing tokens with absorbing mask states and trains a denoiser to reverse that process. Multinomial and masked variants \citephoogeboom2021argmax,shi2024simplified,lou2024sedd,sahoo2024mdlm,nie2025llada have become effective for discrete sequences and token grids. Layout-specific diffusion models also use discrete or mixed discrete-continuous variables for structured 2D layouts and indoor scene attributes \citepchai2023layoutdm,inoue2023layoutdm,levi2023dlt,hui2023unifying,choi2026scenat, but these variables are often organized as layout tokens or object attributes rather than as per-cell scene occupancy fields. We extend masked discrete diffusion from a single semantic map or object-attribute tokenization to structured RoomTokens. MDiRT uses a multichannel parameterization for training, where semantic, instance-color, and facing values are denoised together under validity constraints and floor-plan conditioning.
3 Method

Figure 2: RoomToken data representation. (a) A 3D scene is represented as horizontal slices taken at selected vertical heights. (b) Each slice encodes three aligned 2D channels: semantic class, instance-color identity, and the facing field. Stacking these channels over all heights forms a sliced token volume. (c) The resulting 3D representation of stacked slices (RoomTokens) stores semantic, instance, and orientation information, with height derived from the slice index.

Figure 3: Overview of MDiRT. Given selected height slices and an architectural mask, we clamp the fixed room structure and denoise masked interior RoomTokens with a shared UNet with cross-slice attention. The denoiser predicts semantic, instance-color, and facing slices under semantic-gated validity constraints: architecture/background tokens carry no instance-color or facing cues, while furniture tokens do. The valid RoomToken grid is then grouped into object records, whose category, size, and pose are used to retrieve and place matched 3D assets.
Given a room type rr and an input architectural mask (arch mask), MDiRT generates a complete object-level 3D layout (Fig. 3). With our RoomToken representation, slices at different heights store semantic occupancy with instance and facing cues, allowing objects to be recovered from the grid tokens (Sec. 3.1). We use masked diffusion to generate interior RoomTokens while keeping the architectural tokens fixed (Sec. 3.2). At each reverse step, a multichannel denoising network gθg_{\theta} predicts the masked fields across height slices (Sec. 3.3). Finally, during scene assembly, the token grid is converted into object records and matching assets are retrieved for the final scene (Sec. 3.4).
3.1 Sliced RoomTokens
To recover object instances and poses from a discrete occupancy map, we encode each room as a stack of sliced RoomTokens. We discretize the floor plane into an H×WH\times W grid and use SS selected height slices 𝒵={ζ1,…,ζS}\mathcal{Z}=\{\zeta_{1},\ldots,\zeta_{S}\} to capture the vertical extent (Fig. 2). We choose these heights by greedy coverage over furniture height intervals in the training set: each object covers a candidate height hh if its vertical interval intersects [h−τ,h+τ][h-\tau,h+\tau], with τ=0.10\tau{=}0.10m matching the rasterization tolerance. Starting from fixed floor and ceiling anchors, we repeatedly add the candidate height that covers the most previously uncovered objects. We provide the specific grid size, slice heights, and other parameters in Sec. 4.1.
We index a token by i=(u,v,s)i=(u,v,s), where u∈{1,…,H}u\in\{1,\ldots,H\}, v∈{1,…,W}v\in\{1,\ldots,W\}, and s∈{1,…,S}s\in\{1,\ldots,S\}. Each grid location stores a token 𝐱i=(yi,ci,fi)\mathbf{x}_{i}=(y_{i},c_{i},f_{i}) with semantic class yiy_{i}, instance-color label cic_{i}, and facing label fif_{i}. Semantic labels use KsemK_{\mathrm{sem}} classes. The instance-color label is either one of CC instance colors or the none value ∅c\varnothing_{c}; the facing label is body, front, or the none value ∅f\varnothing_{f}. The three values must agree with the semantic class. Let YarchY_{\mathrm{arch}} denote architecture/background classes and YfurnY_{\mathrm{furn}} denote furniture classes. A RoomToken 𝐱i=(yi,ci,fi)\mathbf{x}_{i}=(y_{i},c_{i},f_{i}) is valid only if
valid(yi,ci,fi)⟺{ci=∅c and fi=∅f,yi∈Yarch,ci∈{0,…,C−1} and fi∈{body,front},yi∈Yfurn.\mathrm{valid}(y_{i},c_{i},f_{i})\Longleftrightarrow\begin{cases}c_{i}=\varnothing_{c}\text{ and }f_{i}=\varnothing_{f},&y_{i}\in Y_{\mathrm{arch}},\\ c_{i}\in\{0,\ldots,C-1\}\text{ and }f_{i}\in\{\mathrm{body},\mathrm{front}\},&y_{i}\in Y_{\mathrm{furn}}.\end{cases} (1)
This rule ties instance and facing cues to semantic occupancy: architecture/background tokens carry no attributes, while furniture tokens carry both instance color and facing labels.
3.2 Masked Diffusion over RoomTokens
Because the arch mask already specifies the room boundary, the diffusion process should generate only the unknown interior while leaving the observed architecture unchanged. To accomplish this, we use masked diffusion \citepshi2024simplified. In contrast to regular diffusion models that slowly add noise to the input, masked diffusion gradually replaces and hides the interior RoomToken labels with a mask token during the forward process. See Fig. 1 bottom for the reverse process.
Forward process. We formulate the forward masking process from a clean RoomToken cell 𝐱\mathbf{x} to the partially masked 𝐳t\mathbf{z}_{t} at time step tt as repeatedly sampling whether to keep the original token or replace it with a mask token. For our three channel RoomToken 𝐱i=(yi,ci,fi)\mathbf{x}_{i}=(y_{i},c_{i},f_{i}), we will use three mask tokens [M]y,[M]c,[M]f[\mathrm{M}]_{y},[\mathrm{M}]_{c},[\mathrm{M}]_{f}. We draw independent keep indicators mim_{i} for the semantic label, nin_{i} for the instance-color and facing labels from a Bernoulli distribution with keep probability α(t)\alpha(t): mi,ni∼Bernoulli(α(t))m_{i},n_{i}\sim\mathrm{Bernoulli}(\alpha(t)). Both instance-color and facing labels are revealed only when the semantic label is visible. The indicator ai=1a_{i}=1 marks fixed architectural cells, while ai=0a_{i}=0 marks cells to generate. For ρ∈{c,f}\rho\in\{c,f\}, let xic=cix_{i}^{c}=c_{i} and xif=fix_{i}^{f}=f_{i}. The forward mask process qt(𝐳t∣𝐱,𝐚)q_{t}(\mathbf{z}_{t}\mid\mathbf{x},\mathbf{a}) is
zt,iy\displaystyle z^{y}_{t,i} ={yi,if ai=1 or mi=1,[M]y,otherwise,\displaystyle=\begin{cases}y_{i},&\text{if }a_{i}=1\text{ or }m_{i}=1,\\ [\mathrm{M}]_{y},&\text{otherwise,}\end{cases} zt,iρ\displaystyle z^{\rho}_{t,i} ={∅ρ,if ai=1,xiρ,if ai=0 and mi=ni=1,[M]ρ,otherwise.\displaystyle=\begin{cases}\varnothing_{\rho},&\text{if }a_{i}=1,\\ x_{i}^{\rho},&\text{if }a_{i}=0\text{ and }m_{i}=n_{i}=1,\\ [\mathrm{M}]_{\rho},&\text{otherwise.}\end{cases} (2)
Equation 2 masks both attributes whenever an unfixed cell’s semantic label is masked, regardless of its ground-truth category. Sampling initializes all unfixed cells with all three fields masked, while the supplied architecture remains fixed.
Reverse process. The reverse process fills masked tokens by stepping from time tt to an earlier denoising time s<ts<t under the same constraints. We condition on κ=(r,𝐚)\kappa=(r,\mathbf{a}), where rr is the room type and 𝐚\mathbf{a} is the arch-mask indicator. Given the partially masked grid 𝐳t\mathbf{z}_{t}, time tt, and condition κ\kappa, the network gθ(𝐳t,t,κ)g_{\theta}(\mathbf{z}_{t},t,\kappa) predicts label probabilities for the semantic, instance-color, and facing fields. We use these probabilities to sample the proposal 𝐳^s\hat{\mathbf{z}}_{s}. We then restore fixed arch-mask tokens and project generated tokens to the valid RoomToken support:
𝐳s,i={𝐱i,ai=1,Πvalid(𝐳^s,i),ai=0.\mathbf{z}_{s,i}=\begin{cases}\mathbf{x}_{i},&a_{i}=1,\\ \Pi_{\mathrm{valid}}(\hat{\mathbf{z}}_{s,i}),&a_{i}=0.\end{cases} (3)
Here 𝐳^s\hat{\mathbf{z}}_{s} is the model proposal before projection, and Πvalid\Pi_{\mathrm{valid}} enforces the validity rule in Eq. 1 while preserving unresolved masks. This projection removes only invalid semantic–attribute combinations; it does not merge instances or change placement. We analyze the token validity before and after projection during denoising in App. B.
During denoising, within each reverse step, semantic labels are updated first, then instance-color and facing predictions are recomputed from the updated semantic state. Labels that are already revealed are retained. If the semantic label is masked, both instance-color and facing attributes remain masked. When architecture/background is revealed, the attributes are set to null. To summarize, a mask value denotes an unknown value, whereas null denotes an inapplicable attribute. This semantic-priority sampling occurs within one reverse process. See App. F for details.
3.3 Multichannel Denoising Network
We train a multichannel denoising network gθg_{\theta} to predict label probabilities for masked out tokens. The model gθg_{\theta} consists of a shared UNet UθU_{\theta} which processes the summed field embeddings across height slices, and three prediction heads (Dy,Dc,DfD_{y},D_{c},D_{f}) for the semantic, instance-color, and facing fields. At each cell ii, the three output heads produce the logits ℓiy,ℓic,ℓif\bm{\ell}_{i}^{y},\bm{\ell}_{i}^{c},\bm{\ell}_{i}^{f} that define the label probabilities used in Sec. 3.2.
Joint RoomToken denoising. The main denoising step predicts the RoomToken values from a single shared hidden representation 𝐡θ\mathbf{h}_{\theta}, conditioned on the room type rr and arch mask 𝐚\mathbf{a}. For channel embeddings Ey,Ec,EfE_{y},E_{c},E_{f}, shared UNet UθU_{\theta}, and output heads Dy,Dc,DfD_{y},D_{c},D_{f}, the embedding token 𝐞t,i\mathbf{e}_{t,i} at position ii for the denoised map at time tt is given by:
𝐞t,i=Ey(zt,iy)+Ec(zt,ic)+Ef(zt,if),for each grid location i,𝐡θ=Uθ(𝐞t;t,κ),ℓρi=Dρ(𝐡θ,i),ρ∈{y,c,f}.\begin{gathered}\mathbf{e}_{t,i}=E_{y}(z^{y}_{t,i})+E_{c}(z^{c}_{t,i})+E_{f}(z^{f}_{t,i}),\quad\text{for each grid location }i,\\ \mathbf{h}_{\theta}=U_{\theta}(\mathbf{e}_{t};\,t,\kappa),\quad\bm{\ell}^{\rho}_{i}=D_{\rho}(\mathbf{h}_{\theta,i}),\quad\rho\in\{y,c,f\}.\end{gathered} (4)
Here 𝐡θ,i\mathbf{h}_{\theta,i} is the hidden feature, ℓiρ\bm{\ell}^{\rho}_{i} the logits for channel ρ\rho, and κ=(r,𝐚)\kappa=(r,\mathbf{a}) the conditioning input. The clean 𝐱i\mathbf{x}_{i} and noisy 𝐳t,i\mathbf{z}_{t,i} variables are discrete categorical states; 𝐞t,i\mathbf{e}_{t,i} and 𝐡θ,i\mathbf{h}_{\theta,i} are continuous vectors, and the three decoders map the shared vector to categorical channel logits. Summed embeddings and a shared hidden state parameterize one RoomToken distribution rather than a semantic-then-attribute pipeline.
Cross-slice consistency. Cross-slice attention provides information exchange across height slices at the same floor location. The UNet treats the H×WH\times W grid as the spatial domain after concatenating SS slice embeddings per location. At attention resolutions, a cross-slice block reshapes each (u,v)(u,v) feature into SS tokens, applies attention along the slice dimension, and writes the result back through a residual projection. Thus, predictions for {(u,v,s):s=1,…,S}\{(u,v,s):s=1,\ldots,S\} exchange evidence about object extent and body/front alignment.
Cross-channel consistency. Cross-channel consistency makes instance-color and facing predictions depend on the semantic prediction. Instance-color and facing logits share the semantic backbone features, and the attribute branch is modulated by a semantic feature branch through learned gates and biases. This makes attributes semantic-aware within the same denoising step, while Sec. 3.2 enforces channel combinations are valid during sampling.
Training objective. The training objective supervises both token denoising and the geometric quantities needed for scene assembly. The main terms denoise the masked RoomToken channels, while auxiliary terms calibrate occupancy and the geometric heads used downstream. We optimize
ℒ=λyℒy+λclsℒcls+λcℒc+λfℒf+λoccℒocc+λattrℒattr.\mathcal{L}=\lambda_{y}\mathcal{L}_{y}+\lambda_{\mathrm{cls}}\mathcal{L}_{\mathrm{cls}}+\lambda_{c}\mathcal{L}_{c}+\lambda_{f}\mathcal{L}_{f}+\lambda_{\mathrm{occ}}\mathcal{L}_{\mathrm{occ}}+\lambda_{\mathrm{attr}}\mathcal{L}_{\mathrm{attr}}. (5)
Here, each λ\lambda is a scalar weight. ℒy\mathcal{L}_{y} is masked cross-entropy over semantic classes, while ℒcls\mathcal{L}_{\mathrm{cls}} is an object-count-balanced semantic class loss for the long-tailed furniture distribution. It applies fixed inverse-square-root weights computed from training object counts, keeps architecture/background weights at one, averages semantic cross-entropy over the cells of each ground-truth object, and then averages over objects. This gives rare categories and small instances comparable influence to common or large furniture. ℒc\mathcal{L}_{c} and ℒf\mathcal{L}_{f} are masked cross-entropy losses for instance-color and facing labels on visible furniture cells. ℒocc\mathcal{L}_{\mathrm{occ}} is binary cross-entropy with logits on foreground occupancy derived from the semantic logits. ℒattr\mathcal{L}_{\mathrm{attr}} groups instance-level mean-squared regression losses for yaw (cosθ,sinθ)(\cos\theta,\sin\theta), height, and vertical offset from instance-pooled features. See Sec. D.2 for details.
3.4 Inference and Scene Assembly
At inference, architectural cells from the input arch mask are clamped throughout the reverse process, and MDiRT samples semantic, instance-color, and facing slices for the furnished interior. Because these architectural tokens are never overwritten, the masked discrete diffusion design preserves the architectural condition throughout generation, enabling the model to learn furniture layouts within the valid room interior. In our experiments (Sec. 4.2), we show that there are zero out-of-bounds errors after final asset placement.
We group connected RoomTokens with the same semantic and instance-color labels into object instances. Their tokens determine category, horizontal center, and horizontal dimensions; body/front labels indicate orientation. MLP heads within MDiRT use denoising features averaged over each instance mask to predict continuous height and vertical offset, with a yaw head providing orientation when body/front labels do not determine it. We instantiate the final scene by retrieving appropriate 3D assets from 3D-FUTURE \citepfu20213dfuture. For each object, we query the 3D database with the object category and select the closest asset based on the 3D extents. The retrieved asset is scaled along each axis to match the estimated extents, rotated to the predicted yaw, and translated to the recovered object position. We use the same category- and size-based asset retrieval and placement process as SemLayoutDiff. After asset placement, there is no clipping, extra optimization, or any hand-designed scene correction. Appendix F details assembly and the grouping/orientation procedures for the field-removal ablations.
4 Experiments
We evaluate architecture-conditioned generation against recent diffusion methods. Ablations and a user study assess design choices and perceived quality.
4.1 Experimental Setup
Dataset. We train and evaluate on 3D-FRONT \citepfu20213dfront following splits established in prior work \citeppaschalidou2021atiss with 4,496 train / 274 val / 390 test rooms over three room types (bedroom, living room, and dining room).
Model details. Following SemLayoutDiff \citepsun2026semlayoutdiff, we train all methods as a single unified model across room types rather than one model per room type. Each scene is rasterized on a 128×128128{\times}128 floor-plane grid, where one pixel/token has side length 0.100.10 m in the horizontal plane. The grid is repeated over S=8S{=}8 fixed height slices at (0.02,0.45,0.80,1.20,1.60,2.00,2.40,2.70)(0.02,0.45,0.80,1.20,1.60,2.00,2.40,2.70) m, which are selected once by greedy coverage analysis with a 0.100.10 m vertical tolerance. For MDiRT, RoomTokens use Ksem=39K_{\mathrm{sem}}{=}39 semantic classes, C=3C{=}3 instance colors plus ∅c\varnothing_{c}, and body/front/∅f\varnothing_{f} facing labels; valid semantic–instance-color–facing triples are flattened into a 209-id palette for visualizations and the single-channel ablation. See Sec. D.1 for model details and App. E for data processing details.
Baselines. We compare DiffuScene \citeptang2024diffuscene (continuous diffusion), MiDiffusion \citephu2026mixed (mixed discrete-continuous diffusion), and SemLayoutDiff \citepsun2026semlayoutdiff (semantic-map diffusion), all trained as unified models on the same 3D-FRONT split. We also retrain a SemLayoutDiff variant that retains multinomial diffusion while fixing exterior, door, and window pixels during training and sampling, restricting furniture to valid floor regions. We follow SemLayoutDiff’s generation and evaluation procedures and reproduce their reported results for baselines.
Metrics. Following prior work \citepsun2026semlayoutdiff, we use FID and KID to assess rendered layout fidelity and CKL to compare object-category distributions against the 3D-FRONT test set. We introduce Pair-Rel to compare object-pair categories and spatial relations. For physical plausibility, we report out-of-boundary rates for scenes (OOBS) and objects (OOBO), object collisions (COL), navigability (NAV), and our door/window opening-clearance metric (OC). We also report the mean number of objects per scene (#Obj.). Metric definitions and computation details are in App. A. All scene-quality metrics are computed after asset retrieval, scaling, rotation, and placement, using the same 3D-FUTURE assets, SceneToolkit rendering, and evaluation scripts as SemLayoutDiff. No subsequent clipping, optimization, or hand-designed scene correction is applied.
4.2 Results and Analysis
Physical validity with competitive layout quality.
Table 1: Quantitative comparison on 3D-FRONT. Results are mean ±\pm standard deviation across 5 randomly sampled seeds during inference, with each trained model fixed. KID is reported as KID×103\times 10^{3} and CKL as CKL×102\times 10^{2}. Best mean values are bold and second-best values are italic.
Distribution / Composition Spatial / Physical Plausibility
Method FID↓\downarrow KID↓\downarrow CKL↓\downarrow Pair-Rel↓\downarrow #Obj. OOBS↓\text{OOB}_{S}\!\downarrow OOBO↓\text{OOB}_{O}\!\downarrow COL↓\downarrow NAV↑\uparrow OC↑\uparrow
DiffuScene [Tang et al.(2024)Tang, Nie, Markhasin, Dai, Thies, and Nießner] 88.52 ±\pm 0.35 30.15 ±\pm 0.42 20.49 ±\pm 0.28 32.38 ±\pm 0.95 8.71 ±\pm 0.15 66.35 ±\pm 0.48 20.15 ±\pm 0.31 41.06 ±\pm 0.44 94.22 ±\pm 0.25 59.58 ±\pm 1.05
MiDiffusion \citephu2026mixed 93.63 ±\pm 0.41 30.95 ±\pm 0.37 37.05 ±\pm 0.22 40.52 ±\pm 0.46 7.42 ±\pm 0.18 60.55 ±\pm 0.39 34.78 ±\pm 0.98 51.51 ±\pm 0.29 96.28 ±\pm 0.33 75.82 ±\pm 0.47
SemLayoutDiff \citepsun2026semlayoutdiff 71.18 ±\pm 0.34 8.52 ±\pm 0.26 4.85 ±\pm 0.19 20.65 ±\pm 0.43 7.96 ±\pm 0.12 16.71 ±\pm 0.38 6.55 ±\pm 0.21 16.24 ±\pm 0.92 96.45 ±\pm 0.27 56.02 ±\pm 0.45
SemLayoutDiff (arch. clamped) 73.45 ±\pm 0.36 10.63 ±\pm 0.24 4.51 ±\pm 0.17 22.15 ±\pm 0.41 7.32 ±\pm 0.14 0.41 ±\pm 0.08 0.35 ±\pm 0.05 40.89 ±\pm 0.49 95.25 ±\pm 0.31 65.48 ±\pm 1.02
Ours 50.14 ±\pm 0.27 10.35 ±\pm 0.21 6.81 ±\pm 0.66 12.09 ±\pm 0.07 8.25 ±\pm 0.18 0.00 ±\pm 0.00 0.00 ±\pm 0.00 12.64 ±\pm 0.34 99.25 ±\pm 0.24 82.31 ±\pm 0.34
We compare output from MDiRT against baselines with scenes generated from five different randomly sampled seeds. Table 1 shows that MDiRT achieves a better FID than SemLayoutDiff (50.14 vs. 71.18) and comparable KID/CKL (10.35/6.81 vs. 8.52/4.85), demonstrating competitive distribution learning. It also performs best across all spatial plausibility metrics: lower Pair-Rel (12.09) indicates more plausible object relations, zero OOB after asset placement confirms boundary compliance, lower COL (12.64) reflects fewer intersections, higher NAV (99.25) indicates better free-space connectivity, and higher OC (82.31) indicates better clearance around openings. The average of 8.25 objects per scene for MDiRT, compared with 7.96 for SemLayoutDiff and 9.39 in the ground truth, confirms that the gains are not due to sparse layouts.
FID and KID compare rendered feature distributions using different statistics; CKL compares category frequencies. None directly measures 3D collisions, opening clearance, or quality of the scene. We therefore also assess object relations, physical plausibility, and human preference.
SemLayoutDiff with architecture clamping reduces OOB but raises COL from 16.24 to 40.89 because its reverse process denoises random semantic values rather than masked furniture under a fixed architecture. Clamping also cannot account for geometry added during grouping, retrieval, and rotation, so some objects remain partially outside the room. By jointly modeling arch-conditioned semantic, instance-color, and facing slices, MDiRT achieves zero OOB while retaining low collision with small variation in COL and OC across runs.
MDiRT reduces visible layout failures.
Figure 4 shows that the quantitative improvements are visible in the generated layouts: baseline methods can place objects across boundaries, collide nearby furniture, or block architectural openings such as doors and windows, while MDiRT better preserves clear openings, room geometry, and object structure. See App. G for additional results.

Figure 4: Arch-mask-conditioned qualitative comparison on 3D-FRONT. We use semantic orthographic views to focus the comparison on layout evaluation. Baselines show boundary violations, collisions, or blocked door/window openings, while MDiRT preserves clear openings, room geometry, and structured object cues.
Table 2: Ablations for MDiRT. Best values are in bold.
Distribution / Composition Spatial / Physical Plausibility
Configuration FID↓\downarrow KID↓\downarrow CKL↓\downarrow Pair-Rel↓\downarrow #Obj. OOBS↓\text{OOB}_{S}\!\downarrow OOBO↓\text{OOB}_{O}\!\downarrow COL↓\downarrow NAV↑\uparrow OC↑\uparrow
Multichannel training (MDiRT) 49.84 10.41 6.43 12.13 8.36 0.00 0.00 12.75 99.30 82.04
w/o class balancing 74.77 34.18 21.31 20.03 6.31 0.00 0.00 37.73 96.58 76.20
w/o multichannel (single-channel) 95.35 34.91 30.05 48.32 7.12 0.00 0.00 49.30 95.74 66.40
w/o semantic-priority sampling 88.21 28.74 32.40 34.54 7.84 0.00 0.00 58.81 73.07 54.90
w/o instance-color field 98.73 36.42 51.96 37.32 9.41 0.00 0.00 88.77 83.52 48.30
w/o facing field 84.92 26.18 28.62 36.63 8.96 0.00 0.00 89.07 75.69 50.70
w/o cross-slice attention 91.05 31.27 37.82 34.78 9.18 0.00 0.00 89.01 87.16 55.60
Ablation and failure analysis. We conduct ablation experiments on our model to determine the impact of different components (Tabs. 2 and 3). All ablation models are trained from scratch with the same data split and training settings, changing only the specified component. All use the architectural condition and the same scene assembly, rendering, and evaluation procedure.
Class balancing and multichannel prediction. Without class balancing (ℒcls\mathcal{L}_{\text{cls}}), object count falls from 8.36 to 6.31 and CKL rises from 6.43 to 21.31, yielding sparser scenes with less accurate category frequencies. Combining the three fields into one categorical token, with all eight slices retained, raises FID from 49.84 to 95.35 and Pair-Rel from 12.13 to 48.32, supporting multichannel prediction.
Instance color and facing. Removing the instance-color field raises COL to 88.77, indicating less reliable separation of object instances. Removing the facing field raises COL to 89.07 and lowers NAV from 99.30 to 75.69, indicating more overlap and less navigable scenes. Without instance color, connected same-category tokens form one instance. Without facing, an auxiliary head predicts the orientation from instance features (App. F). These comparisons support retaining instance separation and orientation cues.
Cross-slice attention and sampling. Removing cross-slice attention raises COL from 12.75 to 89.01, showing its importance for avoiding object intersections. Without semantic-priority sampling, COL rises to 58.81 and OC falls to 54.90, supporting the prediction of categories before instance-color and facing fields.
Table 3: MDiRT ablations of representation, instance colors, diffusion, and architectural clamping. KID and CKL are scaled by 10310^{3} and 10210^{2}. Best values are bold.
Variant settings Distribution / Composition Spatial / Physical Plausibility
Representation Instance colors Diffusion Clamping FID↓\downarrow KID↓\downarrow CKL↓\downarrow Pair-Rel↓\downarrow #Obj. OOBS↓\text{OOB}_{S}\!\downarrow OOBO↓\text{OOB}_{O}\!\downarrow COL↓\downarrow NAV↑\uparrow OC↑\uparrow
Multi-slice (full) 3 Masked On 49.84 10.41 6.43 12.13 8.36 0.00 0.00 12.75 99.30 82.04
Single-slice (top-down) 3 Masked On 62.57 18.64 11.11 9.02 6.08 0.00 0.00 13.75 97.35 74.67
Top-down semantic map – Masked On 54.69 8.89 10.15 13.97 7.03 0.00 0.00 19.50 97.59 74.97
Multi-slice 4 Masked On 58.03 14.06 9.74 8.40 6.67 0.00 0.00 17.49 97.26 67.74
Multi-slice 3 Masked Off 57.61 14.02 8.71 8.98 6.59 1.17 0.18 17.64 97.44 70.94
Multi-slice 3 Multinomial On 70.57 16.14 5.32 11.02 8.00 0.03 0.0042 32.16 93.10 62.53
Multi-slice 3 Multinomial Off 70.14 18.59 12.92 16.78 8.67 34.60 15.88 17.74 96.09 69.65
Multi-slice vs. single-slice RoomTokens. The single-slice variant projects the scene into one top-down map. Multi-slice RoomTokens generate more objects (8.36 vs. 6.08) yet achieve higher OC (82.04 vs. 74.67) and lower COL (12.75 vs. 13.75). Thus, retaining vertical information improves physical plausibility without relying on sparser scenes.
RoomTokens versus semantic maps. With masked diffusion and clamping fixed, multi-slice RoomTokens have lower COL (12.75 vs. 19.50) and higher OC (82.04 vs. 74.97) than top-down semantic maps using SemLayoutDiff’s attribute prediction model (APM), despite generating more objects (8.36 vs. 7.03). This supports encoding instance color, facing, and vertical information for physical plausibility.
Three versus four instance colors. Four instance colors expand valid semantic–instance-color–facing combinations from 209 to 277, adding embedding entries and output channels for combinations unused when three colors suffice. Four colors improve Pair-Rel but worsen COL (12.75 to 17.49) and OC (82.04 to 67.74), supporting the three-color choice. Appendix C provides instance-separation diagnostics.
Diffusion and architectural clamping. With clamping, masked diffusion has lower COL (12.75 vs. 32.16) and higher OC (82.04 vs. 62.53) than multinomial diffusion. Removing clamping raises scene OOB from 0.00% to 1.17% for masked diffusion and from 0.03% to 34.60% for multinomial diffusion. Clamping reduces OOB in both models but raises collisions for multinomial diffusion; masked diffusion with clamping achieves zero OOB and the lowest COL.
Failure cases. Figure 5 shows representative failures: implausible furniture arrangements, object–object intersections, and blocked doorways. Valid RoomTokens and in-boundary placement do not guarantee functional arrangements or sufficient clearance in the generated scene.
User study. We ask participants to rank scenes based on architectural fidelity and feasibility of object arrangements. Each participant is shown 20 sets of four generated scenes from different methods. The scenes are randomized, and users are asked to rank the scenes from best to worst. We had 12 participants in the user study. Overall, participants ranked MDiRT best on average (Table 4). This preference is significant against every baseline with paired Wilcoxon tests after Holm correction (p=0.001
Images from the source



