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

Sunoh Kim, Daeho Um
6/5/2026
2 citations
cs.CV

Official code: sunoh-kim/MAC (5 stars, Python, MIT, last commit 2026-07-20).

Abstract

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 to improve CLIP's robustness by perturbing an input image to steer it away from a corrupted state during inference.

Show full abstract

However, TTC remains fragile under strong attacks because its counterattack relies on a directly corrupted original view and employs a noise-driven hard-gating scheme that cannot adapt to varying corruption severity. To address these limitations, we introduce Multi-view guided Adaptive Counterattack (MAC), which performs counterattacks for multi-view with corruption-aware soft weighting. Specifically, MAC first constructs augmented views of an input image to obtain diverse embeddings. It then performs counterattacks to refine corrupted embeddings of views. Next, MAC adaptively scales the counterattack intensity for each view based on its estimated corruption degree. Finally, the adaptively counterattacked views are aggregated to yield a robust final prediction. Extensive experiments across 20 datasets and diverse attack scenarios demonstrate that MAC substantially improves robustness while preserving high inference speed and memory efficiency with its tuning-free design. Our code is available at https://github.com/sunoh-kim/MAC.

View on arXivView PDF

Code Implementations(1)

sunoh-kim/MACOfficial100%
MIT

Official PyTorch implementation of the CVPR 2026 paper: "When CLIP Sees More, It Fights Back Harder: Multi-View Guided Adaptive Counterattacks for Test-Time Adversarial Robustness".

51Python, ShellFeb 21, 20264 months agoMIT

Similar Papers

Cite this paper

@article{kim2026when,
  title  = {When CLIP Sees More, It Fights Back Harder: Multi-View Guided Adaptive Counterattacks for Test-Time Adversarial Robustness},
  author = {Sunoh Kim and Daeho Um},
  year   = {2026},
  eprint = {2606.06938},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.06938v1},
  journal = {CVPR 2026 2026}
}

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/2606.06938.svg)](https://codeofpaper.com/paper/2606.06938)

Discussion