StablePT: Towards Stable Prompting for Few-shot Learning via Input Separation
Xiaoming Liu, Chen Liu, Zhaohan Zhang, Chengzhengxu Li, Longtian Wang,, Yu Lan, Chao Shen

TL;DR
StablePT introduces a method that separates hard and soft prompts and uses contrastive learning to improve the stability and reliability of few-shot learning with large language models, reducing variability and enhancing performance.
Contribution
The paper proposes input separation and contrastive learning for soft prompts, significantly improving stability and accuracy in few-shot learning tasks.
Findings
Outperforms state-of-the-art by 6.97% in accuracy
Reduces standard deviation by 1.92, indicating increased stability
Demonstrates robustness across 8 diverse datasets
Abstract
Large language models have shown their ability to become effective few-shot learners with prompting, revolutionizing the paradigm of learning with data scarcity. However, this approach largely depends on the quality of prompt initialization, and always exhibits large variability among different runs. Such property makes prompt tuning highly unreliable and vulnerable to poorly constructed prompts, which limits its extension to more real-world applications. To tackle this issue, we propose to treat the hard prompt and soft prompt as separate inputs to mitigate noise brought by the prompt initialization. Furthermore, we optimize soft prompts with contrastive learning for utilizing class-aware information in the training process to maintain model performance. Experimental results demonstrate that \sysname outperforms state-of-the-art methods by 6.97% in accuracy and reduces the standard…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGeophysical Methods and Applications · Indoor and Outdoor Localization Technologies · Sparse and Compressive Sensing Techniques
MethodsContrastive Learning
