Toward a Holistic Evaluation of Robustness in CLIP Models

Weijie Tu, Weijian Deng, Tom Gedeon

TL;DR

While Contrastive Language-Image Pre-training (CLIP) models are celebrated for exceptional zero-shot generalization, aggregate accuracy figures mask critical perceptual and safety vulnerabilities. By evaluating over 120 CLIP variants and 127 baselines across visual factor variations, calibration, out-of-distribution (OOD) detection, 3D awareness, and LMM integration, this study reveals essential architectural and fine-tuning trade-offs—such as CNNs heavily outperforming Vision Transformers on 3D robustness, and standard fine-tuning stripping away CLIP’s human-like shape bias.

What Problem Does This Paper Address?

Standard evaluations of CLIP focus almost exclusively on 2D top-1 classification accuracy across natural distribution shifts (e.g., ImageNet-A/R/Sketch). However, real-world deployment demands safety and reliability:

  • How does CLIP handle fine-grained visual variations like pose, lighting, or partial occlusion?
  • Can it reliably detect out-of-distribution inputs and output well-calibrated confidence scores?
  • Does CLIP possess true 3D geometric awareness?
  • How does CLIP’s vision encoder interact with modern Large Multimodal Models (LMMs) like LLaVA?

The authors conduct a holistic evaluation across task-, model-, and data-level dimensions to expose the underlying mechanisms driving CLIP's reliability.

Methods

The authors benchmarked 84 zero-shot CLIP models, 44 fine-tuned CLIP models, and 127 ImageNet-trained baselines across six key variables:

  1. Model Architecture: Vision Transformers (ViT, EVA) vs. Convolutional Networks (ResNet, ConvNeXt).
  2. Training Distribution: WIT vs. LAION vs. CommonPool subsets.
  3. Training Scale: Ranging from 3 million to 2 billion image-text pairs.
  4. Fine-Tuning Strategies: Standard cross-entropy, intermediate pre-training (ImageNet-12K), contrastive fine-tuning (FLYP), robust weight-averaging (WiSE-FT, LP-FT), and parameter-efficient prompt tuning (CoOp, Tip-Adapter, PromptSRC).
  5. Prompt Engineering: Evaluating manual prompts, single-word prompts, and LLM-generated chains-of-thought (e.g., GPT-4, Mistral).
  6. LMM Dissection: Measuring the interaction of frozen CLIP/SigLIP vision backbones with various LLMs (Mistral-7B, Llama-2, Vicuna) inside LLaVA.

Datasets

  • Visual Factors & Bias: ImageNet-X (10 fine-grained visual factors like Pose, Scale, Color, Texture), Cue-Conflict Stimuli, and Stylized-ImageNet.
  • OOD Detection: ImageNet (ID) vs. iNaturalist, SUN, PLACES, TEXTURE, ImageNet-O, and NINCO (an ID-contamination-free OOD benchmark).
  • Calibration: ImageNet-Val evaluated alongside ImageNet-V2, ImageNet-R, ImageNet-A, ImageNet-Sketch, ObjectNet, and ImageNet-Vid-Robust.
  • Retrieval & 3D Awareness: Flickr30K, MSCOCO; ScanNet, NAVI, SPair-71K (geometric/semantic correspondence), and 3D Common Corruptions (3DCC).
  • LMM Evaluation: ImageNet-D (challenging text-to-image diffusion-generated categories).

Key Insights and Ideas

  • CNNs Dominate ViTs in 3D Understanding: Despite ViTs dominating 2D leaderboards, CNN-based CLIP models significantly outperform ViT-based CLIPs in geometric correspondence matching and 3D corruptions (e.g., fog, motion blur, near/far focus). As 3D corruption intensity increases, the performance gap widens in favor of CNNs.
  • Fine-Tuning Destroys Shape Bias: Zero-shot CLIP models exhibit strong, human-like shape bias (even with CNN backbones). However, standard supervised fine-tuning on ImageNet strips this away, biasing the model toward fragile surface textures. Interestingly, contrastive fine-tuning (FLYP) or parameter-efficient tuning (PromptSRC) preserves this shape bias.
  • Calibration Trade-offs: Fine-tuning CLIP consistently improves raw accuracy at the cost of confidence calibration. However, zero-shot CLIP shows an unusual superpower: post-hoc temperature scaling applied to ID data transfers remarkably well to OOD sets (e.g., ImageNet-A), unlike standard models.
  • When LLaVA Helps (and When It Doesn't): LLaVA does not uniformly beat standalone CLIP. When the candidate classes are easy for CLIP, LLaVA provides no benefit and can degrade accuracy due to language model over-interpretation. When classes are highly ambiguous or difficult, LLaVA's LLM leverages external reasoning to achieve accuracy gains exceeding 20%.

Key Results

  • Factor Robustness: CLIP surpasses standard ImageNet models on 6 of 10 factors (Subcategory, Smaller, Color, Shape, Texture, Larger), but remains noticeably fragile on Pose and Partial View.
  • OOD Detection: An intermediate fine-tuning step on ImageNet-12K substantially boosts OOD detection on both standard OOD datasets and NINCO, outperforming direct ImageNet-1K tuning.
  • Data Curation: Curated pre-training data (DFN-2B, MetaCLIP) systematically improves classification accuracy, OOD AUROC, and 3D robustness over raw web crawls (LAION-400M/2B), but has negligible impact on confidence calibration.

Limitations and Future Work

  • Training Source Diversity: Evaluations focused primarily on academic web-scrapes (LAION, WIT, CommonPool); synthetic training sources (e.g., Stable Diffusion generations) remain unexplored.
  • Broader LMM Coverage: The vision-language interaction analysis was limited to LLaVA; newer vision-language architectures like BLIP-3 or Otter warrant further study.
  • Unified Fine-Tuning: Current adaptation strategies present zero-sum trade-offs between accuracy, calibration, and 3D robustness, demonstrating the need for holistic adaptation objectives.

Summary updated

BibTeX
@article{tu2026toward,
  author = {Weijie Tu and Weijian Deng and Tom Gedeon},
  title = {{Toward a Holistic Evaluation of Robustness in CLIP Models}},
  journal = {IEEE TPAMI},
  year = {2026},
  url = {https://openreview.net/forum?id=m9tPrVaONZ},
}
Figure