Abstract
Conditioning image generation on specific features of the desired output is a key ingredient of modern generative models. However, existing approaches lack a general and unified way of representing structural and semantic conditioning at diverse granularity levels. This paper explores a novel method to condition image generation, based on object-centric relational representations. In particular, we propose a methodology to condition the generation of objects in an image on the attributed graph representing their structure and the associated semantic information. We show that such architectural biases entail properties that facilitate the manipulation and conditioning of the generative process and allow for regularizing the training procedure. The proposed conditioning framework is implemented by means of a neural network that learns to generate a 2D, multi-channel, layout mask of the objects, which can be used as a soft inductive bias in the downstream generative task. To do so, we leverage both 2D and graph convolutional operators. We also propose a novel benchmark for image generation consisting of a synthetic dataset of images paired with their relational representation. Empirical results show that the proposed approach compares favorably against relevant baselines.
Introduction
Modern generative models excel at producing high-quality images from text prompts, yet they often struggle with precise, fine-grained control over object structure and pose. Existing conditioning methods typically fall into two categories: high-level scene graphs, which lack geometric detail, and low-level 2D masks or keypoints, which treat landmarks as independent entities without understanding the underlying morphology.
To bridge this gap, this research introduces GraPhOSE (Graph-based Object-centric Scene Encoding), a framework that treats objects as "attributed pose graphs." This representation captures both fine-grained geometry and relational structure, allowing for superior control over image generation.
Methodology
The core of GraPhOSE is the representation of an object as an attributed pose graph, where nodes contain spatial coordinates and semantic features (e.g., color, class), and edges represent the object's morphology.
Architecture
The GraPhOSE architecture consists of two primary components:
- The Encoder ($\Phi_\phi$): This module utilizes a custom "pose convolution" layer to process node features while accounting for their relative spatial positions.
- The Mask Generator ($\mu_\theta$): This component transforms the abstract graph representation into a multi-channel 2D layout mask, serving as a "soft" blueprint for a downstream image generator.
Surrogate Pre-training
A key innovation is the use of Surrogate Pre-training. Before training on real images, the model is tasked with mapping random graphs to "surrogate masks"—simple geometric representations where nodes are Gaussian blobs and edges are lines. This stage instills a strong geometric inductive bias, teaching the model the "language" of shapes and relationships independently of visual textures.
Experimental Setup
The model was evaluated on two distinct benchmarks:
- PRO (Pose-Representable Objects): A novel synthetic dataset of 100,000 images featuring stylized objects (e.g., robotic arms, lattices) paired with relational graph data.
- Humans: A real-world dataset of ~300,000 images where graphs represent human skeletons with 14 keypoints.
Results and Discussion
GraPhOSE demonstrates significant improvements over standard Feed-Forward (FNN) and Graph Neural Network (GNN) baselines.
Quantitative and Qualitative Performance
On the PRO dataset, GraPhOSE achieved a Frechet Inception Distance (FID) of 66.5, significantly outperforming the FNN baseline (103.86). Qualitatively, the generated masks closely follow the input graph's topology, even in complex or unusual poses.
Key Insights
- Relational Intelligence: The model can infer missing information by propagating attributes across edges. If a node's attribute is missing, the graph convolutional layers maintain visual consistency by leveraging neighboring node data.
- Disentanglement: The architecture naturally separates pose (where nodes are) from attributes (what nodes look like), enabling independent manipulation of structure and semantics.
- Geometric Regularization: Surrogate pre-training prevents memorization of common poses, enhancing robustness to out-of-distribution inputs.
Conclusion
GraPhOSE provides a unified and flexible framework for object-centric image generation. By leveraging graph-based representations and surrogate pre-training, it achieves fine-grained control and structural consistency that surpasses traditional non-relational methods. Future work will explore scaling this approach to high-resolution photorealistic generation and refining the mask generation process for more complex silhouettes.
Summary updated