TL;DR
This paper introduces SceneGraphGen, a novel auto-regressive model for generating semantic scene graphs unconditionally. By learning the underlying structure of real-world scenes, SceneGraphGen can create diverse and realistic scene graphs, which are then shown to be useful for image synthesis, anomaly detection, and scene completion tasks.
What Problem Does This Paper Address?
Generating complex, multi-object scenes with intricate relationships remains a significant challenge in computer vision, even with advancements in single-object or single-domain image generation. While images are a direct representation of scenes, they can be difficult for models to learn from directly due to their high dimensionality and implicit structure. Scene graphs, which represent scenes as nodes (objects) and directed edges (relationships), offer a more semantically grounded and structured representation. However, the task of unconditionally generating these rich scene graphs, without relying on an input image, is largely unexplored. This paper aims to fill this gap by developing a generative model that can learn and produce realistic semantic scene graphs from scratch.
Methods
The core of the proposed solution is SceneGraphGen, a deep auto-regressive model designed to learn the probability distribution of semantic scene graphs. The model treats scene graphs as sequences of nodes and edges. It employs a hierarchical recurrent architecture, specifically using Gated Recurrent Units (GRUs), to sequentially generate scene graphs.
The generation process is broken down into three stages:
- History Encoding: A GRU (gGRU) captures the information from previously generated nodes and edges.
- Node Generation: A Multi-Layer Perceptron (MLP) uses the encoded history to predict the category of the next object node.
- Edge Generation: Another set of GRUs (eGRUs) generates the relationship edges, conditioned on the current node and the history. This stage is "node-aware," meaning it uses information about the nodes themselves to inform edge generation, which is a key novelty.
The model is trained using teacher forcing and a cross-entropy loss. For evaluation, they introduce a Maximum Mean Discrepancy (MMD) metric adapted with random-walk and object-set kernels to compare the distributions of generated and real scene graphs.
Datasets
- Visual Genome (VG): This dataset is used for both training and evaluating the SceneGraphGen model. The authors use a specific split containing 150 object categories and 50 relationship categories. They also mention populating edges using the Unbiased causal TDE model from the SGG benchmark to address incompleteness in the original dataset.
Key Insights and Ideas
- Scene Graphs as a Semantic Bridge: The paper strongly advocates for scene graphs as a more semantically rich representation than raw images for understanding and generating complex scenes. They hypothesize that learning from scene graphs can lead to better capture of object interactions and abstract semantic concepts.
- Unconditional Generation is Key: By focusing on unconditional generation, the model learns the inherent structure and co-occurrence patterns of real-world scenes without being biased by specific input images. This allows for the creation of novel, plausible scenes.
- Node-Aware Edge Generation: A crucial innovation is conditioning edge generation on node information. This acknowledges that relationships are often dependent on the specific objects involved, leading to more accurate and semantically consistent graph structures.
- Auto-Regressive Sequence Modeling for Graphs: Treating graphs as sequences allows the application of powerful recurrent neural network architectures, enabling the model to handle variable graph sizes and complex dependencies.
- MMD for Graph Evaluation: The development and validation of MMD with specialized kernels (random-walk and object-set) provide a robust quantitative method for evaluating the quality and diversity of generated scene graphs, addressing a gap in existing evaluation metrics.
Key Results
- Quantitative Evaluation: SceneGraphGen outperforms the baseline GraphRNN on graph-based metrics (MMD node and MMD graph), indicating more realistic and diverse scene graph generation. For instance, SceneGraphGen with hierarchical ordering achieved an MMD graph of 0.63, compared to GraphRNN's 1.2.
- Image Synthesis: Images generated by translating SceneGraphGen's output using an off-the-shelf graph-to-image model (sg2im) are qualitatively comparable to those generated from ground truth scene graphs and outperform unconditional image generation models like StyleGAN2 in capturing semantic properties and object diversity.
- Anomaly Detection: The model's learned likelihood distribution effectively identifies anomalous scene graphs, showing a clear separation between ground truth and corrupted datasets.
- Scene Graph Completion: SceneGraphGen can successfully complete partial scene graphs, demonstrating its ability to generate guided and diverse scene structures.
Limitations and Future Work
- Ordering Bias: While random ordering performed best, the paper notes that BFS and hierarchical ordering can be biased by node connectivity and semantics, which might not be ideal for highly diverse, "in-the-wild" datasets.
- Conditional Generation: The authors suggest that future work should explore conditional variants of the model, such as using text descriptions to constrain scene generation. This would allow for more targeted and controllable scene synthesis.
- Dataset Statistics: While the generated graphs show similar patterns to ground truth, there are still minor differences in object and relationship occurrences, suggesting room for improvement in capturing fine-grained statistics.
Summary updated