Abstract: We can better understand deep neural networks by identifying which features each of their neurons have learned to detect. To do so, researchers have created Deep Visualization techniques including activation maximization, which synthetically generates inputs (e.g. images) that maximally activate each neuron. A limitation of current techniques is that they assume each neuron detects only one type of feature, but we know that neurons can be multifaceted, in that they fire in response to many different types of features: for example, a grocery store class neuron must activate either for rows of produce or for a storefront. Previous activation maximization techniques constructed images without regard for the multiple different facets of a neuron, creating inappropriate mixes of colors, parts of objects, scales, orientations, etc. Here, we introduce an algorithm that explicitly uncovers the multiple facets of each neuron by producing a synthetic visualization of each of the types of images that activate a neuron. We also introduce regularization methods that produce state-of-the-art results in terms of the interpretability of images obtained by activation maximization. By separately synthesizing each type of image a neuron fires in response to, the visualizations have more appropriate colors and coherent global structure. Multifaceted feature visualization thus provides a clearer and more comprehensive description of the role of each neuron.
What Problem Does This Paper Address?
To understand how deep neural networks (DNNs) "think," researchers often use activation maximization: an optimization process that starts with a random image and tweaks its pixels until a specific neuron fires at its maximum. Historically, this has produced "mushy" or unrealistic images because it assumes each neuron is looking for exactly one thing.
In reality, neurons are multifaceted. For example, a "grocery store" neuron might fire for rows of red apples, green artichokes, or a storefront exterior. Standard visualization techniques try to create one image that satisfies all these conditions at once, resulting in a confusing mix of colors and shapes. The authors set out to "unmix" these facets to provide a clearer picture of what each neuron has actually learned.
Methods
The authors propose two primary innovations:
- The MFV Algorithm: Instead of starting optimization from random noise, the algorithm identifies different "types" of images that activate a neuron. It takes all training images that highly activate a specific neuron, embeds them into a low-dimensional space (using t-SNE), and clusters them (using k-means). Optimization is then initialized using the mean image of each cluster. This "nudges" the process toward a specific facet (e.g., the "red apple" version of the grocery store) rather than a generic average.
- Center-biased Regularization: Previous methods often suffered from "repetition," where an image would be filled with many tiny fragments of an object (like a dozen tiny eyes) instead of one coherent object. This new regularization technique biases the optimization to favor the center of the image, encouraging the network to "draw" a single, centrally located object.
Key Insights and Ideas
- Multifacetedness is pervasive: The authors found that neurons at all levels of the network are multifaceted. While lower-level neurons (layers 1-2) show less diversity, neurons in layer 3 and above become increasingly complex and invariant to changes in color, pose, and context.
- Hidden neurons as "Amalgams": Interestingly, neurons in hidden layers (like fc6) often act as amalgams of seemingly unrelated concepts. One neuron was found to respond to "underwater things," including both scuba divers and turtles.
- DNNs learn global structure: Contrary to the belief that DNNs only look for local textures, these visualizations show that high-level neurons encode significant information about global object structure and context.
- Better initialization beats better priors: Simply starting the optimization from a "smart" location (the cluster mean) did more to improve image realism than many complex mathematical regularizers used in previous work.
Key Results
The qualitative results represent a significant leap in the state-of-the-art for interpretability.
- Facet Discovery: As seen in the figure below, the "grocery store" neuron is successfully decomposed into distinct facets: produce rows, fruit piles, and storefronts.
- Realism: Compared to previous methods, MFV produces images with more natural color palettes and globally consistent structures.
- Layer-wise Complexity: The paper provides a comprehensive "map" of how feature complexity evolves across all eight layers of the network, showing the transition from simple edges to complex, multifaceted objects.
Limitations and Future Work
- Manual Hyperparameters: The number of facets ($k$) must be set manually. The authors acknowledge that automatically identifying the "true" number of facets for a neuron remains an open scientific challenge.
- Computational Cost: Generating 10-20 facets per neuron across thousands of neurons is computationally expensive.
- Amalgam Interpretation: While the paper identifies "amalgam" neurons, it is still unclear exactly why the network chooses to group certain disparate concepts (like scuba divers and turtles) into a single unit. Future work is needed to determine if these are truly single abstract concepts or just artifacts of the training process.
Summary updated