Abstract
Deep Generative Models (DGMs) have demonstrated remarkable success in generating realistic textures, yet they often struggle with the global structural coherence required for complex scenes. This paper introduces Deep Structured Generative Models, a framework that integrates the hierarchical structural power of stochastic grammars with the photorealistic rendering of DGMs. By utilizing a Stochastic And-Or Graph (sAOG) to explicitly model scene layouts and a refinement network for pixel-level generation, the authors achieve significantly better control and realism compared to standard GANs or VAEs. Evaluated on the CLEVR dataset, the model demonstrates the ability to maintain precise spatial and semantic relationships while enabling high-fidelity scene synthesis and surgical editability.
Introduction
While Deep Generative Models like GANs excel at capturing local patterns, they frequently fail when tasked with creating complex scenes involving multiple objects with specific spatial relationships. Standard models typically map a flat vector of random noise directly to image space, a "black box" approach that makes it difficult to learn hierarchical scene structures. Conversely, classical "image grammar" models are excellent at defining these hierarchies but lack the expressive ability to generate realistic textures. This research bridges the gap by combining structural logic with deep learning's visual fidelity.
Methodology
The proposed framework employs a three-stage pipeline to synthesize images from structured representations:
- Layout Generation (The Grammar): The system uses a Stochastic And-Or Graph (sAOG) to represent the scene. And-nodes decompose a scene into specific objects and their spatial relations (e.g., "front," "right"), while Or-nodes represent categorical choices, such as object types. This results in a "parse graph" defining a 3D configuration.
- Projection: The 3D bounding boxes and attributes (color, material, orientation) from the parse graph are projected into a 2D "instance map," which serves as a coarse blueprint for the final image.
- Image Refinement (The DGM): A modified pix2pix model (a U-Net-based GAN) translates the instance map into a realistic image. To allow for flexible object shapes, the authors removed specific skip connections in the higher levels of the U-Net, forcing the model to interpret bounding boxes as actual 3D objects.
The framework also includes a Recognition Model (using Faster R-CNN and an MLP) that can infer the underlying 3D structure from an existing image, allowing the system to reconstruct and "understand" scenes.
Experiments and Results
The model was rigorously evaluated using the CLEVR dataset, which provides ground-truth 3D locations and spatial relations for 70,000 images of geometric objects.
- Qualitative Superiority: Compared to Variational Autoencoders (VAEs) and Spectral Normalization GANs (SN-GANs), which produced chaotic results on complex CLEVR scenes, the proposed model generated clean, structurally sound images.
- Spatial Accuracy: The model successfully preserved spatial relations (like "front" and "right") across different generated samples.
- Inference Precision: The recognition sub-module achieved a Mean Square Error (MSE) of just 0.014 when regressing 3D locations from 2D images, proving the framework's ability to accurately map pixels back to structure.
- Semantic Editability: Because the scene is represented by an explicit graph, users can perform "surgical" edits—such as changing a single object's type or position—while the refinement network keeps the rest of the scene consistent.
Discussion and Conclusion
The core insight of this work is that DGMs should not have to learn structural logic from scratch. By "outsourcing" structure to a grammar model, the GAN can focus entirely on generating realistic textures and lighting. This approach also allows for extreme compression, as a complex image can be represented by a parse graph of only ~1KB.
While currently limited to the synthetic primitives of the CLEVR dataset, future work aims to extend this grammar-based approach to "open-world" natural scenes. Defining sAOGs for real-world environments remains a challenge that may require advanced automated grammar induction techniques.
Summary updated