BlockGAN: Learning 3D Object-aware Scene Representations from Unlabelled Images

Thu Nguyen-Phuoc, Christian Richardt, Long Mai, Yong-Liang Yang, Niloy J. Mitra

Introduction

Generative Adversarial Networks (GANs) have achieved remarkable success in synthesizing high-fidelity images. However, most existing models lack "object awareness," treating an entire scene as a single 2D entity or a collection of 2D layers. This limitation hinders granular control; for instance, rotating a single object often causes background warping or identity shifts. Furthermore, 2D-based models frequently struggle with physical consistency, such as perspective-correct occlusions and lighting.

BlockGAN addresses these challenges by learning to represent scenes as collections of independent 3D objects directly from unlabelled 2D images. By incorporating a 3D-aware inductive bias, BlockGAN enables explicit control over the pose and identity of individual scene elements while maintaining realistic environmental interactions.

Methodology: A 3D-Aware Pipeline

BlockGAN’s architecture is inspired by traditional computer graphics rendering pipelines, but it learns its components through adversarial training.

The BlockGAN architecture decomposes a scene into independent background and foreground 3D feature grids, which are transformed, composed, and projected into 2D for final rendering.

The pipeline consists of several key stages:

  1. 3D Object Generators: Instead of directly generating pixels, the model maps latent noise vectors ($z_i$) to deep 3D feature grids ($O_i$). Separate generators are typically used for foreground objects and backgrounds.
  2. 3D Similarity Transformations: Explicit transformations (rotation, translation, and scaling) are applied to these feature grids. This provides the "knobs" for precise user control over object placement and orientation.
  3. Scene Composer: Multiple 3D feature grids are combined using an element-wise maximum function. This choice is critical as it naturally handles occlusions—the features of the "closest" object dominate the representation.
  4. Camera Projection Unit: Unlike models using simplified projections, BlockGAN employs a proper perspective projection. This allows the model to disentangle an object's intrinsic size from its distance to the camera (foreshortening).
  5. Learnt Renderer: A 2D convolutional network processes the projected features to produce the final image, ensuring realistic textures and lighting.

Key Insights

3D Features for Disentanglement

By operating in a 3D feature space before rendering, BlockGAN naturally separates an object's "identity" (shape and texture) from its "pose" (spatial coordinates). This allows for identity-preserving manipulations that are difficult for standard 2D GANs.

The Power of Perspective

Explicitly modeling the camera's perspective provides the network with geometric constraints necessary to learn depth. Without this, models often conflate an object moving away with the object simply becoming smaller.

Zero-Shot Composition

Because objects are generated independently, BlockGAN exhibits strong generalization. A model trained on images containing only one or two objects can generate complex scenes with many more objects at inference time—a capability known as zero-shot composition.

Experimental Results

The researchers evaluated BlockGAN on synthetic datasets (CLEVR, SYNTH-CAR, SYNTH-CHAIR) and real-world data (CompCars).

Qualitative results demonstrate BlockGAN's ability to independently manipulate object rotation, translation, and identity (via latent vectors) while maintaining scene consistency across various datasets.

Fidelity and Control

BlockGAN achieves Kernel Inception Distance (KID) scores competitive with state-of-the-art models like HoloGAN, while providing significantly more granular control. As shown in the results, users can rotate a car 360 degrees or slide it across a scene, and the model realistically adapts shadows and highlights to the new position.

Scene Manipulation

The architecture allows for "scene surgery." Users can add, remove, or even stretch 3D object features to create novel configurations never encountered during training. The style discriminator further ensures that foreground objects do not "cheat" by baking background elements into their own feature grids.

Limitations and Future Directions

While BlockGAN marks a significant step toward object-aware generation, several challenges remain:

  • Object Count: The current training process requires a predefined number of objects.
  • Pose Bias: On real-world datasets, the model may struggle with angles rarely seen in training data (e.g., the undercarriage of a car).
  • Physical Constraints: The model lacks an inherent understanding of "solid" objects, occasionally allowing two objects to intersect or "ghost" through each other.

Future work aims to develop category-agnostic generators and methods to automatically infer the number of objects in a scene directly from data.

Summary updated

BibTeX
@inproceedings{nguyenphuoc2020blockgan,
  author = {Thu Nguyen-Phuoc and Christian Richardt and Long Mai and Yong-Liang Yang and Niloy J. Mitra},
  title = {{BlockGAN: Learning 3D Object-aware Scene Representations from Unlabelled Images}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure