Toward a Holistic Evaluation of Robustness in CLIP Models
Weijie Tu, Weijian Deng, Tom Gedeon
TL;DR
This paper presents a holistic robustness evaluation for CLIP models, extending beyond accuracy to cover visual-factor robustness, OOD detection, calibration, zero-shot retrieval, 3D awareness, and vision–language encoder interactions. Using a large-scale, multi-faceted experimental design, it analyzes 84 zero-shot CLIP models, 44 ImageNet-finetuned CLIP models, 127 ImageNet baselines, and LLaVA variants across diverse data sources and evaluation benchmarks. Key findings include the strong factor-level robustness of CLIP relative to baselines, the persistent shape-bias in zero-shot but its attenuation with fine-tuning, and pronounced effects of training distribution, fine-tuning strategies, and test-time prompts on safety-related objectives. The work provides practical guidance for designing robust Vision-Language models and highlights the need for multi-dimensional evaluation to ensure reliability in real-world deployments.
Abstract
Contrastive Language-Image Pre-training (CLIP) models have shown significant potential, particularly in zero-shot classification across diverse distribution shifts. Building on existing evaluations of overall classification robustness, this work aims to provide a more comprehensive assessment of CLIP by introducing several new perspectives. First, we investigate their robustness to variations in specific visual factors. Second, we assess two critical safety objectives--confidence uncertainty and out-of-distribution detection--beyond mere classification accuracy. Third, we evaluate the finesse with which CLIP models bridge the image and text modalities. Fourth, we extend our examination to 3D awareness in CLIP models, moving beyond traditional 2D image understanding. Finally, we explore the interaction between vision and language encoders within modern large multimodal models (LMMs) that utilize CLIP as the visual backbone, focusing on how this interaction impacts classification robustness. In each aspect, we consider the impact of six factors on CLIP models: model architecture, training distribution, training set size, fine-tuning, contrastive loss, and test-time prompts. Our study uncovers several previously unknown insights into CLIP. For instance, the architecture of the visual encoder in CLIP plays a significant role in their robustness against 3D corruption. CLIP models tend to exhibit a bias towards shape when making predictions. Moreover, this bias tends to diminish after fine-tuning on ImageNet. Vision-language models like LLaVA, leveraging the CLIP vision encoder, could exhibit benefits in classification performance for challenging categories over CLIP alone. Our findings are poised to offer valuable guidance for enhancing the robustness and reliability of CLIP models.
