Cascade Prompt Learning for Vision-Language Model Adaptation

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

TL;DR

Cascade Prompt Learning (CasPL) is a novel two-phase framework designed to mitigate overfitting when adapting Vision-Language Models (VLMs) like CLIP to downstream tasks. By decoupling prompt learning into domain-general "boosting" prompts and task-specific "adapting" prompts, CasPL allows smaller models to achieve performance competitive with much larger architectures while maintaining fast inference speeds.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) like CLIP possess incredible zero-shot generalization capabilities. However, when deploying them to specific downstream tasks, researchers often use prompt learning—tuning a small set of continuous input tokens while keeping the massive underlying model frozen.

The catch? Existing prompt learning methods typically optimize these tokens in a single phase focused entirely on task adaptation. This singular focus introduces a high risk of overfitting, causing the model to lose its broader, domain-general knowledge and struggle with novel, unseen categories. The authors of this paper tackle a fundamental question: How can we tune VLMs for specific tasks without sacrificing their robust, open-vocabulary generalization?

Methods

The authors introduce Cascade Prompt Learning (CasPL), a plug-and-play framework that breaks the prompt tuning process into two distinct, sequential phases:

  1. Phase 1: The Boosting Prompt (Domain-General Expertise): To capture broad domain knowledge without human labeling, CasPL uses a teacher-student knowledge distillation setup. A smaller student VLM (e.g., ViT-B/16) learns from a larger, senior teacher VLM (e.g., ViT-L/14). Using a large pool of unlabeled domain images, the student's "boosting prompts" are trained to align its prediction logits with the teacher's logits using a Kullback-Leibler (KL) divergence loss. Once trained, these boosting prompts are frozen.

  2. Phase 2: The Adapting Prompt (Task-Specific Expertise): The frozen boosting prompts are cascaded with a new set of learnable "adapting prompts." This phase uses standard few-shot labeled data to fine-tune the model for the specific downstream task.

Because the boosting prompt is frozen, it acts as a "change of variables" ($CLIP \leftarrow CLIP + \text{boosting prompt}$), effectively upgrading the base VLM before task-specific tuning even begins. This allows CasPL to seamlessly integrate as a module into existing prompt learning methods like CoOp, CoCoOp, MaPLe, or PromptSRC.

Fig. 2: An overview of our proposed CasPL framework. (a) We utilize a set of

Datasets

The framework was comprehensively evaluated across multiple standard benchmarks:

  • Base-to-Novel Generalization & Few-Shot Learning: Evaluated on 11 diverse image classification datasets covering generic objects, fine-grained categories, textures, satellite imagery, and actions: ImageNet, Caltech101, FGVCAircraft, OxfordPets, StanfordCars, Flowers102, Food101, SUN397, EuroSAT, DTD, and UCF101.
  • Domain Generalization: Trained on ImageNet (source domain) and tested on out-of-distribution variants: ImageNet-V2, ImageNet-Sketch, and ImageNet-R.

Key Insights and Ideas

  • Decoupling is Key: Trying to force a single set of prompt tokens to be both domain-general and task-specific creates an optimization dilemma. Explicitly separating these roles into gradual groups yields much more robust representations.
  • Exploiting Unlabeled Data: Phase 1 relies entirely on unlabeled domain data. Since unlabeled data is cheap and abundant, this makes the distillation process highly practical for real-world deployment.
  • Punching Above Its Weight Class: CasPL allows a smaller, computationally efficient model (ViT-B/16) to approach the performance of a much larger model (ViT-L/14). This is a massive win for resource-constrained environments where deploying large VLMs is impossible due to latency or memory limits.

Key Results

CasPL consistently boosted the performance of every baseline prompt learning method it was paired with.

Fig. 1: Comparison of CasPL with previous prompt learning methods. (a) Previous methods adopt single phase prompting techniques for adapting the domain datasets. (b) CasPL introduces cascaded diverse prompts with multiple functions consisting of both boosting and adapting prompt phases. (c) Performance (HM) of previous prompt learning methods w/ or w/o our CasPL on base-to-novel tasks. The results are the average on 11 datasets.
  • Outperforming the SOTA: When integrated with the previous state-of-the-art method, PromptSRC, CasPL achieved an average accuracy improvement of 1.85% on base classes, 3.44% on novel classes, and 2.72% on the harmonic mean across all 11 datasets.
  • Extreme Few-Shot Robustness: In a strict 1-shot classification setting, CasPL delivered a 3.59% performance gain over PromptSRC, proving that the domain-general priors learned in Phase 1 effectively anchor the model when labeled data is scarce.
  • Cross-Domain Success: On domain generalization tasks, adding boosting prompts consistently improved zero-shot accuracy on target datasets like ImageNet-Sketch and ImageNet-R.

Limitations and Future Work

Despite its strong performance, CasPL introduces a domain-specific training overhead. Because the boosting prompts must be trained on unlabeled data for each specific target domain, it requires separate training efforts whenever you switch to a fundamentally new distribution.

To address this, the authors note that future work will explore leveraging large-scale pre-training to create universal boosting prompts. The ultimate goal is a single pre-training session that allows the boosting prompts to generalize across various domains simultaneously, eliminating the need to train individual boosting prompts for every new task.

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