GPT 也能理解:P-Tuning——用可训练的连续提示嵌入提升自然语言理解性能

GPT Understands, Too

唐杰 Jie Tang · Tsinghua University · 2021-03-18 · arXiv:2103.10385 ↗ · 被引 1450

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

使用自然语言模式对预训练语言模型进行提示已被证明对自然语言理解有效。然而,我们的初步研究表明,手动离散提示往往导致性能不稳定——例如,改变提示中的一个单词可能导致性能大幅下降。我们提出了一种新颖的方法 P-Tuning,它将可训练的连续提示嵌入与离散提示连接起来。实验表明,P-Tuning 不仅通过最小化各种离散提示之间的差距来稳定训练,而且在包括 LAMA 和 SuperGLUE 在内的广泛 NLU 任务上显著提升了性能。P-Tuning 在冻结和微调的语言模型上,以及在完全监督和少样本设置下都普遍有效。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 12)

阅读逐段中英对照全文 →