Prompt-based techniques have demostrated great potential for improving the few-shot generalization of pretrained language models. However, their performance heavily relies on the manual design of prompts and thus requires a lot of human efforts. In this paper, we introduce Genetic Prompt Search (GPS) to improve few-shot learning with prompts, which utilizes a genetic algorithm to automatically search for high-performing prompts. GPS is gradient-free and requires no update of model parameters but only a small validation set. Experiments on diverse datasets proved the effectiveness of GPS, which outperforms manual prompts by a large margin of 2.6 points. Our method is also better than other parameter-efficient tuning methods such as prompt tuning.
翻译:即时技术在改进对预先培训的语言模型的微小概括化方面的潜力最大,但是,其性能在很大程度上依赖于手动设计速率,因此需要大量人的努力。在本文中,我们引入了基因即时搜索(GPS),用速率改进短片学习,利用基因算法自动搜索高性能速率。全球定位系统没有梯度,不需要更新模型参数,只需要一个小的验证组。对各种数据集的实验证明了GPS的有效性,而GPS的性能大大超过人工速率2.6分。我们的方法也比其他节能调制方法(如快速调试)要好。