Deep Convolutional Inverse Graphics Network

Tejas D. Kulkarni, William F. Whitney, Pushmeet Kohli, Joshua B. Tenenbaum

This paper, a seminal work in the "vision as inverse graphics" tradition, introduces the Deep Convolutional Inverse Graphics Network (DC-IGN). It bridges the gap between the "black box" nature of deep learning and the interpretable, structured world of computer graphics.

TL;DR

DC-IGN is a variational autoencoder that learns to "de-render" images into a disentangled "graphics code" representing physical properties like pose, lighting, and shape. By using a clever training strategy that organizes data into batches where only one factor of variation changes at a time, the model learns to act as an interpretable 3D rendering engine.

What Problem Does This Paper Address?

While deep learning excels at learning hierarchical representations, these features are often "entangled"—changing one neuron's value might simultaneously change an object's color, orientation, and identity in unpredictable ways.

The authors argue that an ideal representation should be disentangled and interpretable, much like the parameters in a 3D graphics engine (e.g., azimuth, elevation, light intensity). The challenge is learning this structure directly from pixels without requiring a hand-coded 3D model or explicit, high-fidelity labels for every image.

Methods

The DC-IGN architecture is a Variational Autoencoder (VAE) designed to mimic a graphics engine pipeline in reverse (de-rendering) and forward (rendering).

DC-IGN Architecture
  1. Encoder (De-rendering): A series of convolutional and pooling layers that map a $150 \times 150$ image to a 200-dimensional "graphics code."
  2. Decoder (Renderer): A series of unpooling and convolutional layers that map the graphics code back to an image.

The core innovation of DC-IGN is its training procedure, which forces the network to disentangle the latent space:

Clamping Training Procedure
  • Clamping and Invariance Targeting: To teach a specific neuron to represent a property like "azimuth" (rotation), the model is trained on mini-batches where only the azimuth changes while identity and lighting remain constant.
  • During the forward pass, all neurons except the one designated for azimuth are "clamped" to their mean value across the batch.
  • This forces the "active" (unclamped) neuron to capture all the variance in the batch.
  • During backpropagation, the "inactive" (clamped) neurons receive a gradient signal nudging them to be more invariant to the specific change occurring in that batch.

Datasets

The model was evaluated on two primary datasets:

  • 3D Face Dataset: Generated using the Basel Face Model. It includes 12,000 batches of faces with variations in identity (shape/texture), pose (azimuth/elevation), and lighting.
  • 3D Chair Dataset: Derived from CAD models in the Pascal Visual Object Classes (VOC) dataset. It features 1,357 different chairs (office, wicker, modern) rendered in 60 different poses.

Key Insights and Ideas

  • Supervision via Data Organization: The model doesn't necessarily need to know the exact degree of rotation (supervised learning). Instead, it uses the structure of the data (knowing that only one thing is changing in a batch) to learn disentanglement.
  • Equivariance: The authors found that the learned latent variables have a strong linear relationship with the actual physical parameters. For example, as a face rotates in the real world, the "azimuth neuron" value moves linearly.
  • Vision as Inverse Graphics: By forcing the latent space to mimic a graphics code, the decoder effectively learns to be a neural rendering engine. Once trained, you can take a single static image, encode it, manually tweak the "light" neuron, and decode it to see the same person under different lighting.

Key Results

  • Qualitative Re-rendering: The model successfully re-renders unseen faces and chairs from a single input image, allowing for smooth transitions in pose and lighting while maintaining the object's identity.
  • Quantitative Performance: On the chair dataset, the model achieved a mean-squared error (MSE) of $2.77 \times 10^{-4}$, demonstrating high reconstruction fidelity.
  • Disentanglement vs. Entanglement: The authors compared DC-IGN to a standard VAE. In the standard VAE, attempting to change "pose" often resulted in the object's identity morphing (e.g., a chair changing from office-style to wicker as it rotates), whereas DC-IGN maintained identity.

Limitations and Future Work

  • Data Requirements: The training relies on having access to data where factors can be isolated (e.g., a video of a face rotating while the expression stays the same). Applying this to completely unorganized, "in-the-wild" data remains a challenge.
  • Hallucination: When rotating an object to a view that was hidden in the original image (like the back of a chair), the model has to "guess" or speculate. While it often makes reasonable conjectures (e.g., assuming a chair has four legs), it can sometimes produce blurry or inaccurate extrapolations.
  • Complexity: The current model handles relatively simple scenes with single objects. Scaling this to complex, multi-object scenes with occlusions is a significant next step.

Summary updated

BibTeX
@inproceedings{kulkarni2015deep,
  author = {Tejas D. Kulkarni and William F. Whitney and Pushmeet Kohli and Joshua B. Tenenbaum},
  title = {{Deep Convolutional Inverse Graphics Network}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=Bk4OODWdZr},
}
Figure