HoloGAN: Unsupervised learning of 3D representations from natural images

Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, Yong-Liang Yang

TL;DR

HoloGAN is the first generative adversarial network (GAN) capable of learning disentangled 3D representations—such as pose, shape, and appearance—directly from unlabelled 2D images. By incorporating an explicit 3D transformation layer into the generator, it allows for precise control over object orientation while maintaining higher visual fidelity than traditional 2D-based GANs.

What Problem Does This Paper Address?

Standard generative models, like the original GAN or DCGAN, rely on 2D convolutional kernels. Because these models lack an inherent understanding of the 3D world, they often struggle with tasks like "novel-view synthesis"—generating an image of the same object from a different angle. This frequently results in "texture sticking" or blurry artifacts where the model essentially "hallucinates" pixels rather than geometrically rotating an object.

Existing solutions to this problem usually require expensive supervision: 3D shapes, pose labels (e.g., "this face is at a 30-degree angle"), or multiple views of the same object. HoloGAN aims to bridge this gap by learning 3D structure in a completely unsupervised manner, using only collections of single-view 2D images.

Methods

The core innovation of HoloGAN lies in its generator architecture, which moves away from the "flat" 2D approach.

  1. 3D Representation: Instead of starting with a 1D latent vector, the generator begins with a learned constant 4D tensor (representing 3D features). It uses 3D convolutions to process this volume.
  2. Explicit 3D Transformation: The model includes a rigid-body transformation layer. During training, the model samples a random pose $\theta$ and physically rotates the 3D feature volume. This provides a strong "inductive bias," forcing the network to learn features that actually behave like 3D objects when rotated.
  3. Neural Rendering: A "Projection Unit" flattens the 3D features into 2D features. These are then processed by 2D convolutions that act as a neural renderer, adding shading, texture, and fine details.
  4. Style-Based Control: HoloGAN adopts a style-based strategy (similar to StyleGAN). The latent vector $z$ is mapped to affine parameters for Adaptive Instance Normalization (AdaIN) at each layer. This allows $z$ to control "identity" (shape and appearance) while the explicit transform controls "pose."
Figure 3. HoloGAN’s generator network: we employ 3D convolutions, a 3D rigid-body transformation, the projection unit and 2D convolutions. We also remove the traditional input layer from z, and start from a learnt constant 4D tensor. The latent vector z is instead fed through multilayer perceptrons (MLPs) to map to the affine transformation parameters for adaptive instance normalisation (AdaIN). Inputs are coloured gray.

Datasets

The authors evaluated HoloGAN across several diverse datasets to test its robustness:

  • Faces: CelebA (natural face images) and Basel Face (synthetic).
  • Objects: Cats, Chairs (ShapeNet), and Cars.
  • Scenes: LSUN Bedroom, which contains complex layouts of multiple objects.

Notably, for all datasets except Chairs, the model only saw unique, single-view images, meaning it had to "infer" the 3D structure without ever seeing the same object twice.

Key Insights and Ideas

  • Architecture as a Prior: The authors demonstrate that network architecture can be more important than the specific loss function. By baking 3D geometry into the generator's structure, disentanglement emerges naturally.
  • Deep Voxels vs. Binary Grids: Unlike previous methods that used binary occupancy grids (is a pixel full or empty?), HoloGAN uses "deep voxels" (voxels with many feature channels). This makes the representation more spatially compact and expressive, allowing it to capture complex lighting and backgrounds.
  • Unsupervised Disentanglement: The model successfully separates extrinsic factors (pose) from intrinsic factors (shape and texture) without any labels. This is achieved by the random pose perturbation during training, which forces the generator to find a representation that remains realistic under any rotation.
Figure 2. Comparison of generative image models. Data given to the discriminator are coloured purple. Left: In conditional GANs, the pose is observed and the discriminator is given access to this information. Right: HoloGAN does not require pose labels during training and the discriminator is not given access to pose information.

Key Results

  • Quantitative Superiority: HoloGAN achieved significantly better Kernel Inception Distance (KID) scores—a measure of visual quality—than 2D baselines like DCGAN and WGAN-GP on complex datasets. For the Cars dataset, HoloGAN reached a KID of 2.16, nearly doubling the performance of DCGAN (4.78).
  • Qualitative Control: The model allows for smooth, 360-degree azimuth rotation and elevation changes while keeping the object's identity perfectly stable.
  • Disentangling Shape and Appearance: By feeding different latent codes to the 3D vs. 2D parts of the network, the authors showed they could change a car's color (appearance) without changing its model (shape).
HoloGAN results on Cats, CelebA, and LSUN Bedroom

Limitations and Future Work

  • Dataset Bias: The model's ability to recover certain poses is limited by the training data. For example, in face datasets where most photos are taken at eye level, HoloGAN struggles to learn extreme elevation (looking straight up or down).
  • Pose Distribution: Currently, the model assumes a uniform distribution of poses during training. The authors suggest that future work could involve learning the actual pose distribution of a dataset in an unsupervised way.
  • Resolution: While the results are high-fidelity, the experiments were conducted at resolutions up to 128x128. Combining HoloGAN with techniques like Progressive GANs could scale this to megapixel resolutions.

Summary updated

BibTeX
@inproceedings{nguyenphuoc2019hologan,
  author = {Thu Nguyen-Phuoc and Chuan Li and Lucas Theis and Christian Richardt and Yong-Liang Yang},
  title = {{HoloGAN: Unsupervised learning of 3D representations from natural images}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=7PvUq3SHT-2},
}
Figure