Abstract
Generating complex images with multiple interacting objects remains a significant challenge for current text-to-image models. We present DisCo (Disentangled Composition), a framework that leverages structured scene graphs to disentangle spatial layouts from interactive semantics. By employing a Semantics-Layout Variational AutoEncoder (SL-VAE) and Compositional Masked Attention (CMA), DisCo achieves superior fidelity in representing intricate object relationships and prevents attribute leakage, outperforming existing state-of-the-art methods on standard benchmarks like Visual Genome.
Introduction
Current state-of-the-art text-to-image (T2I) models often struggle with "relationship and quantity confusion" when processing complex prompts involving multiple objects. While layout-to-image (L2I) methods provide spatial constraints via bounding boxes, they frequently fail to capture non-spatial interactions (e.g., a dog "chasing" a cat) because objects are processed independently. Existing Scene-Graph-to-Image (SG2I) approaches often suffer from rigid mappings and limited diversity. DisCo addresses these limitations by treating the scene graph as a structured guide that separates "where" objects are from "what" they are doing.
Methodology: The DisCo Framework
The core innovation of DisCo lies in its ability to break down the generation process into three distinct components:
- Semantics-Layout Variational AutoEncoder (SL-VAE): Unlike traditional methods that map graphs directly to layouts, DisCo uses a VAE to disentangle the scene graph into explicit spatial layouts and implicit interactive semantics. This stochastic approach enables a "one-to-many" mapping, allowing a single scene graph to generate diverse, valid layouts.
- Compositional Masked Attention (CMA): To combat "attribute leakage"—where characteristics of one object bleed into another—CMA implements object-level masking. This ensures visual tokens only attend to the specific semantic embeddings and attributes relevant to their assigned object.
- Multi-Layered Sampler (MLS): MLS treats each object as a separate layer during denoising, facilitating isolated image editing. Users can add or modify scene graph nodes without disrupting the visual consistency of the rest of the image.
Experimental Results
DisCo was evaluated on the COCO-Stuff and Visual Genome (VG) datasets. On Visual Genome, DisCo achieved a Fréchet Inception Distance (FID) of 21.9, a significant improvement over previous scene-graph methods like R3CD (23.4) and SGDiff (26.0).
Qualitatively, DisCo excels at generating scenes with unusual spatial relationships, such as "a boat on the grass," which typically confuse standard diffusion models. It also demonstrates high precision in object counting and attribute consistency, effectively preventing color bleeding between adjacent objects.
Discussion and Conclusion
The success of DisCo underscores the importance of disentanglement in complex image synthesis. By separating spatial constraints from abstract interactions, the model learns the underlying logic of scene composition rather than simple memorization. While challenges remain regarding extremely dense graphs and the need for high-quality input graphs, DisCo represents a significant step toward more controllable and generalizable image generation. Future work will explore integrating finer-grained attribute controls like texture and lighting into the disentangled streams.
Summary updated