GPT Understands, Too

Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian +2 more
3/18/2021
cs.CLcs.LG

Official code: THUDM/P-tuning (939 stars, MIT, last commit 2022-10-06).

Abstract

Prompting a pretrained language model with natural language patterns has been proved effective for natural language understanding (NLU). However, our preliminary study reveals that manual discrete prompts often lead to unstable performance -- e.g., changing a single word in the prompt might result in substantial performance drop. We propose a novel method P-Tuning that employs trainable continuous prompt embeddings in concatenation with discrete prompts. Empirically, P-Tuning not only stabilizes training by minimizing the gap between various discrete prompts, but also improves performance by a sizeable margin on a wide range of NLU tasks including LAMA and SuperGLUE. P-Tuning is generally effective for both frozen and tuned language models, under both the fully-supervised and few-shot settings.

View on arXivView PDF

Code Implementations(1)

THUDM/P-tuningOfficial100%
MIT

A novel method to tune language models. Codes and datasets for paper ``GPT understands, too''.

939113Shell, PythonMar 18, 20214 years agoMIT
few-shot-learningnatural-language-processingp-tuningparameter-efficient-learningpre-trained-language-models+1 more

Cite this paper

@article{liu2021understands,
  title  = {GPT Understands, Too},
  author = {Xiao Liu and Yanan Zheng and Zhengxiao Du and Ming Ding and Yujie Qian and Zhilin Yang and Jie Tang},
  year   = {2021},
  eprint = {2103.10385},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.10385}
}

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

Discussion