Abstract
Prompt Tuning (PT) is a parameter-efficient method for adapting large language models, yet it is highly sensitive to the initialization of soft prompt embeddings. This paper proposes Meta Prompt Tuning (MPT), a framework that leverages optimization-based meta-learning to identify a robust starting point for prompt embeddings across diverse source tasks. By training for rapid adaptation, MPT significantly enhances performance on unseen target tasks, particularly in few-shot scenarios. Experimental results on the CROSSFIT benchmark demonstrate that MPT outperforms standard prompt tuning and multi-task learning, achieving substantial gains in classification accuracy.
Introduction
As large language models (LLMs) continue to scale, full-parameter fine-tuning becomes increasingly impractical due to prohibitive computational costs. Prompt Tuning (PT) has emerged as a compelling alternative, freezing the backbone model and training only a small set of "soft prompt" embeddings. However, PT faces a significant "cold start" challenge: its performance is heavily dependent on the initial values of these embeddings. In few-shot settings, a poor initialization can lead to sub-optimal convergence or failure to learn effectively.
While previous research explored multi-task learning (MTL) to improve initializations, this study investigates whether meta-learning—specifically "learning to learn"—can provide a more effective foundation. The goal is to find a prompt initialization that is explicitly optimized for fast and effective adaptation to novel, unseen tasks.
Meta Prompt Tuning (MPT) Framework
The authors introduce Meta Prompt Tuning (MPT), which replaces standard multi-task pre-training with optimization-based meta-learning algorithms such as Model-Agnostic Meta-Learning (MAML), First-Order MAML (FoMAML), and Reptile.
The MPT process is divided into two distinct phases:
- Upstream Meta-Learning: During meta-training, the model iterates through a variety of source tasks. In each iteration, it simulates a few-shot learning task by performing a rapid update on a "support set" and evaluating the resulting performance on a "query set." This process aims to find an initialization ($\phi^*$) that serves as a high-quality starting point for any task within the distribution.
- Downstream Adaptation: The meta-learned initialization is then used to initialize the soft prompts for standard Prompt Tuning on a previously unseen target task.
Experimental Setup
The effectiveness of MPT was evaluated using the CROSSFIT benchmark, a diverse collection of NLP tasks.
- Tasks: The study utilized up to 114 source tasks (classification, QA, and generation) and 20 unseen target tasks for evaluation.
- Models: While T5-Large served as the primary backbone, the authors validated the approach across T5-Base, T5-XLarge, BART-Large, and GPT2-Large to ensure architectural robustness.
- Baselines: MPT was compared against standard PT (random/manual initialization), Multi-Task Learning (MTL), and full-model fine-tuning.
Results and Analysis
The experimental results highlight several key advantages and nuances of the MPT approach:
Superior Few-Shot Performance: MPT demonstrates significant gains over both standard PT and MTL, particularly when data is extremely scarce. In the "Classification $\to$ Classification" setting, MAML achieved an Average Relative Gain (ARG) of 20.16% over standard PT.
Task Specificity and Similarity: The benefits of MPT are most pronounced in classification tasks. Analysis using Singular Value Decomposition (SVD) revealed that classification tasks share a more similar underlying structure compared to complex tasks like QA or summarization. Interestingly, for non-classification tasks, MTL occasionally outperformed MPT, suggesting that for highly diverse and complex outputs, broader data exposure may be more beneficial than a single optimized starting point.
Impact of Source Task Diversity: Counter-intuitively, increasing the diversity of source tasks does not always lead to better generalization. For instance, training on a mix of QA and generation tasks can diminish performance on target classification tasks compared to training solely on other classification tasks. This suggests that task-specific meta-initialization is more effective than a "one-size-fits-all" approach.
Conclusion
Meta Prompt Tuning effectively addresses the initialization sensitivity of prompt tuning, offering a robust method for cross-task generalization. While MPT provides substantial performance boosts, it does come with increased computational overhead due to the second-order gradients required by algorithms like MAML. Additionally, the framework is sensitive to hyperparameter tuning, particularly the inner and outer learning rates. Future work will focus on developing more memory-efficient meta-learning implementations and automated methods for selecting the most relevant source tasks to maximize transfer efficiency.
Summary updated