Abstract
Generating complex images with multiple interacting objects remains a significant challenge for traditional text-to-image synthesis models. This paper introduces a novel end-to-end pipeline that generates images from scene graphs—structured representations where nodes represent objects and edges define their relationships. By explicitly modeling these spatial and semantic connections through graph convolutions and a cascaded refinement network, the proposed method produces realistic images that significantly outperform existing text-based generative models in complex scenarios.
Introduction
While recent advancements in text-to-image synthesis have produced impressive results for simple prompts, these models often fail when tasked with generating "busy" scenes involving multiple objects with specific spatial constraints. Natural language, being a linear structure, is often insufficient for describing the intricate relational and spatial layout of a visual scene. For instance, a prompt like "a person riding a horse next to a tree with a dog sitting under it" frequently results in a loss of spatial coherence in standard models.
To address this, the authors propose using scene graphs as an intermediate representation. Scene graphs allow for the explicit definition of objects (e.g., "sheep") and their relationships (e.g., "standing on grass"), providing a more suitable foundation for visual synthesis.
Methodology
The proposed architecture consists of four primary stages designed to transform a graph-based input into a high-fidelity image:
- Graph Convolutional Network (GCN): The input scene graph is processed by a GCN, which enables nodes to incorporate information from their neighbors. This allows the model to compute object embeddings that are contextually aware of their relationships (e.g., a "man" node's representation is influenced by the "riding" relationship to a "horse" node).
- Scene Layout Prediction: Using the context-aware embeddings, the model predicts bounding boxes and segmentation masks for each object. These individual components are aggregated to form a "scene layout," a 2D spatial map of the intended image.
- Cascaded Refinement Network (CRN): The scene layout is passed through a CRN, a series of modules that progressively increase spatial resolution, transforming the abstract layout into a 64x64 or 128x128 pixel image.
- Adversarial Training: The model is trained using two discriminators: an Image Discriminator to ensure global realism and an Object Discriminator that focuses on the realism of individual cropped objects, ensuring that generated entities maintain recognizable forms.
Experiments and Results
The model was evaluated on the Visual Genome and COCO-Stuff datasets. Since COCO does not natively include scene graphs, the authors synthesized them based on spatial overlaps in object annotations.
Key findings include:
- Superior User Preference: In human evaluations via Amazon Mechanical Turk, users preferred the scene-graph-generated images over the state-of-the-art StackGAN in 67.6% of cases.
- Improved Object Recognition: Objects in the generated images were significantly more recognizable, showing a 65% relative improvement in "thing" category recognition compared to StackGAN.
- Handling Complexity: The model successfully managed complex constraints, such as "a bus behind another bus," which typically cause text-to-image models to merge distinct objects.
Discussion and Conclusion
The success of this approach highlights that explicitly modeling relationships is crucial for generating logically consistent scenes. Ablation studies confirmed that removing relationship data led to failures in object placement. Furthermore, the use of Graph Convolutions allows the model to perform high-level reasoning about the scene's global context before generating pixels.
Despite these strengths, limitations remain. The current output resolution (up to 128x128) lacks fine-grained texture, and the model struggles with highly cluttered indoor environments. Future work may focus on bridging the "graph gap" by developing robust models to automatically convert natural language into scene graphs, enabling a seamless end-to-end user experience.
Summary updated