[Paper Review] MetaPrompting: Learning to Learn Better Prompts
MetaPrompting proposes a meta-learning framework that automatically learns a general, task-agnostic initialization for soft prompts in few-shot NLP, significantly improving adaptation speed and accuracy. By leveraging optimization-based meta-learning (e.g., MAML++), it achieves state-of-the-art performance, with over 7-point accuracy gains in 1-shot settings across four datasets.
Prompting method is regarded as one of the crucial progress for few-shot nature language processing. Recent research on prompting moves from discrete tokens based ``hard prompts'' to continuous ``soft prompts'', which employ learnable vectors as pseudo prompt tokens and achieve better performance. Though showing promising prospects, these soft-prompting methods are observed to rely heavily on good initialization to take effect. Unfortunately, obtaining a perfect initialization for soft prompts requires understanding of inner language models working and elaborate design, which is no easy task and has to restart from scratch for each new task. To remedy this, we propose a generalized soft prompting method called MetaPrompting, which adopts the well-recognized model-agnostic meta-learning algorithm to automatically find better prompt initialization that facilitates fast adaptation to new prompting tasks.Extensive experiments show MetaPrompting tackles soft prompt initialization problem and brings significant improvement on four different datasets (over 6 points improvement in accuracy for 1-shot setting), achieving new state-of-the-art performance.
Motivation & Objective
- Address the critical sensitivity of soft prompt methods to initialization in low-resource few-shot learning.
- Reduce the need for task-specific, manual prompt engineering by learning a general-purpose initialization.
- Improve fast adaptation and robustness of soft prompts across diverse downstream NLP tasks.
- Enable transferable meta-knowledge from source tasks to new target tasks without retraining from scratch.
- Mitigate performance variance caused by different prompt templates or forms in real-world deployment.
Proposed method
- Adopt model-agnostic meta-learning (MAML, Reptile, etc.) to learn a shared initialization for soft prompts across multiple source tasks.
- Use a meta-training loop where the model is optimized on a distribution of few-shot tasks to find a parameter initialization that enables fast adaptation.
- Apply the meta-learned initialization (ϕ_meta) as the starting point for soft prompt vectors during meta-testing on new tasks.
- Utilize gradient-based optimization to update soft prompt parameters during adaptation, with the meta-initialization guiding faster convergence.
- Integrate meta-learning with continuous soft prompts, allowing the model to learn from diverse source tasks and generalize to unseen targets.
- Apply MAML++ with the MSLB trick to stabilize training and improve performance over standard MAML and Reptile variants.
Experimental results
Research questions
- RQ1Can meta-learning be effectively applied to the problem of soft prompt initialization in few-shot NLP?
- RQ2Does a meta-learned initialization lead to faster and more accurate adaptation on new few-shot NLP tasks compared to random or heuristic initializations?
- RQ3How robust is MetaPrompting to variations in prompt templates or prompt forms across different datasets?
- RQ4Can meta-knowledge learned from source tasks generalize effectively to unseen target tasks in zero-shot or few-shot settings?
- RQ5How do different meta-learning algorithms (e.g., MAML++, Reptile) compare in performance and stability when applied to soft prompt tuning?
Key findings
- MetaPrompting achieves a 7.1-point average accuracy improvement over standard soft prompting in 1-shot settings across four datasets.
- On the Amazon dataset, MetaPrompting reaches 71.93% accuracy in 1-shot learning using MAML++, outperforming the baseline by over 7 points.
- The method reduces performance variance across different prompt templates, with a standard deviation of ±0.23 (vs. ±3.46) on the HuffPost dataset under 1-shot settings.
- MetaPrompting consistently outperforms strong meta-learning baselines, including Reptile and FOMAML, across all evaluated datasets and few-shot settings.
- The meta-learned initialization enables faster convergence during adaptation, as shown by steeper and lower adaptation loss curves in training dynamics.
- MAML++ with the MSLB trick yields the best performance, while Reptile underperforms due to instability in tuning large language models.
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.