Robust multimodal models have outlier features and encode more concepts

Jonathan Crabbé, Pau Rodríguez, Vaishaal Shankar, Luca Zappella, Arno Blaas

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. 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. Lastly, we investigate the number of unique encoded concepts and find zero-shot CLIP models to encode a higher number of unique concepts, likely due to language supervision.

Introduction

Large multimodal models like CLIP (Contrastive Language-Image Pre-training) are remarkably robust to distribution shifts. When evaluated on shifted versions of ImageNet—such as sketches, renditions, or adversarial examples—CLIP maintains its performance far better than models trained only on labeled images. While researchers have established that the scale and diversity of training data are the primary drivers of this robustness, the internal structural manifestations of this property have remained largely unexplored. This paper investigates the internal representation space of 39 different models to identify the structural hallmarks of a robust vision encoder.

Methods and Datasets

The study analyzed 16 robust zero-shot CLIP models and compared them against non-robust versions, including supervised models and those fine-tuned on ImageNet. The researchers used three primary analytical techniques:

  1. Activation Kurtosis: A statistical measure to identify "outlier features"—specific components in a layer that fire with much higher intensity than others.
  2. Singular Value Decomposition (SVD): Used to identify "privileged directions" in the representation space.
  3. Concept Probing: Using the Broden dataset to test whether specific directions correspond to human-understandable concepts.

Models were trained on datasets including OpenAI’s private set, LAION-400M, LAION-2B, YFCC15M, CC12M, and DataComp. Robustness was evaluated using ImageNet and five natural distribution shifts: ImageNet-V2, ImageNet-R, ImageNet-Sketch, ObjectNet, and ImageNet-A.

The Outlier Signature of Robustness

A central finding is that robust models consistently exhibit "outlier features"—activations several orders of magnitude larger than the average. This is the first time such features have been documented in non-Transformer architectures like ResNets, suggesting they are a property of the training process rather than the architecture itself.

Effective Robustness (ER) across model architectures. Robust zero-shot CLIP models (blue) show significantly higher ER compared to fine-tuned (green) or supervised (orange) models.

Outlier features appear to be a reliable indicator of robustness. The researchers found them exclusively in robust models; when a model is fine-tuned on standard ImageNet (which typically degrades out-of-distribution robustness), these outlier features disappear. Statistical analysis via kurtosis confirms this: robust models show activation kurtosis values significantly higher than the baseline for a normal distribution, while non-robust models hover near the baseline.

Activation Kurtosis as a measure of outlier features. Robust models exhibit extremely high kurtosis, indicating the presence of high-intensity activation outliers.

Concept Density and Representation Space

Models trained with language supervision (CLIP) encode significantly more unique concepts—typically between 600 and 700—than those trained with labels. This leads to high polysemanticity, where a single feature represents multiple unrelated ideas simultaneously.

Furthermore, the researchers found that the "intelligence" of these models is concentrated in a very small number of privileged directions. Pruning the bottom 80% of the representation space results in almost no loss in accuracy or robustness. In robust zero-shot models, these primary directions represent generic textures (e.g., "meshed," "flecked"). Once fine-tuned, the model replaces these with concrete, narrow objects (e.g., "martial arts gym"), which reduces its flexibility and robustness.

Conclusion

The presence of outlier features provides a novel "signature" for model robustness that can be detected without access to shifted datasets. This offers a practical tool for practitioners to audit a model's robustness during deployment. While the study focused on ImageNet-family shifts, future work could investigate whether these findings generalize to more extreme shifts and how different forms of language supervision might further enhance concept density and robustness.

Summary updated

BibTeX
@article{crabbe2024robust,
  author = {Jonathan Crabbé and Pau Rodríguez and Vaishaal Shankar and Luca Zappella and Arno Blaas},
  title = {{Robust multimodal models have outlier features and encode more concepts}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=1SCptTFtmV},
}
Figure