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

Hanxun Huang, Sarah Erfani, Yige Li, Xingjun Ma, James Bailey
5/8/2025
cs.CVcs.AIcs.CL

Official code: HanxunH/XTransferBench (48 stars, MIT, last commit 2026-02-03).

Abstract

As Contrastive Language-Image Pre-training (CLIP) models are increasingly adopted for diverse downstream tasks and integrated into large vision-language models (VLMs), their susceptibility to adversarial perturbations has emerged as a critical concern. In this work, we introduce \textbf{X-Transfer}, a novel attack method that exposes a universal adversarial vulnerability in CLIP. X-Transfer generates a Universal Adversarial Perturbation (UAP) capable of deceiving various CLIP encoders and downstream VLMs across different samples, tasks, and domains. We refer to this property as \textbf{super transferability}--a single perturbation achieving cross-data, cross-domain, cross-model, and cross-task adversarial transferability simultaneously. This is achieved through \textbf{surrogate scaling}, a key innovation of our approach. Unlike existing methods that rely on fixed surrogate models, which are computationally intensive to scale, X-Transfer employs an efficient surrogate scaling strategy that dynamically selects a small subset of suitable surrogates from a large search space. Extensive evaluations demonstrate that X-Transfer significantly outperforms previous state-of-the-art UAP methods, establishing a new benchmark for adversarial transferability across CLIP models. The code is publicly available in our \href{https://github.com/HanxunH/XTransferBench}{GitHub repository}.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2025] X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP

482PythonMay 3, 20258 months agoMIT

Similar Papers

Cite this paper

@article{huang2025xtransfer,
  title  = {X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP},
  author = {Hanxun Huang and Sarah Erfani and Yige Li and Xingjun Ma and James Bailey},
  year   = {2025},
  eprint = {2505.05528},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.05528v3},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.05528.svg)](https://codeofpaper.com/paper/2505.05528)

Discussion