mlsanityData to 14 Oct 2026

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

arXiv 2112.07868 ↗First posted 15 Dec 2021cs.CL cs.AIcited by 21

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Builds on 33 of its 71 references that are in the map. First posted on arXiv 15 Dec 2021.

Builds on

33 of 71 references.

References · 33

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  5. 2019Language Models as Knowledge Bases?cited by 1,936
  6. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  7. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  8. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  9. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
  10. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  11. 2021Ethical and social risks of harm from Language Modelscited by 966
  12. 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
21 more
  1. 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 803
  2. 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
  3. 2020Learning from Noisy Labels with Deep Neural Networks: A Surveycited by 582
  4. 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 380
  5. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
  6. 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
  7. 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 271
  8. 2019Racial Bias in Hate Speech and Abusive Language Detection Datasetscited by 209
  9. 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 207
  10. 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
  11. 2017Deep Learning for Hate Speech Detection in Tweetscited by 180
  12. 2021Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language Modelscited by 139
  13. 2017Understanding Abuse: A Typology of Abusive Language Detection Subtaskscited by 116
  14. 2019CONAN -- COunter NArratives through Nichesourcing: a Multilingual Dataset of Responses to Fight Online Hate Speechcited by 110
  15. 2019Evaluating Commonsense in Pre-trained Language Modelscited by 95
  16. 2016A Joint Many-Task Model: Growing a Neural Network for Multiple NLP Taskscited by 62
  17. 2020SOLID: A Large-Scale Semi-Supervised Dataset for Offensive Language Identificationcited by 53
  18. 2021Overview of the HASOC track at FIRE 2020: Hate Speech and Offensive Content Identification in Indo-European Languagescited by 38
  19. 2021Improving Gender Fairness of Pre-Trained Language Models without Catastrophic Forgettingcited by 35
  20. 2017A Web of Hate: Tackling Hateful Speech in Online Social Spacescited by 15
  21. 2019Towards non-toxic landscapes: Automatic toxic comment detection using DNNcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 5; 2023: 4; 2024: 5; 2025: 5; 2026: 2.

21 papers.

Sort:

By area:

  1. 2025Memory in the Age of AI Agentscited by 303
  2. 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examplescited by 80
  3. 2022COLD: A Benchmark for Chinese Offensive Language Detectioncited by 76
  4. 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Modelscited by 49
  5. 2022Toxicity Detection with Generative Prompt-based Inferencecited by 35
  6. 2022The Tail Wagging the Dog: Dataset Construction Biases of Social Bias Benchmarkscited by 31
  7. 2024Advancing Social Intelligence in AI Agents: Technical Challenges and Open Questionscited by 22
  8. 2023A Tale of Pronouns: Interpretability Informs Gender Bias Mitigation for Fairer Instruction-Tuned Machine Translationcited by 19
  9. 2023Adding Instructions during Pretraining: Effective Way of Controlling Toxicity in Language Modelscited by 16
  10. 2025Silenced Biases: The Dark Side LLMs Learned to Refusecited by 10
  11. 2023BiasTestGPT: Using ChatGPT for Social Bias Testing of Language Modelscited by 8
  12. 2022Can You Label Less by Using Out-of-Domain Data? Active & Transfer Learning with Few-shot Instructionscited by 7
9 more
  1. 2024Disentangling Dialect from Social Bias via Multitask Learning to Improve Fairnesscited by 1
  2. 2024ViDAS: Vision-based Danger Assessment and Scoringcited by 1
  3. 2024ViLBias: Detecting and Reasoning about Bias in Multimodal Contentcited by 1
  4. 2025Self-Anchored Attention Model for Sample-Efficient Classification of Prosocial Text Chatcited by 1
  5. 2025Prosocial Behavior Detection in Player Game Chat: From Aligning Human-AI Definitions to Efficient Annotation at Scalecited by 1
  6. 2024VARS: Vision-based Assessment of Risk in Security Systemscited by 0
  7. 2025Bias Testing and Mitigation in Black Box LLMs using Metamorphic Relationscited by 0
  8. 2026Contextual StereoSet: Stress-Testing Bias Alignment Robustness in Large Language Modelscited by 0
  9. 2026Discovering the Hidden Role of Gini Index In Prompt-based Classificationcited by 0