GENESIS: Generative Scene Inference and Sampling with Object-Centric Latent Representations

Martin Engelcke, Adam R. Kosiorek, Oiwi Parker Jones, Ingmar Posner

TL;DR

GENESIS is a pioneering object-centric generative model capable of both decomposing complex 3D scenes into individual components and sampling entirely new, coherent scenes. By utilizing an autoregressive prior, the model learns the spatial and logical relationships between objects—ensuring, for example, that two blocks don't occupy the exact same space. This approach significantly outperforms previous models that treated scene elements as entirely independent.

The Problem: Beyond Independent Objects

Humans do not perceive the world as a flat grid of pixels; we see a collection of discrete objects (chairs, tables, cups) interacting within a 3D space. While deep learning has made massive strides in image generation through models like GANs, most architectures still treat images as holistic, monolithic blocks of data.

Existing "object-centric" models, such as MONet and IODINE, were designed to decompose scenes into objects without human labels (unsupervised segmentation). However, they suffer from a major flaw: they assume each object in a scene is independent of the others.

Graphical models comparing standard VAEs, MONET, IODINE, and GENESIS.

Because they lack an understanding of object relationships, these are effectively "analysis-only" models. If you attempt to use them to generate a new scene from scratch, they produce incoherent messes—they don't understand that the sky belongs above the ground or that solid objects shouldn't overlap. GENESIS aims to bridge this gap by creating a model that can both "see" (decompose) and "imagine" (generate) structured, logical scenes.

Methodology: How GENESIS Works

The authors introduce GENESIS (GENErative Scene Inference and Sampling), which models an image as a Spatial Gaussian Mixture Model (GMM). The architecture relies on several core innovations:

The GENESIS inference architecture.
  1. Latent Representation: Each scene is represented by $K$ sets of latent variables. These are split into two distinct types: "mask latents" ($z^m$), which determine the shape and location of a component, and "component latents" ($z^c$), which determine its appearance (such as color and texture).
  2. Autoregressive Prior: This is the model's key differentiator. Instead of sampling all objects at once independently, GENESIS uses a Recurrent Neural Network (RNN) to sample them sequentially. Each new object's placement is conditioned on the objects already "placed" in the scene. This allows the model to learn spatial constraints and logical scene layouts.
  3. Stick-Breaking Process: To ensure the individual object masks sum up to a complete image canvas, the model uses a probabilistic "stick-breaking" process to partition the available space.
  4. Amortized Inference: For decomposing existing images, the model uses a sequential inference network that maps pixels to the latent variables in a single forward pass. This makes it significantly more scalable than iterative refinement methods used in prior work.

Datasets & Evaluation

The model was rigorously evaluated on three datasets of increasing complexity:

  • Multi-dSprites: 2D colored shapes placed on colored backgrounds.
  • GQN (General Query Network) "rooms-ring-camera": Simulated 3D rooms featuring various floor and wall textures, populated with 1-3 objects.
  • ShapeStacks: A challenging dataset of simulated 3D block towers, used specifically to test if the model's "understanding" of objects helps it predict physical properties like structural stability.

Key Insights and Results

The Importance of Relationships

You cannot generate a realistic scene by picking objects at random. The autoregressive prior allows GENESIS to learn a "scene grammar"—for instance, "if there is already a red cube here, I should place the blue sphere somewhere else."

The "Background First" Strategy

Qualitatively, the model naturally learns to generate the "stage" (the floor and sky) in the first few steps before placing foreground objects. This emergent behavior mirrors how a human artist might sketch a scene.

Better Priors Lead to Better Segmentation

Interestingly, adding the generative requirement actually improved the model's ability to segment objects in the "analysis" phase compared to models that solely focus on decomposition. On the ShapeStacks dataset, GENESIS achieved an Adjusted Rand Index (ARI) of 0.73, outperforming MONet’s 0.63.

High-Quality Generation

On the GQN dataset, GENESIS achieved a Fréchet Inception Distance (FID) of 80.5, vastly outperforming MONet (176.4). A lower FID indicates significantly higher image quality and diversity in the generated scenes.

Object-Centricity Aids Reasoning

The latent variables learned by GENESIS are highly "disentangled." A simple classifier trained on top of these latents can predict if a tower of blocks will fall over with 64.0% accuracy, outperforming both MONet (59.6%) and standard VAE baselines.

Limitations and Future Work

While GENESIS represents a major step forward, it has limitations. The experiments were conducted at a relatively low resolution (64x64). Scaling this to high-resolution, "in-the-wild" real-world photos remains a significant challenge due to the sheer variety of textures and lighting.

Additionally, the model requires a pre-defined maximum number of components ($K$). While it can leave slots "empty," a more flexible, non-parametric approach for scenes with varying numbers of objects would be ideal. Finally, the current model operates on static images; incorporating video data to enforce temporal consistency is a promising path to help the model better distinguish between objects that move together.

Summary updated

BibTeX
@inproceedings{engelcke2020genesis,
  author = {Martin Engelcke and Adam R. Kosiorek and Oiwi Parker Jones and Ingmar Posner},
  title = {{GENESIS: Generative Scene Inference and Sampling with Object-Centric Latent Representations}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure