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.
Impact of Clinical Image Quality on Efficient Foundation Model Finetuning
UCL Hawkes Insitute, University College London Dept. of Medical Physics \& Biomedical Engineering, University College London Division of Surgery \& Interventional Science, University College London Centre of Medical Imaging, University College London Department of Radiology, UCLH NHS Foundation Trust Department of Urology, UCLH NHS Foundation Trust Department of Computer Science, University College London
Mechanistic Finetuning of Vision-Language-Action Models via Few-Shot Demonstrations
Carnegie Mellon University(卡内基梅隆大学);University of Southern California(南加州大学);University of California, Berkeley(加州大学伯克利分校);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)
Low-resource finetuning of foundation models beats state-of-the-art in histopathology
School of Computation and Information Technology, Technical University of Munich(慕尼黑工业大学计算与信息技术学院);Helmholtz Zentrum München - German Research Center for Environmental Health(慕尼黑亥姆霍兹中心——德国环境健康研究中心);School of Biomedical Engineering and Imaging Sciences, King’s College London(伦敦国王学院生物医学工程与影像科学学院)
Isolated Channel Vision Transformers: From Single-Channel Pretraining to Multi-Channel Finetuning
Department of Information Technology Uppsala University(信息科技系乌普萨拉大学);Department of Immunology, Genetics and Pathology Uppsala University(免疫学、遗传学和病理学系乌普萨拉大学)