Vision as the Primary Vulnerability: A Systematic Study of CLIP’s Adversarial Robustness

We systematically evaluate CLIP’s adversarial robustness across vision and language modalities. Our findings identify the vision encoder as the primary vulnerability, with simultaneous multimodal attacks causing the largest performance degradation. These results highlight the necessity of targeted, modality-specific defenses for stable deployment.

At a glance

  • Vision modality attacks consistently cause greater performance degradation and variability than text attacks across benchmarks.
  • Simultaneous multimodal attacks yield the largest performance drops, indicating CLIP lacks cross-modal robustness.
  • Retraining strategies allowing the vision encoder to adapt improve both average performance and operational stability.

Experimental Setup and Attack Configuration

We conducted a systematic empirical study of CLIP’s adversarial robustness by applying gradient-based attacks to the vision modality, the language modality, and both modalities jointly. The evaluation utilized two multimodal classification benchmarks: the Facebook Hateful Memes dataset and a large-scale Suspicious Car Parts dataset constructed using a graph-based labeling methodology. For the Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD) attacks, we employed a perturbation magnitude of ε = 8/255. This value was selected to ensure subtle but effective alterations to the input, allowing us to isolate the specific vulnerabilities of each encoder without overwhelming the model’s capacity.

Vision Modality as the Primary Vulnerability

Our results consistently demonstrate that the vision modality in CLIP is the primary adversarial vulnerability. Across both the Hateful Memes and Suspicious Car Parts datasets, image-modality attacks caused greater performance degradation and greater run-to-run variability than text-modality attacks. This asymmetry holds for both FGSM and PGD methods. We attribute this difference to the architectural characteristics of the inputs: images are represented as continuous pixel values, making them naturally susceptible to small gradient-based perturbations. In contrast, text inputs are discrete tokens that must be converted into embeddings. This discrete nature provides inherent robustness because attacks cannot directly modify the original tokens, whereas slight changes in pixel intensity can pass through the vision encoder and significantly alter the resulting embedding.

Impact of Simultaneous Multimodal Attacks

When both modalities are attacked simultaneously, CLIP exhibits the largest performance drop compared to single-modality attacks. For instance, on the Hateful Memes dataset, attacking only the vision modality reduces the F1-score from 75 to 62.34, while attacking the language modality results in a score of 62.29. In the Suspicious Car Parts dataset, vision-only attacks reduce balanced accuracy from 79 to 74, matching the degradation caused by language-only attacks at 74.61. However, the simultaneous attack on both modalities yields the most significant decline. This indicates that CLIP is not robust across modalities and remains vulnerable to multimodal perturbations, suggesting that defenses targeting a single encoder are insufficient for comprehensive protection.

Retraining Strategies and Operational Stability

From a deployment perspective, variability is as important as mean performance. A system with slightly lower accuracy but stable results may be more reliable than one with higher mean accuracy but unpredictable failures, particularly in high-risk applications like content moderation or fraud detection. Our evaluation of adversarial retraining strategies shows that allowing the vision encoder to adapt not only improves average performance but also leads to more consistent and predictable behavior. This practical benefit is often overlooked when results are reported only as mean values without considering variability. Modality-specific defenses focused on the vision encoder can achieve greater competitive robustness than full-model adversarial training, highlighting the value of targeted adaptation in stable, high-stakes environments.

Architectural Choice for Embedding Fusion

In our model design, the two normalized embeddings are fused by concatenation along the feature dimension to form a single multimodal representation. We chose concatenation over element-wise operations such as addition or multiplication because it preserves the full, independent information content of both modalities in a single vector. This approach allows the subsequent classification head to learn modality-specific discriminative features rather than forcing them into a shared activation pattern. By maintaining the distinct characteristics of the vision and text embeddings, the architecture can better leverage the unique strengths of each modality during the classification process.

Read and cite this paper

Understanding Modality-Specific Vulnerabilities in Vision–Language Models Under Adversarial Attacks

Maisha Binte Rashid; Pablo Rivas. "Understanding Modality-Specific Vulnerabilities in Vision–Language Models Under Adversarial Attacks." AI, vol. 7, no. 4, pp. 135. April 2026. DOI: 10.3390/ai7040135. Available: https://rivas.ai/pdfs/rashid2026understanding.pdf

Read the paper (PDF) · Original BibTeX

DOI

Original BibTeX text
@article{rashid2026understanding,
  author    = {Rashid, Maisha Binte and Rivas, Pablo},
  title     = {Understanding Modality-Specific Vulnerabilities in Vision--Language Models Under Adversarial Attacks},
  journal   = {AI},
  volume    = {7},
  number    = {4},
  pages     = {135},
  month     = {Apr},
  year      = {2026},
  publisher = {MDPI},
  doi       = {10.3390/ai7040135},
  url       = {https://doi.org/10.3390/ai7040135}
}