paper-with-me

Papers

CLIP is Strong Enough to Fight Back: Test-time Counterattacks towards Zero-shot Adversarial Robustness of CLIP

2025-03-05 · CVPR 2025 1 · Songlong Xing, Zhengyu Zhao, Nicu Sebe

Despite its prevalent use in image-text matching tasks in a zero-shot manner, CLIP has been shown to be highly vulnerable to adversarial perturbations added onto images. Recent studies propose to finetune the vision encoder of CLIP with adversarial samples generated on the fly, and show improved robustness against adversarial attacks on a spectrum of downstream datasets, a property termed as zero-shot robustness. In this paper, we show that malicious perturbations that seek to maximise the classification loss lead to `falsely stable' images, and propose to leverage the pre-trained vision encoder of CLIP to counterattack such adversarial images during inference to achieve robustness. Our paradigm is simple and training-free, providing the first method to defend CLIP from adversarial attacks at test time, which is orthogonal to existing methods aiming to boost zero-shot adversarial robustness of CLIP. We conduct experiments across 16 classification datasets, and demonstrate stable and consistent gains compared to test-time defence methods adapted from existing adversarial robustness studies that do not rely on external networks, without noticeably impairing performance on clean images. We also show that our paradigm can be employed on CLIP models that have been adversarially finetuned to further enhance their robustness at test time. Our code is available \href{https://github.com/Sxing2/CLIP-Test-time-Counterattacks}{here}.

📄 PDF Abstract BibTeX arXiv:2503.03613

Code (1)

Sxing2/CLIP-Test-time-Counterattacks 공식 구현 pytorch

Tasks

Adversarial RobustnessImage-text matchingText Matching

Methods 이 논문이 사용한 방법론

CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

Similar Papers 제목 키워드 기반

When CLIP Sees More, It Fights Back Harder: Multi-View Guided Adaptive Counterattacks for Test-Time Adversarial Robustness

2026-06-05 · Sunoh Kim, Daeho Um arxiv

Vision-language models such as CLIP have achieved remarkable zero-shot recognition capabilities, yet their robustness against adversarial perturbations remains limited. Test-time counterattack (TTC) was recently proposed…

Adversarial Robustness

Self-Calibrated Consistency can Fight Back for Adversarial Robustness in Vision-Language Models

2025-10-26 · Jiaxiang Liu, Jiawei Du, Xiao Liu, Prayag Tiwari 외 arxiv

Pre-trained vision-language models (VLMs) such as CLIP have demonstrated strong zero-shot capabilities across diverse domains, yet remain highly vulnerable to adversarial perturbations that disrupt image-text alignment a…

Adversarial Robustness

Unsupervised Multi-stream Highlight detection for the Game "Honor of Kings"

2019-10-14 · Li Wang, Zixun Sun, Wentao Yao, Hui Zhan 외

With the increasing popularity of E-sport live, Highlight Flashback has been a critical functionality of live platforms, which aggregates the overall exciting fighting scenes in a few seconds. In this paper, we introduce…

Highlight Detection

Better Safe than Sorry: Pre-training CLIP against Targeted Data Poisoning and Backdoor Attacks

2023-10-05 · Wenhan Yang, Jingdong Gao, Baharan Mirzasoleiman

Contrastive Language-Image Pre-training (CLIP) on large image-caption datasets has achieved remarkable success in zero-shot classification and enabled transferability to new domains. However, CLIP is extremely more vulne…

Contrastive LearningData Poisoningzero-shot-classificationZero-Shot Learning

FootsiesGym: A Fighting Game Benchmark for Two-Player Zero-Sum Imperfect-Information Games

2026-07-07 · Chase McDonald, Nathan Tsang, Wesley N. Kerr arxiv

We present FootsiesGym, an open-source environment for learning in a non-trivial two-player, zero-sum, imperfect-information game. Built on HiFight's minimalist 2D fighting game Footsies, it isolates the cyclic, non-tran…

Reinforcement Learning