Deep learning researchers often describe Convolutional Neural Networks (CNNs) as "black boxes." While we know they work exceptionally well for tasks like object recognition, understanding how they represent specific scene factors—like the angle of a car, the style of a chair, or the lighting of a room—is notoriously difficult. In natural images, these factors are hopelessly entangled.
In this work, Mathieu Aubry and Bryan C. Russell propose a solution: using computer-generated (CG) imagery to "stress test" and deconstruct the internal representations of trained CNNs. By using 3D CAD models to generate synthetic images where scene factors are precisely controlled, the authors quantify how different layers prioritize "what" (object style) versus "where" (3D viewpoint and 2D position).
Methodology: Probing with Synthetic Imagery
The core challenge in interpretability is entanglement. In natural datasets, a "red car" might always be seen from the side, while a "blue car" is seen from the front. If a CNN neuron fires, it is unclear if it responds to color, shape, or viewpoint. The researchers treat the CNN as a fixed feature extractor and probe it using a systematic experimental design:
- Rendering Controlled Stimuli: Using 3D models from ModelNet (chairs, cars, sofas, etc.), they render images while varying one factor at a time (e.g., rotating a chair 360 degrees while keeping style and lighting constant).
- Feature Decomposition: They model the CNN response as a linear combination of "marginal features." For a given layer, they decompose the total variance into components attributed to specific factors like Viewpoint, Style, and Color.
- Comparative Analysis: They apply this framework to three architectures: AlexNet (trained on ImageNet), Places (trained for scene recognition), and Oxford VGG.
The "What" vs. "Where" Gradient
A primary finding is the existence of a gradient of abstraction as one moves deeper into the network. In AlexNet, the relative variance explained by 2D position drops from 49.8% at the pool5 layer to 33.9% at fc7. Conversely, the variance explained by the aspect ratio (a proxy for shape/style) jumps from 9.5% to 37.0% over the same layers.
As shown in the visualization above, features in the deeper layers (like fc6) become significantly more invariant to viewpoint and position ("where") and much more sensitive to object style and category ("what"). For object categories, "Style" accounts for roughly 50% of the variance in the final fully connected layers, while "Viewpoint" accounts for less than 20%.
Task-Specific Representations
The study also reveals how training objectives shape internal representations. For instance, the Places network (trained on scenes) is much more sensitive to color—especially background color—than AlexNet. In scene recognition, the color of the sky or a field is a critical cue, whereas, for object recognition, color is often a distractor that the network learns to ignore.
Surprisingly, high-level features can be approximated quite well by a linear combination of independent factors. This suggests that deep layers are effectively "disentangling" these factors into separate directions in the feature space. To prove these insights translate to the real world, the authors used their "disentangled" features to perform 2D-to-3D retrieval, successfully matching natural images of chairs to 3D CAD models and estimating orientation with high accuracy.
Conclusion
By leveraging the precision of synthetic imagery, this framework moves beyond simple filter visualization to provide a quantitative map of a network's internal logic. While the linear assumption may not capture all non-linear interactions in early layers, the ability to decompose variance provides a powerful tool for debugging architectures and understanding the emergence of invariance in deep learning.
Summary updated