A Good Prompt Is Worth Millions of Parameters: Low-resource Prompt-based Learning for Vision-Language Models

Woojeong Jin, Yu Cheng, Yelong Shen, Weizhu Chen, Xiang Ren
10/16/2021
cs.CVcs.CL

Official code: woojeongjin/FewVLM (42 stars, Python, last commit 2022-05-13).

Abstract

Large pre-trained vision-language (VL) models can learn a new task with a handful of examples and generalize to a new task without fine-tuning. However, these VL models are hard to deploy for real-world applications due to their impractically huge sizes and slow inference speed.

Show full abstract

To solve this limitation, we study prompt-based low-resource learning of VL tasks with our proposed method, FewVLM, relatively smaller than recent few-shot learners. For FewVLM, we pre-train a sequence-to-sequence transformer model with prefix language modeling (PrefixLM) and masked language modeling (MaskedLM). Furthermore, we analyze the effect of diverse prompts for few-shot tasks. Experimental results on VQA show that FewVLM with prompt-based learning outperforms Frozen which is 31x larger than FewVLM by 18.2% point and achieves comparable results to a 246x larger model, PICa. In our analysis, we observe that (1) prompts significantly affect zero-shot performance but marginally affect few-shot performance, (2) models with noisy prompts learn as quickly as hand-crafted prompts given larger training data, and (3) MaskedLM helps VQA tasks while PrefixLM boosts captioning performance. Our code is publicly available at \url{https://github.com/woojeongjin/FewVLM}

View on arXivView PDF

Code Implementations(1)

woojeongjin/FewVLMOfficial100%

A Good Prompt Is Worth Millions of Parameters: Low-resource Prompt-based Learning for Vision-Language Models (ACL 2022)

425Python, ShellFeb 28, 20224 years ago

Similar Papers

Cite this paper

@article{jin2021good,
  title  = {A Good Prompt Is Worth Millions of Parameters: Low-resource Prompt-based Learning for Vision-Language Models},
  author = {Woojeong Jin and Yu Cheng and Yelong Shen and Weizhu Chen and Xiang Ren},
  year   = {2021},
  eprint = {2110.08484},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.08484}
}

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

Discussion