Pre-trained Language Models Can be Fully Zero-Shot Learners

Xuandong Zhao, Siqi Ouyang, Zhiguo Yu, Ming Wu, Lei Li
12/14/2022
45 citations
cs.CL

Official code: XuandongZhao/NPPrompt (8 stars, Python, MIT, last commit 2024-02-02).

Abstract

How can we extend a pre-trained model to many language understanding tasks, without labeled or additional unlabeled data? Pre-trained language models (PLMs) have been effective for a wide range of NLP tasks.

Show full abstract

However, existing approaches either require fine-tuning on downstream labeled datasets or manually constructing proper prompts. In this paper, we propose nonparametric prompting PLM (NPPrompt) for fully zero-shot language understanding. Unlike previous methods, NPPrompt uses only pre-trained language models and does not require any labeled data or additional raw corpus for further fine-tuning, nor does it rely on humans to construct a comprehensive set of prompt label words. We evaluate NPPrompt against previous major few-shot and zero-shot learning methods on diverse NLP tasks: including text classification, text entailment, similar text retrieval, and paraphrasing. Experimental results demonstrate that our NPPrompt outperforms the previous best fully zero-shot method by big margins, with absolute gains of 12.8% in accuracy on text classification and 18.9% on the GLUE benchmark.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2023] NPPrompt: Pre-trained Language Models Can be Fully Zero-Shot Learners

84Python, ShellMay 19, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zhao2022pretrained,
  title  = {Pre-trained Language Models Can be Fully Zero-Shot Learners},
  author = {Xuandong Zhao and Siqi Ouyang and Zhiguo Yu and Ming Wu and Lei Li},
  year   = {2022},
  eprint = {2212.06950},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06950}
}

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

Discussion