Multitask Vision-Language Prompt Tuning

Sheng Shen, Shijia Yang, Tianjun Zhang, Bohan Zhai, Joseph E. Gonzalez, Kurt Keutzer, Trevor Darrell

Introduction

Large-scale vision-language models (VLMs) like CLIP have demonstrated remarkable zero-shot capabilities. However, adapting these models to specific downstream tasks remains a challenge. Full fine-tuning is computationally prohibitive, leading to the rise of Prompt Tuning. Methods such as CoOp (textual) and VPT (visual) learn a small set of tunable prompt vectors while keeping the backbone model frozen.

Despite their efficiency, existing prompt tuning methods typically treat each task in isolation. This "single-task" paradigm fails to leverage cross-task knowledge—the shared visual or textual features that could benefit multiple related datasets. This paper introduces Multitask Vision-Language Prompt Tuning (MVLPT), a framework designed to break these silos by sharing knowledge across tasks during the prompt tuning process.

Methods

The MVLPT framework operates through a two-stage process designed to maximize knowledge transfer from source to target tasks.

  1. Multitask Source Prompt Initialization: Instead of initializing prompts with random noise or fixed text, MVLPT pre-trains a generic prompt vector across 11 diverse source tasks. This provides a "warm start," embedding broad concepts into the prompt before task-specific adaptation.
  2. Multitask Target Prompt Adaptation: For specific target tasks, the model can either undergo single-task adaptation or, more effectively, multitask adaptation where relevant target tasks are grouped and trained jointly.
The MVLPT framework overview showing the transition from multitask source initialization to target adaptation.

The framework is compatible with various prompt tuning architectures, resulting in variants like MCoOp (Multitask Text Prompt Tuning), MVPT (Multitask Visual Prompt Tuning), and MUPT (Multitask Unified Prompt Tuning).

Datasets and Benchmark

The authors evaluate MVLPT using a comprehensive suite of datasets:

  • Source Tasks: 11 standard datasets including ImageNet, OxfordPets, and StanfordCars.
  • Target Tasks: The ELEVATER benchmark, which comprises 20 diverse vision tasks ranging from digit recognition (MNIST) and object classification (CIFAR) to specialized domains like autonomous driving (KITTI Distance) and multimodal sentiment analysis (Hateful Memes).

Key Insights: Task Transferability

A central challenge in multitask learning is determining which tasks should be grouped together. Not all tasks are synergistic; some may even cause "negative transfer" if trained together. To address this, the authors conducted an exhaustive Task Transferability Study, evaluating 400 task combinations (20x20).

Heatmaps illustrating the transferability between different datasets for CoOp, VPT, and UPT architectures.

The study revealed that grouping tasks based on empirical transferability—how well a prompt learned for Task A performs on Task B—is significantly more effective than grouping by metadata or unsupervised image clustering. This data-driven approach ensures that the multitask training phase actually enhances performance.

Results and Performance

MVLPT achieves a new state-of-the-art on the 20-shot ELEVATER benchmark. Key highlights include:

  • Superior Accuracy: The MVPT variant reached 74.13% accuracy, a substantial improvement over the previous benchmark high of 64.41%.
  • Generalization Gains: The multitask approach consistently outperformed single-task baselines by an average of 1.81%, with specific tasks like Rendered-SST2 seeing improvements as high as 9.33%.
  • Parameter Efficiency: Despite the performance gains, the method remains lightweight. The learned prompts represent only 0.01% to 0.45% of the total model parameters, making it highly suitable for resource-constrained adaptation.

Conclusion and Future Work

MVLPT demonstrates that prompts, much like model weights, benefit significantly from multitask pre-training and joint adaptation. While the current approach requires a one-time computational cost for the transferability study, it paves the way for more efficient VLM adaptation. Future research may focus on automating task grouping dynamically to further streamline the multitask tuning pipeline.

Summary updated

BibTeX
@inproceedings{shen2024multitask,
  author = {Sheng Shen and Shijia Yang and Tianjun Zhang and Bohan Zhai and Joseph E. Gonzalez and Kurt Keutzer and Trevor Darrell},
  title = {{Multitask Vision-Language Prompt Tuning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00556},
}
Figure