MetaPrompting: Learning to Learn Better Prompts

Yutai Hou, Hongyuan Dong, Xinghao Wang, Bohan Li, Wanxiang Che
9/23/2022
cs.CL

Official code: Dousia/MetaPrompting (23 stars, Python, last commit 2023-01-08).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Code for COLING 2022 long paper: MetaPrompting: Learning to Learn Better Prompts

238Python, ShellSep 11, 20223 years ago

Similar Papers

Cite this paper

@article{hou2022metaprompting,
  title  = {MetaPrompting: Learning to Learn Better Prompts},
  author = {Yutai Hou and Hongyuan Dong and Xinghao Wang and Bohan Li and Wanxiang Che},
  year   = {2022},
  eprint = {2209.11486},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.11486}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.11486.svg)](https://codeofpaper.com/paper/2209.11486)

Discussion