[Paper Review] Learning a Better Initialization for Soft Prompts via Meta-Learning
This paper proposes MetaPT, a meta-learning framework that improves soft prompt initialization for few-shot prompt tuning by clustering pre-training data into meta-tasks to discover latent structures. By pre-training prompts via model-agnostic meta-learning on these clusters, MetaPT achieves superior and more stable performance than state-of-the-art methods, including PPT, across seven downstream NLP tasks under few-shot settings.
Prompt tuning (PT) is an effective approach to adapting pre-trained language models to downstream tasks. Without a good initialization, prompt tuning doesn't perform well under few-shot settings. So pre-trained prompt tuning (PPT) is proposed to initialize prompts by leveraging pre-training data. We propose MetaPT (Meta-learned Prompt Tuning) to further improve PPT's initialization by considering latent structure within the pre-training data. Specifically, we introduce the structure by first clustering pre-training data into different auxiliary tasks with unsupervised methods. Then we use these tasks to pre-train prompts with a meta-learning algorithm. Such a process can make prompts learn a better initialization by discovering commonalities among these auxiliary tasks. We evaluate our method on seven downstream tasks. Our MetaPT achieves better and more stable performance than the state-of-the-art method.
Motivation & Objective
- To address the poor performance of prompt tuning under few-shot settings due to poor soft prompt initialization.
- To improve upon Pre-trained Prompt Tuning (PPT) by incorporating latent structure from pre-training data rather than treating data points uniformly.
- To develop a method that learns a more general and transferable initialization for soft prompts using unsupervised clustering and meta-learning.
- To evaluate the effectiveness and stability of the proposed method across diverse downstream NLP tasks in few-shot scenarios.
Proposed method
- Clustering pre-training data into auxiliary meta-tasks using sentence embeddings from a Sentence-BERT model and K-means clustering.
- Using the resulting clusters as distinct meta-learning tasks to pre-train soft prompts via Model-Agnostic Meta-Learning (MAML).
- Leveraging the shared structure across clusters to encourage the soft prompts to learn generalizable features rather than task-specific noise.
- Applying the pre-trained soft prompts to downstream tasks without further fine-tuning, enabling fast and stable adaptation in few-shot settings.
- Evaluating performance on seven downstream NLP tasks under few-shot conditions to compare with PPT and full fine-tuning.
Experimental results
Research questions
- RQ1Can learning from structured meta-tasks derived from pre-training data improve soft prompt initialization for few-shot prompt tuning?
- RQ2How does the choice of clustering method (e.g., K-means, LDA, random, label-based) affect the performance of meta-learned prompts?
- RQ3What is the optimal number of clusters for meta-learning, and how does it impact performance and convergence?
- RQ4How much pre-training data is sufficient to achieve good performance with the proposed method?
Key findings
- MetaPT outperforms PPT by 3.35% accuracy on SST-5 under few-shot settings, achieving 46.24% accuracy with K-means clustering.
- K-means clustering yields the best performance (46.24 ± 0.42), significantly outperforming LDA (44.10 ± 0.83), random (42.95 ± 1.05), and label-based clustering (42.84 ± 0.76).
- Performance plateaus after 10,000 pre-training samples, indicating that larger data volumes do not significantly improve results beyond this point.
- The number of clusters has a strong impact on performance, with optimal results achieved at K=10, and performance stabilizing beyond K=20.
- t-SNE visualization confirms that K-means clusters group semantically similar sentences together, validating the meaningful structure of the derived meta-tasks.
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.