[Paper Review] Visualizing Transfer Learning
This paper introduces visualizations of individual neurons in a deep InceptionV1 network during transfer learning from ImageNet to smaller datasets (CelebA, Flowers17, Animals). Using activation maximization with a StyleGAN2-based generative prior, it reveals dynamic adaptation, neuron reuse, spatial feature scaling, and behavior on small data—offering qualitative insights into how features evolve during fine-tuning, with a publicly released dataset of ~30,000 visualizations at https://bit.ly/visualizing-transfer-learning.
We provide visualizations of individual neurons of a deep image recognition network during the temporal process of transfer learning. These visualizations qualitatively demonstrate various novel properties of the transfer learning process regarding the speed and characteristics of adaptation, neuron reuse, spatial scale of the represented image features, and behavior of transfer learning to small data. We publish the large-scale dataset that we have created for the purposes of this analysis.
Motivation & Objective
- To understand the dynamic behavior of individual neurons during transfer learning in deep convolutional networks.
- To visualize how features evolve over time during fine-tuning using activation maximization with a generative prior.
- To investigate neuron reuse, spatial scale of features, and adaptation speed across different layers and datasets.
- To provide a large-scale, browsable dataset of 30,000 neuron visualizations for public analysis and reproducibility.
Proposed method
- Uses activation maximization via gradient ascent to generate visualizations of individual neurons, optimizing for average-pooled channel activations.
- Employs a StyleGAN2 generator as a perceptual prior to constrain optimization to the manifold of realistic face images, improving interpretability.
- Applies the method to a batch-normalized InceptionV1 model fine-tuned on CelebA, Flowers17, and Animals datasets.
- Performs repeated optimization runs to assess stability and diversity of visualizations, and conducts ablation studies by modifying filter weights.
- Visualizes the transfer learning process at multiple training iterations and layer depths, comparing pre- and post-transfer states.
- Presents results through side-by-side comparisons of Lucid-based and StyleGAN2-based visualizations to validate and refine interpretations.
Experimental results
Research questions
- RQ1How do individual neurons in a deep network adapt during transfer learning, and what is the temporal dynamics of this adaptation?
- RQ2To what extent are neurons reused or reconfigured during fine-tuning on small datasets?
- RQ3How does the spatial scale of features represented by neurons change during transfer learning?
- RQ4How do generative priors like StyleGAN2 improve the interpretability of feature visualizations compared to standard activation maximization?
- RQ5What are the effects of modifying individual filter weights on the resulting neuron visualization, and what does this imply about feature robustness?
Key findings
- Neurons in deeper layers of the InceptionV1 network show strong sensitivity to complete face images, with visualizations capturing complex facial features.
- The use of a StyleGAN2-based prior produces photorealistic, face-like images that often correspond closely with Lucid visualizations, reinforcing the interpretation of shared underlying features.
- Repeated optimization runs converge to similar but not identical visualizations, indicating that while local optima are stable, the optimization process has inherent stochasticity.
- Some neuron visualizations are highly sensitive to small weight perturbations—particularly when top-weight filters are negated—suggesting that certain features are critical for activation.
- The visualizations reveal that transfer learning proceeds in stages: early adaptation is rapid and localized, while later stages involve refinement of global features.
- The dataset of ~30,000 visualizations across four datasets provides a comprehensive, browsable resource for studying transfer learning dynamics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.