What Makes Pre-trained Language Models Better Zero-shot Learners?

Jinghui Lu, Dongsheng Zhu, Weidong Han, Rui Zhao, Brian Mac Namee +1 more
9/30/2022
cs.CLcs.AI

Official code: GeorgeLuImmortal/Perplection_ACL2023 (1 star, Jupyter Notebook, last commit 2023-07-25).

Abstract

Current methods for prompt learning in zeroshot scenarios widely rely on a development set with sufficient human-annotated data to select the best-performing prompt template a posteriori. This is not ideal because in a realworld zero-shot scenario of practical relevance, no labelled data is available.

Show full abstract

Thus, we propose a simple yet effective method for screening reasonable prompt templates in zero-shot text classification: Perplexity Selection (Perplection). We hypothesize that language discrepancy can be used to measure the efficacy of prompt templates, and thereby develop a substantiated perplexity-based scheme allowing for forecasting the performance of prompt templates in advance. Experiments show that our method leads to improved prediction performance in a realistic zero-shot setting, eliminating the need for any labelled examples.

View on arXivView PDF

Code Implementations(1)

11Jupyter Notebook, PythonMay 13, 20233 years ago

Similar Papers

Cite this paper

@article{lu2022what,
  title  = {What Makes Pre-trained Language Models Better Zero-shot Learners?},
  author = {Jinghui Lu and Dongsheng Zhu and Weidong Han and Rui Zhao and Brian Mac Namee and Fei Tan},
  year   = {2022},
  eprint = {2209.15206},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.15206}
}

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

Discussion