PPT: Pre-trained Prompt Tuning for Few-shot Learning

Yuxian Gu, Xu Han, Zhiyuan Liu, Minlie Huang
9/9/2021
cs.CL
lora-peft-merging

Official code: thu-coai/PPT (110 stars, Python, MIT, last commit 2022-08-10).

Abstract

Prompts for pre-trained language models (PLMs) have shown remarkable performance by bridging the gap between pre-training tasks and various downstream tasks. Among these methods, prompt tuning, which freezes PLMs and only tunes soft prompts, provides an efficient and effective solution for adapting large-scale PLMs to downstream tasks.

Show full abstract

However, prompt tuning is yet to be fully explored. In our pilot experiments, we find that prompt tuning performs comparably with conventional full-model fine-tuning when downstream data are sufficient, whereas it performs much worse under few-shot learning settings, which may hinder the application of prompt tuning in practice. We attribute this low performance to the manner of initializing soft prompts. Therefore, in this work, we propose to pre-train prompts by adding soft prompts into the pre-training stage to obtain a better initialization. We name this Pre-trained Prompt Tuning framework "PPT". To ensure the generalization of PPT, we formulate similar classification tasks into a unified task form and pre-train soft prompts for this unified task. Extensive experiments show that tuning pre-trained prompts for downstream tasks can reach or even outperform full-model fine-tuning under both full-data and few-shot settings. Our approach is effective and efficient for using large-scale PLMs in practice.

View on arXivView PDF

Code Implementations(1)

thu-coai/PPTOfficial100%
MIT

Official Code for "PPT: Pre-trained Prompt Tuning for Few-shot Learning". ACL 2022

1108Python, ShellMar 5, 20224 years agoMIT

Similar Papers

Cite this paper

@article{gu2021ppt,
  title  = {PPT: Pre-trained Prompt Tuning for Few-shot Learning},
  author = {Yuxian Gu and Xu Han and Zhiyuan Liu and Minlie Huang},
  year   = {2021},
  eprint = {2109.04332},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04332}
}

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/2109.04332.svg)](https://codeofpaper.com/paper/2109.04332)

Discussion