Language-Driven Anchors for Zero-Shot Adversarial Robustness

Xiao Li, Wei Zhang, Yining Liu, Zhanhao Hu, Bo Zhang +1 more
1/30/2023
cs.CVcs.AIcs.LG

No official code found. Best implementation: LixiaoTHU/LAAT (9 stars, MIT, last commit 2024-03-10).

Abstract

Deep Neural Networks (DNNs) are known to be susceptible to adversarial attacks. Previous researches mainly focus on improving adversarial robustness in the fully supervised setting, leaving the challenging domain of zero-shot adversarial robustness an open question. In this work, we investigate this domain by leveraging the recent advances in large vision-language models, such as CLIP, to introduce zero-shot adversarial robustness to DNNs. We propose LAAT, a Language-driven, Anchor-based Adversarial Training strategy. LAAT utilizes the features of a text encoder for each category as fixed anchors (normalized feature embeddings) for each category, which are then employed for adversarial training. By leveraging the semantic consistency of the text encoders, LAAT aims to enhance the adversarial robustness of the image model on novel categories. However, naively using text encoders leads to poor results. Through analysis, we identified the issue to be the high cosine similarity between text encoders. We then design an expansion algorithm and an alignment cross-entropy loss to alleviate the problem. Our experimental results demonstrated that LAAT significantly improves zero-shot adversarial robustness over state-of-the-art methods. LAAT has the potential to enhance adversarial robustness by large-scale multimodal models, especially when labeled data is unavailable during training.

View on arXivView PDF

Code Implementations(1)

LixiaoTHU/LAATCommunity100%
MIT

The official code of "Language-Driven Anchors for Zero-Shot Adversarial Robustness"

90PythonFeb 28, 20242 years agoMIT

Similar Papers

Cite this paper

@article{li2023languagedriven,
  title  = {Language-Driven Anchors for Zero-Shot Adversarial Robustness},
  author = {Xiao Li and Wei Zhang and Yining Liu and Zhanhao Hu and Bo Zhang and Xiaolin Hu},
  year   = {2023},
  eprint = {2301.13096},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.13096v3},
  journal = {CVPR 2023 2023}
}

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

Discussion