[Paper Review] Gradient-Regulated Meta-Prompt Learning for Generalizable Vision-Language Models
This paper proposes Gradient-Regulated Meta-Prompt Learning (GRAM), a model-agnostic framework that jointly learns an optimal soft prompt initialization and a lightweight gradient regulating function using only unlabeled image-text pairs. GRAM enhances few-shot generalization by reducing sensitivity to initialization and preventing overfitting to domain-specific biases, consistently improving performance across 11 datasets and enabling synergistic textual and visual prompt tuning.
Prompt tuning, a recently emerging paradigm, enables the powerful vision-language pre-training models to adapt to downstream tasks in a parameter -- and data -- efficient way, by learning the ``soft prompts'' to condition frozen pre-training models. Though effective, it is particularly problematic in the few-shot scenario, where prompt tuning performance is sensitive to the initialization and requires a time-consuming process to find a good initialization, thus restricting the fast adaptation ability of the pre-training models. In addition, prompt tuning could undermine the generalizability of the pre-training models, because the learnable prompt tokens are easy to overfit to the limited training samples. To address these issues, we introduce a novel Gradient-RegulAted Meta-prompt learning (GRAM) framework that jointly meta-learns an efficient soft prompt initialization for better adaptation and a lightweight gradient regulating function for strong cross-domain generalizability in a meta-learning paradigm using only the unlabeled image-text pre-training data. Rather than designing a specific prompt tuning method, our GRAM can be easily incorporated into various prompt tuning methods in a model-agnostic way, and comprehensive experiments show that GRAM brings about consistent improvement for them in several settings (i.e., few-shot learning, cross-domain generalization, cross-dataset generalization, etc.) over 11 datasets. Further, experiments show that GRAM enables the orthogonal methods of textual and visual prompt tuning to work in a mutually-enhanced way, offering better generalizability beyond the uni-modal prompt tuning methods.
Motivation & Objective
- Address the initialization-sensitive problem in prompt tuning, where performance varies significantly with different soft prompt initializations.
- Mitigate generalizability degradation in few-shot learning, where prompt tuning overfits to spurious correlations in limited training data.
- Enable fast adaptation of frozen vision-language models to new tasks with minimal labeled data.
- Develop a model-agnostic method that enhances both textual and visual prompt tuning in a complementary, mutually reinforcing manner.
- Leverage large-scale unlabeled image-text data for meta-learning without relying on supervised meta-training tasks.
Proposed method
- Propose a Cross-Modal Hierarchical Clustering (CHC) algorithm to structure unlabeled image-text data into semantic topics and sub-domains based on text and image content.
- Simulate domain shift in meta-training by sampling support and query sets from different domains within the same semantic topic, creating diverse few-shot meta-tasks.
- Jointly meta-learn a soft prompt initialization and a gradient regulating function using a meta-optimization objective that minimizes generalization error on query sets.
- Introduce a lightweight gradient regulating function that transforms raw fine-tuning gradients into a consistent, domain-generalizable direction across domains.
- Use only unlabeled image-text pairs from the internet as meta-training data, avoiding reliance on annotated datasets for meta-learning.
- Enable plug-and-play integration with various prompt tuning methods, including CoOp (textual) and VPT (visual), by being model-agnostic.
Experimental results
Research questions
- RQ1Can meta-learning from unlabeled image-text data improve the initialization of soft prompts to reduce sensitivity in few-shot adaptation?
- RQ2Can a gradient regulating function mitigate overfitting to domain-specific patterns during prompt tuning and enhance cross-domain generalization?
- RQ3Does GRAM enable better synergy between textual and visual prompt tuning than joint tuning or individual methods?
- RQ4How effective is GRAM when using only unlabeled data compared to supervised meta-training or pre-training on labeled data?
- RQ5What is the impact of prompt token count on the balance between base-class performance and generalization to new classes?
Key findings
- GRAM reduces performance variance across different random initializations, demonstrating robustness to soft prompt initialization.
- The gradient regulating function prevents performance degradation during training, as seen in CoOp+GRAM maintaining high accuracy on new classes while CoOp alone drops significantly.
- GRAM achieves a 15% relative gain in accuracy on new classes compared to the baseline, with the gradient regulating function being the primary contributor to this improvement.
- Using unlabeled data for meta-training outperforms using supervised datasets like WebVision, indicating that large-scale, diverse unlabeled data is more effective for meta-learning.
- Joint meta-learning of textual and visual prompts via GRAM enables a mutually enhanced performance gain, outperforming direct joint tuning of both prompt types.
- Increasing prompt token count beyond 4 degrades generalization performance on new classes, with 4 tokens achieving the best balance between base and new class accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.