paper-with-me

Papers

Finetune like you pretrain: Improved finetuning of zero-shot vision models

2022-12-01 · CVPR 2023 1 · Sachin Goyal, Ananya Kumar, Sankalp Garg, Zico Kolter, aditi raghunathan

Finetuning image-text models such as CLIP achieves state-of-the-art accuracies on a variety of benchmarks. However, recent works like WiseFT (Wortsman et al., 2021) and LP-FT (Kumar et al., 2022) have shown that even subtle differences in the finetuning process can lead to surprisingly large differences in the final performance, both for in-distribution (ID) and out-of-distribution (OOD) data. In this work, we show that a natural and simple approach of mimicking contrastive pretraining consistently outperforms alternative finetuning approaches. Specifically, we cast downstream class labels as text prompts and continue optimizing the contrastive loss between image embeddings and class-descriptive prompt embeddings (contrastive finetuning). Our method consistently outperforms baselines across 7 distribution shifts, 6 transfer learning, and 3 few-shot learning benchmarks. On WILDS-iWILDCam, our proposed approach FLYP outperforms the top of the leaderboard by $2.3\%$ ID and $2.7\%$ OOD, giving the highest reported accuracy. Averaged across 7 OOD datasets (2 WILDS and 5 ImageNet associated shifts), FLYP gives gains of $4.2\%$ OOD over standard finetuning and outperforms the current state of the art (LP-FT) by more than $1\%$ both ID and OOD. Similarly, on 3 few-shot learning benchmarks, our approach gives gains up to $4.6\%$ over standard finetuning and $4.4\%$ over the state of the art. In total, these benchmarks establish contrastive finetuning as a simple, intuitive, and state-of-the-art approach for supervised finetuning of image-text models like CLIP. Code is available at https://github.com/locuslab/FLYP.

📄 PDF Abstract BibTeX arXiv:2212.00638

Code (1)

locuslab/flyp 공식 구현 pytorch

Tasks

DescriptiveFew-Shot LearningTransfer Learning

Methods 이 논문이 사용한 방법론

CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

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

Anchor-based Robust Finetuning of Vision-Language Models

2024-04-09 · CVPR 2024 1 · Jinwei Han, Zhiwen Lin, Zhongyisun Sun, Yingguo Gao 외

We aim at finetuning a vision-language model without hurting its out-of-distribution (OOD) generalization. We address two types of OOD generalization, i.e., i) domain shift such as natural to sketch images, and ii) zero-…

Language ModellingZero-Shot Learning

Parameter-Efficient Transfer Learning with Diff Pruning

2020-12-14 · ACL 2021 5 · Demi Guo, Alexander M. Rush, Yoon Kim

While task-specific finetuning of pretrained networks has led to significant empirical advances in NLP, the large size of networks makes finetuning difficult to deploy in multi-task, memory-constrained settings. We propo…

Transfer Learning

TMI! Finetuned Models Leak Private Information from their Pretraining Data

2023-06-01 · John Abascal, Stanley Wu, Alina Oprea, Jonathan Ullman

Transfer learning has become an increasingly popular technique in machine learning as a way to leverage a pretrained model trained for one task to assist with building a finetuned model for a related task. This paradigm …

Transfer Learning

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

2026-04-13 · Songlong Xing, Weijie Wang, Zhengyu Zhao, Jindong Gu 외 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 vi…

Adversarial Robustness