TL;DR
This paper introduces COLoR (Contextualized Objects Layout Refiner), a novel method for generating images from scene graphs by predicting full-resolution object layouts jointly rather than independently. By shifting from strict supervised losses to adversarial pair-wise relationships and using a stacked layout refinement network, the model eliminates object overlap, dramatically increases layout coverage, and produces more realistic, diverse images.
What Problem Does This Paper Address?
Generating realistic images from textual descriptions is a major goal in computer vision. While standard text-to-image models work well for simple prompts, they struggle with complex scenes containing multiple objects and intricate relationships. To solve this, researchers use Scene Graphs (SGs)—structured representations where nodes represent objects and edges define their relationships (e.g., "dog right of person").
Traditional SG-to-image pipelines typically predict intermediate bounding boxes and segmentation masks for each object independently before rendering the final image. However, because a single scene graph can correspond to many different valid images, standard supervised learning forces models to predict the "average" position and shape of objects. This independent, mean-seeking approach leads to severe issues: objects frequently overlap, large areas of the image remain empty (low coverage), and the resulting layouts are blurry and lack diversity.
Methods
The authors propose COLoR (Contextualized Objects Layout Refiner), an architecture that discards intermediate bounding box and mask predictions entirely, generating full-resolution scene layouts directly from graph embeddings.
Key components include:
- Layout Refinement Network (LRN): Instead of processing objects in isolation, COLoR uses a series of LRN blocks. Each block upsamples the object representations and applies a modified Graph Convolutional Layer (GCL) that uses 2D convolutions instead of traditional dense layers. This allows the network to contextualize the shape and position of every object relative to all others at multiple spatial resolutions.
- Pairwise Layout Discriminator: To encourage diversity and spatial awareness without relying on rigid ground-truth coordinates, the authors introduce an adversarial discriminator. It evaluates pairs of neighboring objects to ensure their generated layouts look realistic and accurately reflect the relationship specified in the scene graph.
- Layout Coverage Regularization: The model is trained with a dedicated loss function ($L_{reg} = L_{coverage} + \lambda L_{overlap}$) that explicitly penalizes empty pixels and overlapping object boundaries, forcing the generator to efficiently utilize the entire image canvas.
Datasets
The model was trained and evaluated on the COCO-STUFF dataset, a widely used benchmark for scene graph-to-image synthesis that includes 91 "stuff" categories (like sky, grass, and roads) alongside standard object annotations.
Key Insights and Ideas
- The Pitfall of Maximum Likelihood: The authors identify that standard supervised losses (like mean squared error on box coordinates) are fundamentally flawed for under-specified tasks like SG-to-image generation. Because an SG doesn't specify exact coordinates, supervised models default to predicting a blurry average of all possible layouts.
- Contextualization is Key: By allowing object layouts to "talk" to each other during the upsampling process via 2D graph convolutions, the model naturally learns to negotiate boundaries—filling empty spaces and avoiding overlaps dynamically.
Key Results
COLoR achieves significant quantitative and qualitative improvements over previous state-of-the-art baselines like SG2Im and Grid2Im:
- Layout Quality: Layout coverage (COV) jumped to 0.99 (compared to 0.76 for SG2Im), while object overlap (OVL) dropped to 0.0.
- Semantic Correctness: The Geometric Relation Score (GRS), which measures how well the final layout respects the scene graph's instructions, reached 0.97.
- Image Realism and Diversity: When paired with a SPADE generator, COLoR achieved a superior Frechet Inception Distance (FID) of 95.8 and demonstrated measurable output diversity (DIV score of 0.13), whereas baseline models showed virtually zero diversity when generating multiple images from the same graph.
Limitations and Future Work
- Cold-Start Sensitivity: The authors note that relying solely on adversarial and coverage losses causes the model to fail to learn coherent structures early in training. They mitigated this by keeping a small, weakly-weighted supervised object layout loss to stabilize early training stages.
- Computational Constraints: Evaluating every single pair of objects in large scene graphs within the LRN layers is computationally expensive. To keep the model tractable, the authors had to sample a random subset of layout pairs during training, suggesting that scaling to highly complex graphs remains an open engineering challenge.
Summary updated