mlsanityData to 7 Oct 2026

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

arXiv 2503.03613 ↗First posted 5 Mar 2025cs.CVcited by 23

Not on the map. Why?

Abstract (arXiv)

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 hrefhttps://github.com/Sxing2/CLIP-Test-time-Counterattackshere.

Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 51 of its 64 references that are in the map. First posted on arXiv 5 Mar 2025.

Builds on

51 of 64 references.

References · 51

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  4. 2023Visual Instruction Tuningcited by 7,792
  5. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  6. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  7. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  8. 2013Intriguing properties of neural networkscited by 5,114
  9. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  10. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  11. 2014Going Deeper with Convolutionscited by 4,231
  12. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
38 more
  1. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  2. 2021Learning to Prompt for Vision-Language Modelscited by 2,269
  3. 2013Describing Textures in the Wildcited by 2,110
  4. 2016Adversarial examples in the physical worldcited by 1,762
  5. 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
  6. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
  7. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  8. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
  9. 2022Conditional Prompt Learning for Vision-Language Modelscited by 1,427
  10. 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,315
  11. 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
  12. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
  13. 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
  14. 2020Fast is better than free: Revisiting adversarial trainingcited by 723
  15. 2019Adversarial Training for Free!cited by 638
  16. 2017Countering Adversarial Images using Input Transformationscited by 517
  17. 2020Overfitting in adversarially robust deep learningcited by 504
  18. 2022Diffusion Models for Adversarial Purificationcited by 469
  19. 2017Mitigating Adversarial Effects Through Randomizationcited by 382
  20. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  21. 2023On Evaluating Adversarial Robustness of Large Vision-Language Modelscited by 281
  22. 2021Recent Advances in Adversarial Training for Adversarial Robustnesscited by 276
  23. 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Modelscited by 260
  24. 2018Is Robustness the Cost of Accuracy? -- A Comprehensive Study on the Robustness of 18 Deep Image Classification Modelscited by 135
  25. 2021Adversarial purification with Score-based generative modelscited by 132
  26. 2024Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Modelscited by 119
  27. 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Modelscited by 117
  28. 2022Evaluating the Adversarial Robustness of Adaptive Test-time Defensescited by 64
  29. 2024Pre-trained Model Guided Fine-Tuning for Zero-Shot Adversarial Robustnesscited by 48
  30. 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
  31. 2021Adversarial Attacks are Reversible with Natural Supervisioncited by 47
  32. 2023Adversarial Prompt Tuning for Vision-Language Modelscited by 42
  33. 2024Few-Shot Adversarial Prompt Learning on Vision-Language Modelscited by 39
  34. 2021Attacking Adversarial Attacks as A Defensecited by 31
  35. 2021Combating Adversaries with Anti-Adversariescited by 27
  36. 2021Enhancing Adversarial Robustness via Test-time Transformation Ensemblingcited by 27
  37. 2023Language-Driven Anchors for Zero-Shot Adversarial Robustnesscited by 23
  38. 2021AID-Purifier: A Light Auxiliary Network for Boosting Adversarial Defensecited by 10

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 14.

23 papers.

Sort:

By area:

  1. 2025Enhancing CLIP Robustness via Cross-Modality Alignmentcited by 14
  2. 2025Enhancing Targeted Adversarial Attacks on Large Vision-Language Models via Intermediate Projectorcited by 5
  3. 2025NAP-Tuning: Neural Augmented Prompt Tuning for Adversarially Robust Vision-Language Modelscited by 3
  4. 2025Poisoning Prompt-Guided Sampling in Video Large Language Modelscited by 3
  5. 2025Self-Calibrated Consistency can Fight Back for Adversarial Robustness in Vision-Language Modelscited by 3
  6. 2025TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language Modelscited by 2
  7. 2026Contrastive Spectral Rectification: Test-Time Defense towards Zero-shot Adversarial Robustness of CLIPcited by 2
  8. 2025ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIPcited by 1
  9. 2025Calibrating Uncertainty for Zero-Shot Adversarial CLIPcited by 1
  10. 2026A Provable Energy-Guided Test-Time Defense Boosting Adversarial Robustness of Large Vision-Language Modelscited by 1
  11. 2026AGFT: Alignment-Guided Fine-Tuning for Zero-Shot Adversarial Robustness of Vision-Language Modelscited by 1
  12. 2026Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Modelscited by 1
11 more
  1. 2026When CLIP Sees More, It Fights Back Harder: Multi-View Guided Adaptive Counterattacks for Test-Time Adversarial Robustnesscited by 1
  2. 2025Navigating the Trade-off: A Synthesis of Defensive Strategies for Zero-Shot Adversarial Robustness in Vision-Language Modelscited by 0
  3. 2026What Makes VLMs Robust? Towards Reconciling Robustness and Accuracy in Vision-Language Modelscited by 0
  4. 2026Complementary Text-Guided Attention for Zero-Shot Adversarial Robustnesscited by 0
  5. 2026AGC: Adaptive Geodesic Correction for Adversarial Robustness on Vision-Language Modelscited by 0
  6. 2026TAME: Test-Time Adversarial Prompt Tuning via Mixture-of-Experts for Vision-Language Modelscited by 0
  7. 2026Closed-Loop Bidirectional Prompting for Adversarial Robustness of Vision Language Modelscited by 0
  8. 2026Investigating Adversarial Robustness of Multi-modal Large Language Modelscited by 0
  9. 2026SS-TPT: Stability and Suitability-Guided Test-Time Prompt Tuning for Adversarially Robust Vision-Language Modelscited by 0
  10. 2026T-VSS: Test-Time Visual Subspace Steering for Adversarial Robustness of Vision-Language Modelscited by 0
  11. 2026ReACT-CLIP: Response-Aware Test-Time Defense for Vision--Language Modelscited by 0