Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
80 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

StablePT: Towards Stable Prompting for Few-shot Learning via Input Separation (2404.19335v2)

Published 30 Apr 2024 in cs.CL

Abstract: LLMs 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 deviation by 1.92 on average. Furthermore, extensive experiments underscore its robustness and stability across 8 datasets covering various tasks. Codes are available at https://github.com/lccc0528/Stable/tree/main.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Xiaoming Liu (145 papers)
  2. Chen Liu (206 papers)
  3. Zhaohan Zhang (11 papers)
  4. Chengzhengxu Li (5 papers)
  5. Longtian Wang (5 papers)
  6. Yu Lan (22 papers)
  7. Chao Shen (168 papers)
Citations (3)
X Twitter Logo Streamline Icon: https://streamlinehq.com

Tweets