TL;DR
This paper introduces a novel method to discover invariances in deep neural networks by simultaneously optimizing for strong unit activation and image diversity. They reveal that early layers of VGG-19 exhibit significant phase and local deformation invariance, contrasting with ResNet-50, suggesting that architectural differences lead to distinct learned representations.
What Problem Does This Paper Address?
Understanding the inner workings of deep neural networks (DNNs) is crucial for their development and application. While much research has focused on visualizing what features a neuron "selects" (i.e., what image maximally activates it), this often provides an incomplete picture. A key aspect of biological vision and potentially DNN computation is invariance – the ability of a neuron to respond similarly to a range of transformations (like changes in phase, position, or scale). Previous methods for visualizing invariances were limited, often requiring prior knowledge of the transformations or focusing on later network layers. This paper aims to fill this gap by providing a general method to discover and visualize these invariances in early layers of DNNs.
Methods
The core of the paper's contribution is a new optimization objective designed to find a batch of images that not only strongly activate a target neuron but are also maximally distinct from each other. This is achieved through gradient ascent on a loss function that combines:
- Activation Maximization: Encouraging images that strongly activate the neuron.
- Natural Image Prior: Using a pre-trained PixelCNN++ model to ensure generated images resemble natural images.
- Diversity Maximization: A novel term that penalizes the minimum distance between any pair of images in the batch. This encourages the exploration of the "invariant subspace" – the set of stimuli that elicit a similar response.
The authors also introduce metrics to quantify two types of invariance:
- Phase Invariance (Texture Detectors): Measured by how well a synthesized texture pattern maintains high activation across different crops.
- Local Deformation Invariance (Shape Detectors): Quantified by how well linear combinations of highly activating images maintain high activation.
Datasets
- ImageNet: Used as the source for the natural image prior (specifically, a pre-trained PixelCNN++ model on ImageNet).
- Primary Visual Cortex (V1) Data: Used for a practical application of their method to a CNN trained to predict neural responses in monkey V1.
Key Insights and Ideas
- Invariance is as important as selectivity: Just as understanding what a neuron responds to is key, understanding what it ignores (i.e., is invariant to) is equally critical for understanding its function.
- Early layers are surprisingly invariant: Contrary to some prior assumptions, even early convolutional layers in networks like VGG-19 exhibit significant invariances, particularly to phase shifts and local deformations.
- Architectural differences matter: VGG-19 and ResNet-50, despite similar performance on ImageNet, learn qualitatively different representations in their early layers, with VGG-19 showing more phase invariance.
- Discovering invariances is key: The proposed method can uncover transformations that might not be obvious or easily parameterized, offering a more comprehensive view of feature representations.
Key Results
- VGG-19 Early Layers: Demonstrated significant phase invariance in units identified as "texture detectors" and tolerance to local deformations in "shape detectors" within layers like
conv3_2. - ResNet-50 Early Layers: Showed a marked reduction in phase-invariant units compared to VGG-19, with a stronger presence of local deformation tolerance.
- VGG vs. Random Network: Units in trained VGG-19 networks were found to be substantially more invariant than units in a network with the same architecture but random weights, indicating that these invariances are learned properties.
- Quantitative Metrics: The developed metrics for phase and local deformation invariance provided quantitative evidence for these findings and showed they are often anticorrelated across layers.
Limitations and Future Work
- Hyperparameter Tuning: The hyperparameter
α(controlling the natural image prior) was set manually based on qualitative inspection, suggesting potential for more automated tuning. - Focus on Early Layers: While the paper focuses on early and intermediate layers, future work could extend this analysis to deeper layers.
- Comparison of Architectures: The paper highlights differences between VGG and ResNet; future work could explore a wider range of architectures and their learned invariances.
- Biological Relevance: The application to V1 data is promising, and further exploration of how DNN invariances relate to biological vision systems is a natural next step. The authors suggest their method could uncover invariances not captured by quadratic features, which is relevant for understanding biological neural computations.
Summary updated