Diversifying Counterattacks: Orthogonal Exploration for Robust CLlP Inference

Authors

  • Chengze Jiang Southeast University, Nanjing, China
  • Minjing Dong City University of Hong Kong, Hong Kong
  • Xinli Shi Southeast University, Nanjing, China
  • Jie Gui Southeast University, Nanjing, China Engineering Research Center of Blockchain Application, Supervision And Management (Southeast University), Ministry of Education, China Purple Mountain Laboratories, China

DOI:

https://doi.org/10.1609/aaai.v40i7.37452

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 could 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.

Published

2026-03-14

How to Cite

Jiang, C., Dong, M., Shi, X., & Gui, J. (2026). Diversifying Counterattacks: Orthogonal Exploration for Robust CLlP Inference. Proceedings of the AAAI Conference on Artificial Intelligence, 40(7), 5359–5368. https://doi.org/10.1609/aaai.v40i7.37452

Issue

Section

AAAI Technical Track on Computer Vision IV