Introduction
A fundamental goal in computer vision is "vision as inverse graphics"—the ability to deconstruct a 2D image into its underlying 3D properties, such as shape, pose, and lighting. This task is inherently ill-posed because a single 2D projection can correspond to an infinite number of 3D scenes. While deep learning has advanced the generation of disentangled latent representations, most models only decode back into 2D images. This research introduces a network that not only disentangles these properties but also outputs a full 3D volumetric representation (a voxel grid) suitable for modern 3D graphics pipelines.
Methodology
The proposed architecture utilizes an encoder-decoder framework with a unique twin-tailed decoder designed to separate geometric shape from appearance transformations.
Architecture Overview
- The Encoder: Processes an 80x80 RGB image into a latent "graphics code." A key innovation is the replacement of standard max-pooling with Spatial Transformer Networks (STNs). By warping feature maps during encoding, STNs help the network achieve geometric invariance (like pose and scale) earlier in the convolutional hierarchy.
- The Graphics Code: The latent space is explicitly partitioned into a shape code and a transformation code (capturing pose and lighting).
- The Volume Decoder: Receives only the shape code to generate an 80x80x80 binary voxel grid.
- The Image Decoder: Combines both the shape and transformation codes to reconstruct the original 2D input image.
Disentanglement via Gradient Blocking
To ensure true disentanglement, the authors employ a gradient-routing strategy. They block the backward pass (gradients) from the image decoder to the shape code. Consequently, the shape code only receives error signals from the volume decoder, which is invariant to camera pose and lighting. This forces the shape code to specialize in 3D geometry, while the transformation code learns the parameters necessary for 2D image reconstruction.
Datasets and Training
The model was evaluated on two primary datasets:
- Basel Face Model: 16,000 image-volume pairs of faces rendered from various angles and lighting conditions.
- ModelNet (Chairs): 5,000 image-volume pairs used to test the network's performance on objects with more complex and variable geometry.
Key Results
The network demonstrated superior performance in 3D reconstruction, significantly outperforming nearest-neighbor baselines with a Mean Squared Error of 0.0096 compared to 0.017. Qualitative results show that the model can successfully reconstruct 3D volumes from single 2D images and maintain consistency across different viewpoints.
Beyond reconstruction, the disentangled latent space proved highly robust for recognition tasks. Using only the shape code, the network achieved high accuracy in identifying faces under novel lighting and poses. Furthermore, the authors demonstrated the ability to perform "graphics code swapping," where the shape of one object is rendered in the pose of another, confirming effective disentanglement.
Conclusion and Future Work
This work provides a robust framework for extracting 3D geometry from 2D images through targeted gradient routing and specialized decoder structures. While the current model requires supervised image-volume pairs and assumes a canonical viewpoint, future research aims to incorporate differentiable renderers. This would allow the network to learn 3D representations directly from 2D images without requiring explicit volumetric ground truth, broadening its applicability to real-world, unconstrained environments.
Summary updated