Physically Disentangled Representations

Tzofi Klinghoffer, Kushagra Tiwary, Arkadiusz Balata, Vivek Sharma, Ramesh RaskararXiv 2022 · DOI

Introduction

In computer vision, representation learning typically focuses on semantic properties—identifying that an image contains a "face" or a "car." However, these models often struggle to separate the actual object from its environment. For example, a model might fail to recognize a person if the lighting changes or the camera moves to a non-standard angle because the learned features are tangled with environmental factors.

This paper addresses the challenge of physical disentanglement: the ability to look at an image and separately understand its 3D shape (geometry), its surface color (albedo), how it is lit, and where the camera is positioned. Achieving this without human supervision (unsupervised) is notoriously difficult because there are infinite ways to combine light and shape to create the same pixel values.

Methods

The authors propose a framework that treats representation learning as an inverse rendering problem. Instead of a single monolithic encoder, the architecture uses four separate encoders—one for each physical parameter: geometry, albedo, light, and camera.

The training and testing pipeline, illustrating how the four encoders feed into a differentiable renderer to enable unsupervised learning via reconstruction and LOOCC loss.

Differentiable Rendering and LOOCC Loss

The predicted parameters are fed into a Differentiable Renderer (NMR). Because the renderer is differentiable, the model can calculate how tiny changes in a predicted parameter (like light intensity) would change the final pixels, allowing it to learn through backpropagation.

The core innovation is the Leave-One-Out, Cycle Contrastive (LOOCC) loss. During training, the model predicts parameters for an image and then "perturbs" one (e.g., it moves the virtual camera). It renders this new "augmented" image and feeds it back through the encoders. The LOOCC loss enforces a simple rule: if only the camera moved, the features for geometry and albedo should remain identical to the original image. This forces the encoders to truly disentangle the physical properties.

Key Insights

Traditional models (like VAEs or GANs) learn "semantic" clusters that are often brittle. By forcing the model to follow the laws of physics via the renderer, the resulting features are more robust to "out-of-distribution" changes like novel lighting.

A comparison between the proposed physical disentanglement (left), which maps features to physical parameters, and traditional semantic disentanglement (right).

Beyond robustness, this approach offers two major advantages:

  • The Power of Symmetry: The model leverages natural priors, such as the fact that faces are generally symmetric, to help the inverse rendering process succeed without labels.
  • Interpretability: Because the features are mapped to physical parameters, the model's decisions are more transparent. For example, using Grad-CAM, the authors show that a model might use specific "geometry" features to identify an emotion, providing a level of interpretability that "black box" models lack.

Key Results

The "Physically Disentangled" approach consistently outperformed state-of-the-art generative models like StyleGAN2 and VQ-VAE across several benchmarks:

  • Accuracy Boost: On face attribute classification (CelebA), the model achieved significantly higher accuracy, especially when training data was scarce (e.g., only 100 labeled samples).
  • Identity Clustering: In the Big Bang Theory and Buffy the Vampire Slayer datasets, which feature challenging lighting and viewpoints, the LOOCC-enhanced model outperformed baselines in identifying characters by large margins (achieving 43% and 23% NMI, compared to 13% and 18% for baselines).
  • Segmentation: Using the pre-trained physical encoders as a starting point for a U-Net led to better face segmentation results than starting from scratch.

Limitations and Future Work

While the method shows great promise, it currently relies on object symmetry, which limits its application to more complex, asymmetrical scenes. Additionally, the model struggles with "specular effects" (shiny reflections) due to its simplified lighting model. Future work will focus on expanding the LOOCC loss to sample geometry and albedo and moving beyond single-object images to complex, multi-object "in-the-wild" scenes.

Summary updated

Abstract

State-of-the-art methods in generative representation learning yield semantic disentanglement, but typically do not consider physical scene parameters, such as geometry, albedo, lighting, or camera. We posit that inverse rendering, a way to reverse the rendering process to recover scene parameters from an image, can also be used to learn physically disentangled representations of scenes without supervision. In this paper, we show the utility of inverse rendering in learning representations that yield improved accuracy on downstream clustering, linear classification, and segmentation tasks with the help of our novel Leave-One-Out, Cycle Contrastive loss (LOOCC), which improves disentanglement of scene parameters and robustness to out-of-distribution lighting and viewpoints. We perform a comparison of our method with other generative representation learning methods across a variety of downstream tasks, including face attribute classification, emotion recognition, identification, face segmentation, and car classification. Our physically disentangled representations yield higher accuracy than semantically disentangled alternatives across all tasks and by as much as 18%. We hope that this work will motivate future research in applying advances in inverse rendering and 3D understanding to representation learning.
BibTeX
@misc{klinghoffer2022physically,
  author = {Tzofi Klinghoffer and Kushagra Tiwary and Arkadiusz Balata and Vivek Sharma and Ramesh Raskar},
  title = {{Physically Disentangled Representations}},
  year = {2022},
  eprint = {2204.05281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.05281},
}
Figure