X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP

Hanxun Huang, Sarah M. Erfani, Yige Li, Xingjun Ma, James Bailey · DOI

Introduction

Contrastive Language-Image Pre-training (CLIP) models have emerged as the foundational vision components for modern large Vision-Language Models (VLMs), including LLaVA, MiniGPT-4, and OpenFlamingo. While these models demonstrate remarkable zero-shot capabilities, their widespread adoption creates a significant security bottleneck. If a single adversarial vulnerability can be exploited across diverse architectures and tasks, the entire ecosystem of CLIP-based applications is at risk.

This paper introduces X-Transfer, a novel framework designed to generate "Super Transferable" Universal Adversarial Perturbations (UAPs). Unlike traditional attacks that target specific images or models, X-Transfer produces a single noise pattern that remains effective across different images, datasets, model architectures, and even entirely different downstream tasks, such as visual question answering (VQA) and image captioning.

The Challenge of Universal Transferability

Universal Adversarial Perturbations (UAPs) are image-agnostic noise patterns that, when added to any input, cause a model to misclassify it. To ensure these perturbations transfer to "black-box" models (models whose weights are unknown to the attacker), researchers typically use an ensemble of surrogate models during the generation process.

However, scaling this approach is computationally prohibitive. Computing gradients for an ensemble of dozens of diverse architectures at every optimization step requires massive GPU resources. Furthermore, existing UAPs often fail to transfer across different task domains—for instance, a perturbation designed to fool a classifier might not successfully disrupt a generative VLM. X-Transfer addresses these limitations through a strategy of efficient surrogate scaling.

The X-Transfer Framework

Efficient Surrogate Scaling

Rather than utilizing a fixed, massive ensemble, X-Transfer defines a large search space of $N$ surrogate models (up to 64 diverse architectures and training recipes). At each optimization step, the algorithm dynamically selects a small subset of $k$ models (e.g., $k=4$) to update the perturbation.

Multi-Armed Bandit Selection

To determine which models to sample, X-Transfer employs the Upper Confidence Bound (UCB) algorithm, treating the surrogate selection as a Multi-Armed Bandit problem. The "reward" for selecting a specific model is defined by how effectively it resists the current version of the UAP. By prioritizing these "hard-to-fool" models, X-Transfer forces the perturbation to adapt to the most resilient features of the surrogate pool. This approach ensures universal effectiveness across the entire search space without the computational overhead of standard ensembling.

Experimental Setup and X-TransferBench

The authors evaluated X-Transfer using a comprehensive suite of datasets and models.

  • Surrogate Data: ImageNet and MSCOCO were used for UAP generation.
  • Evaluation Tasks: The attack was tested on zero-shot classification (CIFAR, Food101, GTSRB, etc.), image retrieval (Flickr-30K), and complex VLM tasks (OK-VQA, VizWiz).
  • X-TransferBench: To facilitate further research, the authors introduced an open-source repository containing pre-generated, highly transferable UAPs and Targeted UAPs (TUAPs) for community evaluation.

Key Results and Insights

Super Transferability Across Models and Tasks

X-Transfer achieves state-of-the-art performance, significantly outperforming existing UAP baselines. Using a search space of 64 models, it achieved an average zero-shot classification Attack Success Rate (ASR) of 75.6% across nine unseen black-box CLIP models. Remarkably, these perturbations also successfully degraded the performance of autoregressive VLMs like LLaVA and MiniGPT-4, despite the attack never explicitly targeting their text-generation objectives.

Computational Efficiency

The dynamic sampling strategy provides massive efficiency gains. While standard ensembling of 16 models required 8.0 GPU days, X-Transfer (sampling 4 models from a pool of 16) achieved comparable or superior transferability in just 2.3 GPU days.

Semantic Interpretability of Perturbations

A fascinating finding of this research is that non-targeted UAPs generated against CLIP models exhibit discernible semantic features. Unlike the random static typical of standard classifier UAPs, X-Transfer perturbations often resemble colorful architectural structures or garbled text. The authors discovered a direct link between these patterns and the surrogate models' pre-training data; for example, surrogates trained on remote sensing data produced UAPs resembling satellite imagery. Despite these human-recognizable patterns, victim models often interpreted the noise as completely unrelated concepts, such as "cheese" or "ice warning."

Targeted Attacks

X-Transfer is also capable of generating Targeted UAPs (TUAPs). These allow an adversary to force a VLM to output specific, pre-defined text regardless of the actual image content—such as forcing a model to describe a serene landscape as a "great white shark."

Conclusion and Future Work

X-Transfer demonstrates that the shared representational space of CLIP models is highly vulnerable to efficient, large-scale adversarial attacks. While adversarial training (such as TeCoA) offers some protection against standard perturbations, these models remain vulnerable to $L_2$-norm attacks and adversarial patches generated via X-Transfer. The authors emphasize the urgent need for robust defense mechanisms as VLMs are increasingly integrated into safety-critical environments, suggesting that future work should further explore the relationship between pre-training data distributions and adversarial vulnerability.

Summary updated

BibTeX
@inproceedings{huang2025x,
  author = {Hanxun Huang and Sarah M. Erfani and Yige Li and Xingjun Ma and James Bailey},
  title = {{X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=8zsMorEU8U},
}
Figure