Skip to main navigation Skip to search Skip to main content

Diversifying Counterattacks: Orthogonal Exploration for Robust CLIP Inference

  • Chengze Jiang
  • , Minjing Dong
  • , Xinli Shi
  • , Jie Gui*
  • *Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review

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
Original languageEnglish
Title of host publicationProceedings of the 40th Annual AAAI Conference on Artificial Intelligence
Place of PublicationWashington, DC
PublisherAAAI Press
Pages5359-5368
Number of pages10
Volume40
ISBN (Print)978-1-57735-906-7, 1-57735-906-2
DOIs
Publication statusPublished - 2026
Event40th 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

NameProceedings of the AAAI Conference on Artificial Intelligence
PublisherAAAI Press
Number7
Volume40
ISSN (Print)2159-5399
ISSN (Electronic)2374-3468

Conference

Conference40th Annual AAAI Conference on Artificial Intelligence (AAAI-26)
Abbreviated titleAAAI-26
PlaceSingapore
Period20/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