Towards Unified Prompt Tuning for Few-shot Text Classification

Jianing Wang, Chengyu Wang, Fuli Luo, Chuanqi Tan, Minghui Qiu +4 more
5/11/2022
cs.CLcs.AI
lora-peft-merging

Official code: alibaba/EasyNLP (2,189 stars, Python, Apache-2.0, PyTorch, last commit 2024-11-27).

Abstract

Prompt-based fine-tuning has boosted the performance of Pre-trained Language Models (PLMs) on few-shot text classification by employing task-specific prompts. Yet, PLMs are unfamiliar with prompt-style expressions during pre-training, which limits the few-shot learning performance on downstream tasks.

Show full abstract

It would be desirable if the models can acquire some prompting knowledge before adaptation to specific NLP tasks. We present the Unified Prompt Tuning (UPT) framework, leading to better few-shot text classification for BERT-style models by explicitly capturing prompting semantics from non-target NLP datasets. In UPT, a novel paradigm Prompt-Options-Verbalizer is proposed for joint prompt learning across different NLP tasks, forcing PLMs to capture task-invariant prompting knowledge. We further design a self-supervised task named Knowledge-enhanced Selective Masked Language Modeling to improve the PLM's generalization abilities for accurate adaptation to previously unseen tasks. After multi-task learning across multiple tasks, the PLM can be better prompt-tuned towards any dissimilar target tasks in low-resourced settings. Experiments over a variety of NLP tasks show that UPT consistently outperforms state-of-the-arts for prompt-based fine-tuning.

View on arXivView PDF

Code Implementations(1)

alibaba/EasyNLPOfficial100%
PyTorchApache-2.0

EasyNLP: A Comprehensive and Easy-to-use NLP Toolkit

2,189256Python, Jupyter NotebookApr 6, 20222 years agoApache-2.0
bertdeep-learningfewshot-learningknowledge-distillationknowledge-pretraining+9 more

Similar Papers

Cite this paper

@article{wang2022towards,
  title  = {Towards Unified Prompt Tuning for Few-shot Text Classification},
  author = {Jianing Wang and Chengyu Wang and Fuli Luo and Chuanqi Tan and Minghui Qiu and Fei Yang and Qiuhui Shi and Songfang Huang and Ming Gao},
  year   = {2022},
  eprint = {2205.05313},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.05313}
}

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

Discussion