Abstract
Prompt pretraining has emerged as an efficient strategy for adapting large-scale Vision-Language Models (VLMs) like CLIP to downstream tasks. However, current methods encounter a significant performance ceiling when trained on massive datasets such as ImageNet-21K. This paper identifies a critical underfitting bottleneck caused by the limited parameter capacity of shared prompt tokens. We propose Revisiting Prompt Pretraining (RPP), a framework that overcomes this limitation through Self-Attention Prompt Learning (SAPL) and Prompt Pretraining with Knowledge Distillation (PPKD). RPP significantly enhances the model's fitting capacity and generalization, achieving state-of-the-art results across zero-shot, few-shot, and base-to-new classification benchmarks.
Introduction: The Underfitting Bottleneck
Large-scale VLMs are typically adapted to specific tasks via "prompt learning," where only a small set of input tokens are trained while the backbone remains frozen. While efficient, recent attempts to pretrain these prompts on large datasets (e.g., ImageNet-21K) have revealed a fundamental flaw: underfitting. Because standard prompts use a very small number of learnable parameters, they lack the capacity to absorb the complex visual information present in millions of images. Performance often flatlines even with more data or longer training, limiting the model's ability to generalize to novel domains.
The RPP Framework
To address the capacity bottleneck, the Revisiting Prompt Pretraining (RPP) framework introduces two key innovations:
1. Self-Attention Prompt Learning (SAPL)
In traditional prompt learning, a single shared prompt token is projected into Query (Q), Key (K), and Value (V) vectors. SAPL breaks this constraint by introducing independent, unshared learnable prompts for Q, K, and V at every layer of the transformer. This architectural change significantly expands the parameter space and optimization diversity, allowing the model to better fit large-scale pretraining data without a substantial increase in inference cost.
2. Prompt Pretraining with Knowledge Distillation (PPKD)
Increasing parameter capacity risks overfitting to the specific classes of the pretraining dataset, which can degrade the inherent open-vocabulary generalization of the original VLM. RPP employs a frozen CLIP model as a teacher to guide the student model via knowledge distillation. By learning from the teacher's "soft labels" (probability distributions) rather than just hard one-hot labels, the student preserves nuanced inter-class relationships and maintains broad generalization capabilities.
Experimental Results
The RPP framework was evaluated on ImageNet-21K for pretraining and tested across 14 diverse downstream datasets.
Pretraining and Zero-Shot Performance
RPP achieved a top-1 accuracy of 24.9% on ImageNet-21K (ViT-B/16), outperforming the previous state-of-the-art (POMP) by 0.9%. In zero-shot cross-dataset evaluations, RPP improved average accuracy by 0.43% over POMP and up to 3.6% over the original CLIP model.
Few-Shot and Base-to-New Generalization
When used to initialize few-shot learning frameworks like PromptSRC, RPP provided a significant boost. In 16-shot settings, it improved average accuracy by 0.58%, with a more dramatic 4.19% improvement in the extreme 1-shot scenario. For base-to-new class transfer, RPP improved the Harmonic Mean (HM) of base and novel accuracies by 1.13%, demonstrating superior robustness to unseen categories.
Conclusion
RPP effectively resolves the underfitting issue in prompt pretraining by decoupling self-attention prompts and leveraging knowledge distillation. By expanding the model's capacity while preserving its foundational generalization, RPP sets a new standard for efficient VLM adaptation. Future work may explore incorporating hierarchical category structures and self-supervised objectives to further enhance open-ended knowledge acquisition.
Summary updated