atlas

Research map / Adversarial robustness and security / Certified and empirical robustness

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

CVPR 2025 · Adversarial robustness and security › Certified and empirical robustness · approach: Adversarial training with feature consistency · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Test-time Counterattacks (TTC), a training-free PGD-based defense that pushes adversarial CLIP images away from their embeddings at inference, gated by a τ-thresholded 'false stability' check.

Problem

CLIP is highly vulnerable to adversarial perturbations in zero-shot classification; existing robustness methods (adversarial finetuning, adversarial prompt tuning) require costly training, overfit, and reduce clean accuracy.

Approach

Adversarial images are 'falsely stable' to small random noise; the method uses CLIP's own pre-trained vision encoder to craft a counterattack perturbation maximizing L2 embedding drift from the original image embedding, applied only when the τ stability check indicates an adversarial input, with weighted aggregation over PGD steps.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply TTC at test timeCLIP · 16-dataset average, ϵa = 1/255robust accuracy (%): 2.70 -> 39.17Helped
apply TTC at test timeCLIP · 16-dataset average, ϵa = 1/255clean accuracy (%): 61.51 -> 59.75Hurt
apply TTC at test timeCLIP · 16-dataset average, ϵa = 4/255robust accuracy (%): 0.09 -> 20.63±0.05Helped
apply TTC at test timeCLIP · 16-dataset average, ϵa = 4/255clean accuracy (%): 61.51 -> 55.99Hurt
apply TTC at test time to TeCoATeCoA · 16-dataset average, ϵa = 1/255robust accuracy (%): +2.48Helped
apply TTC at test time to PMG-AFTPMG-AFT · 16-dataset average, ϵa = 1/255robust accuracy (%): +2.03Helped
apply TTC at test time to FAREFARE · 16-dataset average, ϵa = 1/255robust accuracy (%): +13.89Helped
increase the number of counterattack steps N (ablation)TTC on CLIP · multiple datasets, ϵa = 1/255 and ϵa = 4/255robust accuracy (%)Mixed
increase the number of counterattack steps N (ablation)TTC on CLIP · clean images across datasetsclean accuracy (%)Mixed

Surprising findings

Limitations

Experimental setup

Datasets: TinyImageNet CIFAR10 CIFAR100 STL10 ImageNet Caltech101 Caltech256 OxfordPets Flowers102 FGVCAircraft StanfordCars SUN397

Benchmarks: CIFAR10 CIFAR100 STL10 ImageNet Caltech101 Caltech256 OxfordPets Flowers102 FGVCAircraft StanfordCars SUN397 Country211

Metrics: robust accuracy under 10-step PGD clean accuracy

Baselines: CLIP-FT TeCoA PMG-AFT FARE Random noise Test-time transformation ensembling Anti-adversary Hedge Defense

Builds on: Schlarmann et al. unsupervised attack (FARE) Hedge Defense Anti-adversary TeCoA PMG-AFT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy