paper-with-me

Papers

Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Models

2026-04-13 · Songlong Xing, Weijie Wang, Zhengyu Zhao, Jindong Gu, Philip Torr, Nicu Sebe arxiv

Despite their impressive zero-shot abilities, vision-language models such as CLIP have been shown to be susceptible to adversarial attacks. To enhance its adversarial robustness, recent studies finetune the pretrained vision encoder of CLIP with adversarial examples on a proxy dataset such as ImageNet by aligning adversarial images with correct class labels. However, these methods overlook the important roles of training data distributions and learning objectives, resulting in reduced zero-shot capabilities and limited transferability of robustness across domains and datasets. In this work, we propose a simple yet effective paradigm AdvFLYP, which follows the training recipe of CLIP's pretraining process when performing adversarial finetuning to the model. Specifically, AdvFLYP finetunes CLIP with adversarial images created based on image-text pairs collected from the web, and match them with their corresponding texts via a contrastive loss. To alleviate distortion of adversarial image embeddings of noisy web images, we further propose to regularise AdvFLYP by penalising deviation of adversarial image features. We show that logit- and feature-level regularisation terms benefit robustness and clean accuracy, respectively. Extensive experiments on 14 downstream datasets spanning various domains show the superiority of our paradigm over mainstream practices. Our code and model weights are released at https://github.com/Sxing2/AdvFLYP.

📄 PDF Abstract BibTeX arXiv:2604.11576

Code (0)

등록된 구현이 없습니다.

Tasks

Adversarial Robustness

Similar Papers 제목 키워드 기반

Small or Large? Zero-Shot or Finetuned? Guiding Language Model Choice for Specialized Applications in Healthcare

2025-04-29 · Lovedeep Gondara, Jonathan Simkin, Graham Sayle, Shebnum Devji 외

This study aims to guide language model selection by investigating: 1) the necessity of finetuning versus zero-shot usage, 2) the benefits of domain-adjacent versus generic pretrained models, 3) the value of further doma…

Language ModelingLanguage ModellingModel Selection

Don't Prompt, Search! Mining-based Zero-Shot Learning with Language Models

2022-10-26 · Mozes van de Kar, Mengzhou Xia, Danqi Chen, Mikel Artetxe

Masked language models like BERT can perform text classification in a zero-shot fashion by reformulating downstream tasks as text infilling. However, this approach is highly sensitive to the template used to prompt the m…

Text ClassificationText InfillingZero-Shot LearningZero-Shot Text Classification

InPars: Data Augmentation for Information Retrieval using Large Language Models

2022-02-10 · Luiz Bonifacio, Hugo Abonizio, Marzieh Fadaee, Rodrigo Nogueira

The information retrieval community has recently witnessed a revolution due to large pretrained transformer models. Another key ingredient for this revolution was the MS MARCO dataset, whose scale and diversity has enabl…

Data AugmentationDiversityInformation RetrievalRetrieval+1

Language-Independent Representations Improve Zero-Shot Summarization

2024-04-08 · Vladimir Solovyev, Danni Liu, Jan Niehues

Finetuning pretrained models on downstream generation tasks often leads to catastrophic forgetting in zero-shot conditions. In this work, we focus on summarization and tackle the problem through the lens of language-inde…

Text Generation

Zero-shot Video Moment Retrieval With Off-the-Shelf Models

2022-11-03 · Anuj Diwan, Puyuan Peng, Raymond J. Mooney

For the majority of the machine learning community, the expensive nature of collecting high-quality human-annotated data and the inability to efficiently finetune very large state-of-the-art pretrained models on limited …

Moment RetrievalRetrieval