Cascade Prompt Learning for Vision-Language Model Adaptation

Ge Wu, Xin Zhang, Zheng Li, Zhaowei Chen, Jiajun Liang, Jian Yang, Xiang Li

Addressing the Generalization Gap in VLMs

Vision-Language Models (VLMs) like CLIP have demonstrated remarkable zero-shot capabilities. However, adapting these models to specific downstream tasks—such as specialized medical imaging or satellite classification—remains a challenge. The prevailing approach, prompt learning, involves training a small set of learnable vectors (prompts) while keeping the model weights frozen.

Despite its efficiency, standard prompt learning often suffers from two critical limitations. First, in few-shot scenarios, models tend to overfit to the small labeled training set, losing the broad generalization inherent in the original VLM. Second, smaller, more efficient "student" models often fail to capture the rich, high-dimensional representations of massive "teacher" models. Existing methods typically operate in a single phase, attempting to learn task-specific features without leveraging the vast amounts of unlabeled domain data available.

Comparison of the proposed CasPL method against traditional single-phase adaptation, highlighting the performance gains across various baselines.

The CasPL Framework: Boosting and Adapting

To overcome these hurdles, the authors propose Cascade Prompt Learning (CasPL). CasPL is a "plug-and-play" strategy that decouples the adaptation process into two distinct, sequential phases: the Boosting Prompt Phase and the Adapting Prompt Phase.

The two-phase architecture of CasPL: (a) unsupervised distillation of domain knowledge into boosting prompts, and (b) supervised fine-tuning using task-specific adapting prompts.

Phase 1: Boosting Prompt (Unsupervised Distillation)

In the first phase, CasPL utilizes unlabeled domain data to perform unsupervised knowledge distillation. A large, frozen "teacher" model (e.g., ViT-L/14) provides guidance to a smaller "student" model (e.g., ViT-B/16). The student learns a set of boosting prompts by minimizing the KL-divergence between its output logits and those of the teacher. This process effectively "boosts" the student's foundational understanding of the target domain before any labeled data is introduced.

Phase 2: Adapting Prompt (Supervised Fine-tuning)

Once the boosting prompts are learned and frozen, a second set of adapting prompts is introduced. These prompts are trained using standard supervised few-shot learning on the specific target task. By cascading these two sets of prompts, the model benefits from both the broad domain expertise captured in Phase 1 and the task-specific specialization acquired in Phase 2.

Experimental Performance

The authors evaluated CasPL across 11 diverse datasets, ranging from generic object classification (ImageNet) to specialized domains like satellite imagery (EuroSAT) and textures (DTD).

  • Consistent Improvements: CasPL consistently enhanced the performance of existing state-of-the-art methods. When integrated with PromptSRC, it achieved an average improvement of 1.85% on base classes and a substantial 3.44% on novel classes.
  • Significant Gains in Specialized Domains: The impact was most pronounced in specialized datasets. For instance, adding CasPL to the CoOp method on the EuroSAT dataset resulted in a remarkable 19.38% increase in the Harmonic Mean (HM) score.
  • Efficiency and Scalability: A smaller ViT-B/16 model equipped with CasPL achieved an HM of 82.69%, nearly matching the 83.17% performance of a much larger ViT-L/14 model. This demonstrates that CasPL allows smaller models to inherit the capabilities of larger ones with negligible inference overhead.

Conclusion and Future Directions

Cascade Prompt Learning offers a robust solution for VLM adaptation by explicitly separating domain-general knowledge from task-specific features. By leveraging unlabeled data and teacher-student distillation, CasPL significantly improves generalization to unseen classes while maintaining high efficiency.

While the current implementation requires per-domain training for boosting prompts, future research aims to develop "universal" boosting prompts. Such prompts would be pre-trained on massive, diverse datasets to provide a general-purpose foundation that can be immediately applied to any new domain, further simplifying the deployment of high-performance VLMs in resource-constrained environments.

Summary updated

BibTeX
@inproceedings{wu2024cascade,
  author = {Ge Wu and Xin Zhang and Zheng Li and Zhaowei Chen and Jiajun Liang and Jian Yang and Xiang Li},
  title = {{Cascade Prompt Learning for Vision-Language Model Adaptation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72973-7\_18},
}
Figure