[Paper Review] A Good Prompt Is Worth Millions of Parameters: Low-resource Prompt-based Learning for Vision-Language Models
This paper proposes FewVLM, a compact vision-language model that achieves state-of-the-art few-shot performance on VQA and image captioning using prompt-based learning, outperforming models 31× larger in zero-shot VQA and matching a 246× larger model on the same task. It demonstrates that effective prompt design and pre-training objectives like MaskedLM and PrefixLM significantly boost performance, especially in low-resource settings.
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}
Motivation & Objective
- To develop a compact, efficient vision-language model for low-resource few-shot and zero-shot learning.
- To investigate how prompt design affects performance in few-shot and zero-shot vision-language tasks.
- To evaluate the impact of different pre-training objectives—MaskedLM and PrefixLM—on downstream task generalization.
- To determine whether noisy or hand-crafted prompts affect learning speed and final performance with increasing training data.
- To enable practical deployment of vision-language models by reducing model size and inference cost.
Proposed method
- Pre-train a sequence-to-sequence transformer model using both prefix language modeling (PrefixLM) and masked language modeling (MaskedLM) objectives.
- Convert vision-language tasks into generative tasks where the model generates target text given an image and a prompt.
- Use prompt templates (e.g., ' <text_1> [A] ') to guide the model’s generation and improve few-shot adaptation.
- Evaluate performance across diverse prompt formats, including hand-crafted, noisy, and random prompts.
- Fine-tune FewVLM with only a few examples (1–300) to assess few-shot generalization.
- Compare results against large baselines like Frozen (31× larger) and PICa (246× larger) on VQA, captioning, and mini-ImageNet.
Experimental results
Research questions
- RQ1How does prompt design affect zero-shot and few-shot performance in vision-language tasks?
- RQ2Does prompt quality still matter when more training examples are available?
- RQ3How do different pre-training objectives (MaskedLM vs. PrefixLM) influence performance on different downstream tasks?
- RQ4Can models trained with noisy prompts achieve performance comparable to those with hand-crafted prompts?
- RQ5What is the impact of combining MaskedLM and PrefixLM pre-training on cross-task generalization?
Key findings
- FewVLM outperforms Frozen, a 31× larger model, by 18.2 percentage points on zero-shot VQAv2, achieving 43.4% accuracy.
- FewVLM achieves comparable performance to PICa, a 246× larger model, on VQAv2, with 48.2% accuracy in few-shot learning.
- Prompts significantly affect zero-shot performance but have only marginal impact on few-shot performance, especially with larger training data.
- Models trained with noisy prompts (e.g., random sentences) learn as quickly as those with hand-crafted prompts when sufficient training data is available.
- MaskedLM pre-training improves performance on VQA tasks, while PrefixLM boosts captioning performance on Flickr30k and GQA.
- Combining MaskedLM and PrefixLM yields a synergistic effect, improving generalization across both VQA and captioning tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.