Mitigating Word Bias in Zero-shot Prompt-based Classifiers

Adian Liusie, Potsawee Manakul, Mark J. F. Gales
9/10/2023
cs.CL

No official code found. Best implementation: adianliusie/robust-prompt-classifier (6 stars, last commit 2023-09-12).

Abstract

Prompt-based classifiers are an attractive approach for zero-shot classification. However, the precise choice of the prompt template and label words can largely influence performance, with semantically equivalent settings often showing notable performance difference. This discrepancy can be partly attributed to word biases, where the classifier may be biased towards classes. To address this problem, it is possible to optimise classification thresholds on a labelled data set, however, this mitigates some of the advantages of prompt-based classifiers. This paper instead approaches this problem by examining the expected marginal probabilities of the classes. Here, probabilities are reweighted to have a uniform prior over classes, in an unsupervised fashion. Further, we draw a theoretical connection between the class priors and the language models' word prior, and offer the ability to set a threshold in a zero-resource fashion. We show that matching class priors correlates strongly with the oracle upper bound performance and demonstrate large consistent performance gains for prompt settings over a range of NLP tasks.

View on arXivView PDF

Code Implementations(1)

Repository that interfaces flan-t5 for NLP tasks to be used in a simple and convenient manner

61Shell, PythonMar 27, 20233 years ago

Similar Papers

Cite this paper

@article{liusie2023mitigating,
  title  = {Mitigating Word Bias in Zero-shot Prompt-based Classifiers},
  author = {Adian Liusie and Potsawee Manakul and Mark J. F. Gales},
  year   = {2023},
  eprint = {2309.04992},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.04992v1}
}

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

Discussion