Continued Pretraining for Better Zero- and Few-Shot Promptability
30964Authors
nan
Abstract
AbstractRecently introduced language model prompting methods can achieve high accuracy in zero- and few-shot settings while requiring few to no learned task-specific parameters. Nevertheless, these methods still often trail behind full model finetuning. In this work, we investigate if a dedicated continued pretraining stage could improve “promptability”, i.e., zero-shot performance with natural language prompts or few-shot performance with prompt tuning. We reveal settings where existing continued pretraining methods lack promptability. We also identify current methodological gaps, which we fill with thorough large-scale experiments. We demonstrate that a simple recipe, continued pretraining that incorporates a trainable prompt during multi-task learning, leads to improved promptability in both zero- and few-shot settings compared to existing methods, up to 31% relative. On the other hand, we find that continued pretraining using MAML-style meta-learning, a method that directly optimizes few-shot promptability, yields subpar performance. We validate our findings with two prompt tuning methods, and, based on our results, we provide concrete recommendations to optimize promptability for different use cases.
Keywords
Full Content
Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 4517 - 4531 December 7-11, 2022 ©2022 Association for Computational Linguistics Continued Pretraining for Better Zero- and Few-Shot Promptability Zhaofeng Wu� Robert L. Logan IV� Pete Walsh� Akshita Bhagia� Dirk Groeneveld� Sameer Singh� � Iz Beltagy� �MIT �Dataminr Inc. �Allen Institute for Artificial Intelligence � University of California, Irvine zfw@csail.mit.edu rlogan@dataminr.com {petew,akshitab,dirkg,beltagy}@allenai.org sameer@uci.edu Abstract Recently introduced language model prompt- ing methods can achieve high accuracy in zero- and few-shot settings while requiring few to no learned task-specific parameters. Never- theless, these methods still often trail behind full model finetuning. In this work, we investi- gate if a dedicated continued pretraining stage could improve “promptability”, i.e., zero-shot performance with natural language prompts or few-shot performance with prompt tuning. We reveal settings where existing continued pre- training methods lack promptability. We also identify current methodological gaps, which we fill with thorough large-scale experiments. We demonstrate that a simple recipe, contin- ued pretraining that incorporates a trainable prompt during multi-task learning, leads to im- proved promptability in both zero- and few- shot settings compared to existing methods, up to 31% relative. On the other hand, we find that continued pretraining using MAML-style meta- learning, a method that directly optimizes few- shot promptability, yields subpar performance. We validate our findings with two prompt tun- ing methods, and, based on our results, we provide concrete recommendations to optimize promptability for different use cases. 1 Introduction Conditioning language models (LMs) on manually- written or learned continuous prompts allows them to solve tasks with high accuracy and minimal pa- rameter overhead (Brown et al., 2020; Li and Liang, 2021; Lester et al., 2021, i.a.). However, prompt- ing performance often still lags behind traditional full finetuning. Natural language prompts usually underperform trained models even when manually curated (Brown et al., 2020; Sanh et al., 2022). Sim- ilarly, while learned prompts yield higher accuracy, This work was done when Zhaofeng Wu was at AI2, and Robert Logan was at UCI. We release our code and models at https://github. com/allenai/better-promptability. they do not work as well when the training data is scarce (Gu et al., 2022), when the model is small or moderately sized (Lester et al., 2021), and when the tasks are difficult (He et al., 2022). To reduce the gap between prompt and full model tuning, past work has shown that continued pretraining on data that resembles the downstream prompting setup induces better “promptability”, i.e., zero-shot performance with natural language (NL) prompts and few-shot performance of prompt tuning (Sanh et al., 2022; Gu et al., 2022). However, in this paper, we identify several shortcomings of these methods. First, continued pretraining on NL prompts (Sanh et al., 2022) sometimes causes per- formance degradation with prompt tuning. Second, continued pretraining approaches that learn only a universal prompt initialization (Gu et al., 2022; Vu et al., 2022) bring only marginal improvement on the P3 datasets (Bach et al., 2022). To further improve zero-shot and few-shot promptability, we investigate …
Content truncated to 500 words
Labeled Text
AbstractRecently introduced language model prompting methods can achieve high accuracy in zero- and few-shot settings while requiring few to no learned task-specific parameters. Nevertheless, these methods still often trail behind full model finetuning. In this work, we investigate if a dedicated continued pretraining stage could improve “promptability”, i.e., zero-shot performance with natural language prompts or few-shot performance with prompt tuning. We reveal settings where existing continued pretraining methods lack promptability. We also identify current methodological gaps, which we fill with thorough large-scale experiments. We demonstrate that a simple recipe, continued pretraining that incorporates a trainable prompt during multi-task learning, leads to improved promptability in both zero- and few-shot settings compared to existing methods, up to 31% relative. On the other hand, we find that continued pretraining using MAML-style meta-learning, a method that directly optimizes few-shot promptability, yields subpar performance. We validate our findings with two prompt tuning methods, and, based on our results, we provide concrete recommendations to optimize promptability for different use cases.
Publication Details
- Paper ID:
- 30964
- Year:
- 2022
- Publication:
- TIPSTER
- Publication Type:
- conf
- DOI:
- nan