Abstract
Recent advancements in Vision-Language (VL) models have favored massive architectures like GPT-3 or Frozen to achieve few-shot learning capabilities. However, the scale of these models presents significant barriers to deployment and computational efficiency. This paper introduces FEWVLM (Few-shot Vision-Language Model), demonstrating that moderate-sized models can rival or even surpass these giants through strategic prompt-based learning. FEWVLM-large (740M parameters) achieves performance comparable to the 175B-parameter PICa, suggesting that well-designed prompts can effectively compensate for orders of magnitude fewer parameters.
Introduction: The Efficiency Gap in VL Models
In the current landscape of multimodal AI, "bigger is better" has been the prevailing mantra. Large-scale models exhibit impressive few-shot learning—the ability to adapt to new tasks with minimal examples—without requiring extensive fine-tuning. Yet, the computational cost and inference latency of models like Frozen (7B) or PICa (175B) make them impractical for many real-world applications.
The authors of this study challenge the necessity of such extreme scale. They investigate whether a "moderate-sized" model can achieve high-performance few-shot learning by mastering the "dark arts" of prompting. Specifically, they explore how prompt wording affects performance across zero-shot and few-shot regimes and how different pre-training objectives influence specific downstream tasks.
Methodology: The FEWVLM Framework
FEWVLM is built on a sequence-to-sequence transformer architecture, specifically utilizing the T5 framework. Unlike traditional models that use task-specific classification heads, FEWVLM treats every vision-language task as a text generation problem.
Architecture
The model employs an encoder-decoder setup. The visual input is processed using a Faster R-CNN to extract 36 salient object regions, which are then fed into the Transformer Encoder alongside a text prompt. The Transformer Decoder then generates the target text sequence.
Pre-training Objectives
The model is pre-trained on 9.18 million image-text pairs from MS COCO and Visual Genome using two distinct objectives:
- Prefix Language Modeling (PrefixLM): The model receives the beginning of a caption and must generate the remainder. This objective is particularly effective for generative tasks like image captioning.
- Masked Language Modeling (MaskedLM): The model fills in missing "sentinel tokens" (blanks) within a caption. This approach excels in VQA tasks, where the model learns to predict specific spans or answers within a structured context.
Key Insights: The Power of the Prompt
The research reveals several critical findings regarding the nature of prompting in multimodal models:
- Zero-Shot Sensitivity vs. Few-Shot Resilience: Prompt design is a "make or break" factor for zero-shot performance. A poorly constructed prompt can lead to near-zero accuracy. However, the model becomes remarkably resilient once it sees even a handful of examples; the specific wording matters significantly less in few-shot settings.
- Tolerance for Noise: Surprisingly, models provided with "noisy" or random prompts eventually achieve performance parity with hand-crafted prompts, provided they have sufficient training data (typically 100+ examples).
- Objective-Task Alignment: MaskedLM is the superior objective for VQA, while PrefixLM is the powerhouse for captioning. This alignment suggests that pre-training should be tailored to the structural nature of the target task.
Experimental Results
FEWVLM demonstrates remarkable efficiency across several benchmarks:
- VQAv2: FEWVLM-base (224M) outperformed the 7B-parameter Frozen model by 18.2% in zero-shot settings. FEWVLM-large (740M) matched the performance of the 175B-parameter PICa.
- OK-VQA: The model showed strong gains in tasks requiring external knowledge, proving its ability to leverage internal knowledge through effective prompting.
- Categorical Learning: In 5-way 1-shot classification on miniImageNet, FEWVLM achieved 57.0% accuracy, vastly outperforming Frozen's 14.5%.
Conclusion and Future Work
FEWVLM proves that "a good prompt is worth millions of parameters." By optimizing the interaction between visual features and textual instructions, moderate-sized models can achieve state-of-the-art few-shot capabilities. While current prompts are largely hand-crafted, future research into automated prompt tuning and broader task diversity will likely further close the gap between model size and performance.
Summary updated