arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.08484cs.CVcs.CL
收藏

一个好的提示值上百万个参数:基于低资源的视觉语言模型学习

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

University of Southern California(南加州大学);Microsoft Corporation(微软公司)

Woojeong Jin, Yu Cheng, Yelong Shen, Weizhu Chen, Xiang Ren

摘要:

大型预训练的视觉语言(VL)模型可以通过少量示例学习新任务,并在无需微调的情况下推广到新任务。然而,这些VL模型很难部署到现实世界的应用程序,由于其不切实际的巨大的尺寸和缓慢的推理速度。为了解决这个问题,我们研究了基于低资源的学习VL任务与我们提出的方法,FewVLM,相对小于最近的Few-Shot学习者。对于FewVLM,我们使用前缀语言建模(PrefixLM)和掩码语言建模(MaskedLM)预训练序列到序列的Transformer模型。此外,我们分析了不同的提示Few-Shot任务的效果。在VQA上的实验结果表明,FewVLM与基于学习的FewVLM的性能优于Frozen,Frozen是FewVLM的31倍,比FewVLM大18.2%,并且与246倍大的模型PICa取得了相当的结果。在我们的分析中,我们观察到:(1)提示显著影响zero-shot性能,但对Few-Shot性能的影响很小;(2)在较大的训练数据下,具有噪声提示的模型与手工制作的提示一样快;(3)MaskedLM有助于VQA任务,而PrefixLM提高字幕性能。我们的代码可在\url{https://github.com/woojeongjin/FewVLM}上公开获取

英文摘要:

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. 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}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑