Abstract
What distinguishes robust models from non-robust ones? While for ImageNet distribution shifts it has been shown that such differences in robustness can be traced back predominantly to differences in training data, so far it is not known what that translates to in terms of what the model has learned. In this work, we bridge this gap by probing the representation spaces of 16 robust zero-shot CLIP vision encoders with various backbones (ResNets and ViTs) and pretraining sets (OpenAI, LAION-400M, LAION-2B, YFCC15M, CC12M and DataComp), and comparing them to the representation spaces of less robust models with identical backbones, but different (pre)training sets or objectives (CLIP pretraining on ImageNet-Captions, and supervised training or finetuning on ImageNet). Through this analysis, we generate three novel insights. Firstly, we detect the presence of outlier features in robust zero-shot CLIP vision encoders, which to the best of our knowledge is the first time these are observed in non-language and non-transformer models. Secondly, we find the existence of outlier features to be an indication of ImageNet shift robustness in models, since we only find them in robust models in our analysis. Lastly, we also investigate the number of unique encoded concepts in the representation space and find zero-shot CLIP models to encode a higher number of unique concepts in their representation space. However, we do not find this to be an indicator of ImageNet shift robustness and hypothesize that it is rather related to the language supervision.
Introduction
Computer vision models are notoriously fragile. A model trained to recognize objects on the standard ImageNet dataset often fails significantly when tested on "natural shifts"—such as sketches (ImageNet-Sketch) or photos from unusual angles (ObjectNet). OpenAI’s CLIP (Contrastive Language-Image Pre-training) demonstrated remarkable "zero-shot" robustness, maintaining high accuracy across these shifts. While previous research established that CLIP’s success stems from its massive, diverse training data, the internal mechanisms that facilitate this robustness have remained unclear. This study investigates the internal representation spaces of robust models to identify the features that distinguish them from their non-robust counterparts.
Methods
We analyzed the representation spaces of 39 models, including 16 robust zero-shot CLIP encoders and several non-robust baselines (supervised models or CLIP models trained on restricted datasets). The models spanned various architectures, including ResNet50, ResNet101, and several Vision Transformer (ViT) variants.
Three primary analytical techniques were used:
- Activation Kurtosis: A statistical measure used to detect "outlier features"—individual neurons that fire with intensities orders of magnitude higher than average.
- Singular Value Decomposition (SVD): Used to identify "privileged directions" in the weight matrices, representing the mathematical paths the model relies on most for predictions.
- Concept Probing: Using the Broden dataset, internal directions were mapped to 1,197 human-understandable concepts (e.g., textures, colors, objects) to interpret what the model prioritizes.
Robustness was evaluated using the "ImageNet family" of distribution shifts: ImageNet-V2, ImageNet-R (Renditions), ImageNet-Sketch, ObjectNet, and ImageNet-A (Adversarial).
Results and Discussion
Performance and Robustness Metrics
Our evaluation confirms that zero-shot CLIP models maintain significantly higher accuracy under distribution shifts compared to supervised or fine-tuned models. As shown in Figure 3, robust zero-shot models exhibit higher "Effective Robustness" (ER) and a greater percentage of accuracy maintained across shifted datasets.
Outliers as a Signature of Robustness
The most significant finding is that robust models possess distinct outlier features, characterized by high activation kurtosis. While non-robust supervised models show kurtosis values near 3 (typical of a Gaussian distribution), robust CLIP models exhibit values ranging from 10 to over 90. Notably, this study is the first to document these outliers in ResNet architectures, suggesting they are a product of scale and training objectives rather than specific Transformer mechanics.
The Impact of Fine-Tuning
Fine-tuning a robust CLIP model on ImageNet creates a performance paradox: while accuracy on the standard ImageNet set increases, internal kurtosis "collapses," and effective robustness drops significantly. This suggests that the narrow supervision of ImageNet training suppresses the diverse, robust features learned during broad pre-training.
Concept Diversity vs. Structure
While CLIP models encode a broader range of unique human concepts than supervised models, this diversity alone does not guarantee robustness. Some non-robust models also recognized many concepts. Instead, the structure of the features—specifically the presence of outliers and the prioritization of abstract concepts (like "meshed" or "flecked") over concrete ones (like "tennis court")—appears to be the critical factor for maintaining performance under shift.
Conclusion
This work identifies outlier features as a reliable internal indicator of ImageNet shift robustness. These "spiky" activations appear consistently in robust models across different architectures and vanish upon fine-tuning on narrower datasets. While these findings provide a new "smoke detector" for robustness, future research is needed to determine if these features are a cause or a byproduct of robustness and if these insights extend beyond the ImageNet ecosystem to domains like medical or satellite imagery.
Summary updated