Prompt Consistency for Zero-Shot Task Generalization

Chunting Zhou, Junxian He, Xuezhe Ma, Taylor Berg-Kirkpatrick, Graham Neubig
4/29/2022
cs.CLcs.LG

Official code: violet-zct/swarm-distillation-zero-shot (23 stars, Python, Apache-2.0, last commit 2022-10-15).

Abstract

One of the most impressive results of recent NLP history is the ability of pre-trained language models to solve new tasks in a zero-shot setting. To achieve this, NLP tasks are framed as natural language prompts, generating a response indicating the predicted output.

Show full abstract

Nonetheless, the performance in such settings often lags far behind its supervised counterpart, suggesting a large space for potential improvement. In this paper, we explore methods to utilize unlabeled data to improve zero-shot performance. Specifically, we take advantage of the fact that multiple prompts can be used to specify a single task, and propose to regularize prompt consistency, encouraging consistent predictions over this diverse set of prompts. Our method makes it possible to fine-tune the model either with extra unlabeled training data, or directly on test input at inference time in an unsupervised manner. In experiments, our approach outperforms the state-of-the-art zero-shot learner, T0 (Sanh et al., 2022), on 9 out of 11 datasets across 4 NLP tasks by up to 10.6 absolute points in terms of accuracy. The gains are often attained with a small number of unlabeled examples.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
232Python, ShellOct 24, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhou2022prompt,
  title  = {Prompt Consistency for Zero-Shot Task Generalization},
  author = {Chunting Zhou and Junxian He and Xuezhe Ma and Taylor Berg-Kirkpatrick and Graham Neubig},
  year   = {2022},
  eprint = {2205.00049},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.00049}
}

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

Discussion