Few-shot adversarial prompt learning on vision-language modelsFew-Shot Adversarial Prompt Learning on Vision-Language Models
AI summary
The few-shot adversarial prompt framework adapts input sequences with only a small amount of data, significantly improving the adversarial robustness of vision-language models. The framework learns adversarial-related textual supervision end-to-end from adversarial examples, and uses a new training objective to enhance the consistency of multimodal features between natural and adversarial examples and to enlarge the differences in unimodal features. Using only 1% of the training data, it matches SOTA zero-shot adversarial robustness; the code is publicly available.