Introduction
While humans naturally perceive the world as a hierarchy—a car is made of wheels and a body, which are in turn made of smaller components—most AI models do not. Current "object-centric" models excel at segmenting a scene into individual objects, but they usually treat those objects as "flat" entities, lacking an internal understanding of how parts compose an object.
Existing attempts to learn these hierarchies typically suffer from one of three flaws: they require manual labels for parts, they only work on images containing a single isolated object, or they struggle with occlusion (where one part hides another). Generative Scene Graph Networks (GSGN) address these issues by learning part-whole relationships jointly and end-to-end from complex, multi-object scenes without any human-provided labels. By representing scenes as tree-structured probabilistic graphs, the model enables both precise unsupervised decomposition and controllable, "graphics-engine-style" scene generation.
Methods
GSGN is formulated as a Variational Autoencoder (VAE) where the latent space is structured as a tree—specifically, a probabilistic scene graph.
- The Latent Tree: Each node in the tree represents an entity (a part, an object, or the whole scene). Nodes store appearance variables, while the edges between them store pose variables (affine transformations like rotation, scale, and translation).
- Recursive Inference: To "understand" an image, the model uses a top-down approach. It first identifies high-level objects and then recursively "zooms in" using spatial attention to identify the constituent parts of each object.
- Top-Down Priors: A key innovation is the use of a learned prior. When a part is partially hidden (occluded), bottom-up image features are often ambiguous. GSGN uses top-down information from the parent node (the "object" level) to help the model infer the presence and properties of occluded parts.
- Differentiable Rendering: The decoder acts like a simplified graphics engine. It takes the primitive parts and recursively applies the latent transformations to compose them into objects and, finally, the full scene. Because this process is differentiable, the model can learn "inverse graphics" simply by trying to reconstruct the input image.
Datasets
The researchers evaluated GSGN on three main benchmarks:
- 2D Shapes: A compositional version of the Multi-dSprites dataset.
- Compositional CLEVR: A new, challenging 3D dataset introduced in this paper. It features objects (like a "dumbbell" or "tripod") made of primitive shapes (spheres, cylinders, cubes) with varying colors and materials.
- Seven-part Compositional CLEVR: An even more complex version used to test the model's scalability.
Key Insights and Results
- Occlusion Robustness: The hierarchy provides a powerful inductive bias. By combining bottom-up visual evidence with top-down structural expectations, GSGN can identify parts that are almost entirely hidden—a task where non-hierarchical models fail significantly. In scenarios where parts had fewer than 100 visible pixels, GSGN maintained high recall (~98%), while the non-hierarchical baseline dropped to ~86%.
- Symbolic Manipulation: Because the latent variables (pose and appearance) are disentangled and interpretable, the scene graph can be manually edited. Users can swap a part of an object, change its scale, or move an entire object while keeping its internal part-structure intact.
- Data Efficiency: In downstream classification tasks (e.g., counting specific types of parts), GSGN-trained representations were roughly twice as data-efficient as those from non-hierarchical models.
- Decomposition and Generation: GSGN achieved near-perfect object and part counting accuracy (~98-99%) on both 2D and 3D datasets. Furthermore, the model can sample entirely novel, physically plausible objects and scenes from its learned prior, demonstrating a true generative understanding of compositionality.
Limitations and Future Work
While a major step forward, the authors note a few areas for growth:
- Fixed Depth: In these experiments, the tree depth was manually set to three levels (scene, object, part). Real-world hierarchies are often deeper and more fluid. Future versions could use recurrent modules to dynamically determine how deep the scene graph needs to be for a given image.
- Complexity: While Compositional CLEVR is a step up from standard benchmarks, scaling to "in-the-wild" natural images with complex textures and irregular shapes remains an open challenge.
Summary updated