Abstract
Vision-language pre-training models (VLPs) demonstrate strong multimodal understanding and zero-shot generalization, yet remain vulnerable to adversarial examples, raising concerns about their reliability. Recent work, Test-Time Counterattack (TTC), improves robustness by generating perturbations that maximize the embedding deviation of adversarial inputs using PGD, pushing them away from their adversarial representations. However, due to the fundamental difference in optimization objectives between adversarial attacks and counterattacks, generating counterattacks solely based on gradients with respect to the adversarial input confines the search to a narrow space. As a result, the counterattacks can overfit limited adversarial patterns and lack the diversity to fully neutralize a broad range of perturbations. In this work, we argue that enhancing the diversity and coverage of counterattacks is crucial to improving adversarial robustness in test-time defense. Accordingly, we propose Directional Orthogonal Counterattack (DOC), which augments counterattack optimization by incorporating orthogonal gradient directions and momentum-based updates. This design expands the exploration of the counterattack space and increases the diversity of perturbations, which facilitates the discovery of more generalizable counterattacks and ultimately improves the ability to neutralize adversarial perturbations. Meanwhile, we present a directional sensitivity score based on averaged cosine similarity to boost DOC by improving example discrimination and adaptively modulating the counterattack strength. Extensive experiments on 16 datasets demonstrate that DOC improves adversarial robustness under various attacks while maintaining competitive clean accuracy.
© 2026, Association for the Advancement of Artificial Intelligence
© 2026, Association for the Advancement of Artificial Intelligence
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the 40th Annual AAAI Conference on Artificial Intelligence |
| Place of Publication | Washington, DC |
| Publisher | AAAI Press |
| Pages | 5359-5368 |
| Number of pages | 10 |
| Volume | 40 |
| ISBN (Print) | 978-1-57735-906-7, 1-57735-906-2 |
| DOIs | |
| Publication status | Published - 2026 |
| Event | 40th Annual AAAI Conference on Artificial Intelligence (AAAI-26) - , Singapore Duration: 20 Jan 2026 → 27 Jan 2026 Conference number: 26 https://aaai.org/conference/aaai/aaai-26/ |
Publication series
| Name | Proceedings of the AAAI Conference on Artificial Intelligence |
|---|---|
| Publisher | AAAI Press |
| Number | 7 |
| Volume | 40 |
| ISSN (Print) | 2159-5399 |
| ISSN (Electronic) | 2374-3468 |
Conference
| Conference | 40th Annual AAAI Conference on Artificial Intelligence (AAAI-26) |
|---|---|
| Abbreviated title | AAAI-26 |
| Place | Singapore |
| Period | 20/01/26 → 27/01/26 |
| Internet address |
Funding
This work was supported in part by the grant of the National Natural Science Foundation of China under Grant 62172090, in part by the Start-up Research Fund of Southeast University under Grant RF1028623097, in part by the Start-up Grant (No. 9610680) of the City University of Hong Kong, and in part by the Young Scientist Fund (No. 62406265) of NSFC. We thank the Big Data Computing Center of Southeast University for providing the facility support on the numerical calculations.
Fingerprint
Dive into the research topics of 'Diversifying Counterattacks: Orthogonal Exploration for Robust CLIP Inference'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver