Rethinking Task Sampling for Few-shot Vision-Language Transfer Learning

Zhenhailong Wang, Hang Yu, Manling Li, Han Zhao, Heng Ji
3/9/2022
cs.MMcs.CLcs.CV

Official code: MikeWangWZHL/Multitask-Finetuning_CLIP (3 stars, Python, last commit 2023-05-08).

Abstract

Despite achieving state-of-the-art zero-shot performance, existing vision-language models still fall short of few-shot transfer ability on domain-specific problems. Classical fine-tuning often fails to prevent highly expressive models from exploiting spurious correlations.

Show full abstract

Although model-agnostic meta-learning (MAML) presents as a natural alternative for few-shot transfer learning, the expensive computation due to implicit second-order optimization limits its use on large-scale vision-language models such as CLIP. While much literature has been devoted to exploring alternative optimization strategies, we identify another essential aspect towards effective few-shot transfer learning, task sampling, which is previously only be viewed as part of data pre-processing in MAML. To show the impact of task sampling, we propose a simple algorithm, Model-Agnostic Multitask Fine-tuning (MAMF), which differentiates classical fine-tuning only on uniformly sampling multiple tasks. Despite its simplicity, we show that MAMF consistently outperforms classical fine-tuning on five few-shot vision-language classification tasks. We further show that the effectiveness of the bi-level optimization in MAML is highly sensitive to the zero-shot performance of a task in the context of few-shot vision-language classification. The goal of this paper is to provide new insights on what makes few-shot learning work, and encourage more research into investigating better task sampling strategies.

View on arXivView PDF

Code Implementations(1)

Code for paper "Rethinking Task Sampling for Few-shot Vision-Language Transfer Learning" COLING 2022 workshop

31Python, ShellDec 17, 20213 years ago
few-shot-learningvision-and-language

Similar Papers

Cite this paper

@article{wang2022rethinking,
  title  = {Rethinking Task Sampling for Few-shot Vision-Language Transfer Learning},
  author = {Zhenhailong Wang and Hang Yu and Manling Li and Han Zhao and Heng Ji},
  year   = {2022},
  eprint = {2203.04904},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.04904}
}

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

Discussion