TL;DR
This paper presents the first comprehensive, layer-wise concept analysis of Vision Transformers (ViTs) using automated neuron labeling. The authors reveal that despite lacking the local architectural constraints of CNNs, ViTs naturally evolve from processing simple concepts like colors and textures in early layers to complex objects and animals in later layers. Furthermore, the study shows that fine-tuning a ViT acts as a mechanism for "concept pruning," narrowing the network's focus to task-specific features while discarding irrelevant ones.
What Problem Does This Paper Address?
In Convolutional Neural Networks (CNNs), hierarchical information processing is practically guaranteed by design: early layers have small, local receptive fields that can only see simple patterns like edges and colors, while deeper layers combine these patterns to recognize complex objects.
Vision Transformers (ViTs), however, operate entirely differently. Thanks to their global self-attention mechanisms, a ViT can theoretically look at and relate distant parts of an entire image from the very first layer. Do they actually use this capability to learn complex, global features right away, or do they still follow a step-by-step hierarchical progression like CNNs?
Understanding how ViTs process information layer-by-layer is a major blind spot in computer vision interpretability. Resolving this gap is essential for diagnosing model biases, understanding shortcut learning, and optimizing transfer learning strategies.
Methods
To peer inside the black box of ViTs, the authors leverage CLIP-Dissect, an automated, open-vocabulary neuron labeling method. The technique works by passing a large probing dataset through the target network and using a pre-trained CLIP model to match the highly activating images of individual neurons with a dictionary of 20,000 common English words.
The authors introduced two key methodological enhancements:
- Adaptive Mean-Thresholding: Instead of using a fixed interpretability cutoff, they threshold neuron similarity scores based on the mean of each specific layer. This ensures they only analyze highly reliable, interpretable neuron labels.
- Quantitative Complexity Analysis: They use ICNet (an image complexity assessment model trained on human annotations) to objectively measure the visual complexity of the images that trigger specific neurons.
Finally, the discovered concepts are grouped into semantic categories (e.g., colors, textures and materials, objects and machines, natural elements and organisms) using LLMs with manual verification.
Datasets
- Probing Dataset: A combination of the ImageNet validation set and the Broden dataset (totaling 113,305 images) used to stimulate the neurons for labeling.
- Fine-Tuning Datasets:
- Caltech-UCSD Birds-200-2011 (CUB): A dataset of 200 bird species used to evaluate fine-grained, in-distribution adaptation.
- bloodMNIST: A dataset of 8 microscopic peripheral blood cell image classes used to evaluate out-of-distribution adaptation to the medical domain.
Key Insights and Ideas
- Hierarchy is Optimal, Not Just an Artifact of CNNs: Even though ViTs possess the architectural freedom to learn complex concepts in early layers, they don't. They still choose to prioritize basic colors and textures early on, proving that hierarchical abstraction is fundamentally beneficial for visual processing.
- Concept Diversity Scales with Complexity: In early layers, many neurons share the same simple labels (e.g., multiple neurons might just fire on the color "green"). As you go deeper, neurons become highly specialized, doubling the number of unique concepts tracked by the network.
- Fine-Tuning as Concept Pruning: Fine-tuning a model on a specific downstream task reduces the overall variety of concepts it maintains. The network actively shifts its distribution toward task-relevant categories (e.g., expanding color/texture tracking for blood cells) while "forgetting" irrelevant concepts.
Key Results
- The Color-to-Class Shift: As shown in the layer-wise breakdown, early layers are heavily dominated by colors (up to 60% of neurons in layer 0). Middle layers transition into textures and materials, while the final layers are overwhelmingly dedicated to specific objects and natural elements.
- Quantifiable Complexity Growth: ICNet scores confirmed a steady, objective increase in image complexity from the first layer to the last across all evaluated ViT variants.
- Pre-training Footprints: Different pre-training strategies leave distinct marks. For instance, CLIP exhibits a unique spike in "activity" concepts in its later layers, likely due to its text-caption pre-training. Meanwhile, self-supervised models like DINOv2 show a higher baseline of concept complexity in middle layers and adapt much more gracefully to downstream tasks without drastically altering their internal concept distributions.
Limitations and Future Work
- The Monosemanticity Assumption: CLIP-Dissect assumes that each neuron maps cleanly to a single concept. In reality, deep network neurons are often polysemantic (responding to multiple unrelated concepts), which this method might oversimplify.
- Subjectivity in Categorization: Grouping 1,450 unique neuron-labeling words into broad semantic buckets relied on LLMs and subjective human design, which could subtly influence the high-level category trends.
- Future Directions: The authors suggest that future work should explore multi-dimensional concept discovery methods to better capture polysemantic neurons and delve deeper into how concept pruning relates to the broader challenge of catastrophic forgetting.
Summary updated