NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

From Colors to Classes: Emergence of Concepts in Vision Transformers

Teresa Dorszewski, Lenka Tětková, Robert Jenssen, Lars Kai Hansen, Kristoffer Knutsen Wickstrøm

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:

  1. 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.
  2. 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.
Figure 3: Categories of concepts compared across models. Early layers focus mostly on colors while middle layers have a large proportion of neurons assigned to textures and materials while objects and natural elements appear in later layers. The overall trend is similar for all models but small differences can be observed, e.g. CLIP has a higher amount of neurons assigned to activities in late layers.
  • 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.
Figure 4: Examples of the highest activating images for five neurons after the first, the sixth and the last transformer block in the sup-ViT model. While this only shows a small subset, the images are representative of most highest activating images, also across models, and show how the models react mainly to simple images in early layers and more complex images in later layers. Similar plots for other models can be found in the Appendix Figure 9.
  • 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

BibTeX
@inproceedings{dorszewski2025from,
  author = {Teresa Dorszewski and Lenka Tětková and Robert Jenssen and Lars Kai Hansen and Kristoffer Knutsen Wickstrøm},
  title = {{From Colors to Classes: Emergence of Concepts in Vision Transformers}},
  booktitle = {xAI},
  year = {2025},
  doi = {10.1007/978-3-032-08317-3\_2},
}
Figure