Few-shot Instruction Prompts for Pretrained Language Models to Detect Social Biases

By Shrimai Prabhumoye, Rafal Kocielnik, Mohammad Shoeybi, Anima Anandkumar, Bryan Catanzaro. 2021

27 citations recorded by the source corpus.

Detecting social bias in text is challenging due to nuance, subjectivity, and difficulty in obtaining good quality labeled datasets at scale, especially given the evolving nature of social biases and society. To address these challenges, we propose a few-shot instruction-based method for prompting pre-trained language models (LMs). We select a few class-balanced exemplars from a small support repository that are closest to the query to be labeled in the embedding space. We then provide the LM with instruction that consists of this subset of labeled exemplars, the query text to be classified, a definition of bias, and prompt it to make a decision. We demonstrate that large LMs used in a few-shot context can detect different types of fine-grained biases with similar and sometimes superior accuracy to fine-tuned models. We observe that the largest 530B parameter model is significantly more effective in detecting social bias compared to smaller models (achieving at least 13% improvement in AUC metric compared to other models). It also maintains a high AUC (dropping less than 2%) when the labeled repository is reduced to as few as $100$ samples. Large pretrained language models thus make it easier and quicker to build new bias detectors.

Subfields: Artificial Intelligence, General Social Sciences, Prompting & Reasoning, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Yejin Choi
  3. Percy Liang
  4. Hannaneh Hajishirzi
  5. Mohit Bansal
  6. Daniel Khashabi
  7. Jianfeng Gao
  8. Noah A. Smith

In General Social Sciences

  1. Dan Jurafsky
  2. Daniel Khashabi
  3. Tushar Khot
  4. Kai-Wei Chang
  5. Stanislav Fort
  6. Sunipa Dev

In Prompting & Reasoning

  1. Daniel Khashabi
  2. Tushar Khot
  3. Dario Amodei
  4. Kai-Wei Chang
  5. Luke S. Zettlemoyer
  6. Ashish Sabharwal
  7. Peter Clark

In Safety, Robustness & Interpretability

  1. Sunipa Dev
  2. Daniel Khashabi
  3. Dan Jurafsky
  4. Tushar Khot
  5. Kai-Wei Chang
  6. Neel Nanda
  7. Jack Clark
  8. Dario Amodei

Citations in the corpus