Few-shot Instruction Prompts for Pretrained Language Models to Detect Social Biases
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
21 more
- 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 803
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
- 2020Learning from Noisy Labels with Deep Neural Networks: A Surveycited by 582
- 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 380
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 271
- 2019Racial Bias in Hate Speech and Abusive Language Detection Datasetscited by 209
- 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 207
- 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
- 2017Deep Learning for Hate Speech Detection in Tweetscited by 180
- 2021Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language Modelscited by 139
- 2017Understanding Abuse: A Typology of Abusive Language Detection Subtaskscited by 116
- 2019CONAN -- COunter NArratives through Nichesourcing: a Multilingual Dataset of Responses to Fight Online Hate Speechcited by 110
- 2019Evaluating Commonsense in Pre-trained Language Modelscited by 95
- 2016A Joint Many-Task Model: Growing a Neural Network for Multiple NLP Taskscited by 62
- 2020SOLID: A Large-Scale Semi-Supervised Dataset for Offensive Language Identificationcited by 53
- 2021Overview of the HASOC track at FIRE 2020: Hate Speech and Offensive Content Identification in Indo-European Languagescited by 38
- 2021Improving Gender Fairness of Pre-Trained Language Models without Catastrophic Forgettingcited by 35
- 2017A Web of Hate: Tackling Hateful Speech in Online Social Spacescited by 15
- 2019Towards non-toxic landscapes: Automatic toxic comment detection using DNNcited by 8
Built on by
Citing papers per year: 2022: 5; 2023: 4; 2024: 5; 2025: 5; 2026: 2.
21 papers.
Sort:
By area:
- 2025Memory in the Age of AI Agentscited by 303
- 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examplescited by 80
- 2022COLD: A Benchmark for Chinese Offensive Language Detectioncited by 76
- 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Modelscited by 49
- 2022Toxicity Detection with Generative Prompt-based Inferencecited by 35
- 2022The Tail Wagging the Dog: Dataset Construction Biases of Social Bias Benchmarkscited by 31
- 2024Advancing Social Intelligence in AI Agents: Technical Challenges and Open Questionscited by 22
- 2023A Tale of Pronouns: Interpretability Informs Gender Bias Mitigation for Fairer Instruction-Tuned Machine Translationcited by 19
- 2023Adding Instructions during Pretraining: Effective Way of Controlling Toxicity in Language Modelscited by 16
- 2025Silenced Biases: The Dark Side LLMs Learned to Refusecited by 10
- 2023BiasTestGPT: Using ChatGPT for Social Bias Testing of Language Modelscited by 8
- 2022Can You Label Less by Using Out-of-Domain Data? Active & Transfer Learning with Few-shot Instructionscited by 7
9 more
- 2024Disentangling Dialect from Social Bias via Multitask Learning to Improve Fairnesscited by 1
- 2024ViDAS: Vision-based Danger Assessment and Scoringcited by 1
- 2024ViLBias: Detecting and Reasoning about Bias in Multimodal Contentcited by 1
- 2025Self-Anchored Attention Model for Sample-Efficient Classification of Prosocial Text Chatcited by 1
- 2025Prosocial Behavior Detection in Player Game Chat: From Aligning Human-AI Definitions to Efficient Annotation at Scalecited by 1
- 2024VARS: Vision-based Assessment of Risk in Security Systemscited by 0
- 2025Bias Testing and Mitigation in Black Box LLMs using Metamorphic Relationscited by 0
- 2026Contextual StereoSet: Stress-Testing Bias Alignment Robustness in Large Language Modelscited by 0
- 2026Discovering the Hidden Role of Gini Index In Prompt-based Classificationcited by 0
- 2026Discovering the Hidden Role of Gini Index In Prompt-based Classification7 Mar 2026
- 2026Contextual StereoSet: Stress-Testing Bias Alignment Robustness in Large Language Models15 Jan 2026
- 2025Memory in the Age of AI Agents15 Dec 2025
- 2025Bias Testing and Mitigation in Black Box LLMs using Metamorphic Relations29 Nov 2025
- 2025Silenced Biases: The Dark Side LLMs Learned to Refuse5 Nov 2025
- 2025Prosocial Behavior Detection in Player Game Chat: From Aligning Human-AI Definitions to Efficient Annotation at Scale8 Aug 2025
- 2025Self-Anchored Attention Model for Sample-Efficient Classification of Prosocial Text Chat10 Jun 2025
- 2024ViLBias: Detecting and Reasoning about Bias in Multimodal Content22 Dec 2024
- 2024VARS: Vision-based Assessment of Risk in Security Systems25 Oct 2024
- 2024ViDAS: Vision-based Danger Assessment and Scoring1 Oct 2024
- 2024Disentangling Dialect from Social Bias via Multitask Learning to Improve Fairness14 Jun 2024
- 2024Advancing Social Intelligence in AI Agents: Technical Challenges and Open Questions17 Apr 2024
9 more
- 2023A Tale of Pronouns: Interpretability Informs Gender Bias Mitigation for Fairer Instruction-Tuned Machine Translation18 Oct 2023
- 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examples21 Jul 2023
- 2023Adding Instructions during Pretraining: Effective Way of Controlling Toxicity in Language Models14 Feb 2023
- 2023BiasTestGPT: Using ChatGPT for Social Bias Testing of Language Models14 Feb 2023
- 2022Can You Label Less by Using Out-of-Domain Data? Active & Transfer Learning with Few-shot Instructions21 Nov 2022
- 2022The Tail Wagging the Dog: Dataset Construction Biases of Social Bias Benchmarks18 Oct 2022
- 2022Toxicity Detection with Generative Prompt-based Inference24 May 2022
- 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Models23 May 2022
- 2022COLD: A Benchmark for Chinese Offensive Language Detection16 Jan 2022
- 2025Memory in the Age of AI Agentscited by 303
- 2025Memory in the Age of AI Agents15 Dec 2025
- 2025Silenced Biases: The Dark Side LLMs Learned to Refusecited by 10
- 2025Silenced Biases: The Dark Side LLMs Learned to Refuse5 Nov 2025
- 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examplescited by 80
- 2022COLD: A Benchmark for Chinese Offensive Language Detectioncited by 76
- 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Modelscited by 49
- 2022Toxicity Detection with Generative Prompt-based Inferencecited by 35
- 2022The Tail Wagging the Dog: Dataset Construction Biases of Social Bias Benchmarkscited by 31
- 2024Advancing Social Intelligence in AI Agents: Technical Challenges and Open Questionscited by 22
- 2023A Tale of Pronouns: Interpretability Informs Gender Bias Mitigation for Fairer Instruction-Tuned Machine Translationcited by 19
- 2023Adding Instructions during Pretraining: Effective Way of Controlling Toxicity in Language Modelscited by 16
- 2023BiasTestGPT: Using ChatGPT for Social Bias Testing of Language Modelscited by 8
- 2022Can You Label Less by Using Out-of-Domain Data? Active & Transfer Learning with Few-shot Instructionscited by 7
- 2024Disentangling Dialect from Social Bias via Multitask Learning to Improve Fairnesscited by 1
- 2024ViDAS: Vision-based Danger Assessment and Scoringcited by 1
12 most cited of 18 All 18 (JSON)
- 2026Discovering the Hidden Role of Gini Index In Prompt-based Classification7 Mar 2026
- 2026Contextual StereoSet: Stress-Testing Bias Alignment Robustness in Large Language Models15 Jan 2026
- 2025Bias Testing and Mitigation in Black Box LLMs using Metamorphic Relations29 Nov 2025
- 2025Prosocial Behavior Detection in Player Game Chat: From Aligning Human-AI Definitions to Efficient Annotation at Scale8 Aug 2025
- 2025Self-Anchored Attention Model for Sample-Efficient Classification of Prosocial Text Chat10 Jun 2025
- 2024VARS: Vision-based Assessment of Risk in Security Systems25 Oct 2024
- 2024ViDAS: Vision-based Danger Assessment and Scoring1 Oct 2024
- 2024Disentangling Dialect from Social Bias via Multitask Learning to Improve Fairness14 Jun 2024
- 2024Advancing Social Intelligence in AI Agents: Technical Challenges and Open Questions17 Apr 2024
- 2023A Tale of Pronouns: Interpretability Informs Gender Bias Mitigation for Fairer Instruction-Tuned Machine Translation18 Oct 2023
- 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examples21 Jul 2023
- 2023Adding Instructions during Pretraining: Effective Way of Controlling Toxicity in Language Models14 Feb 2023
12 newest of 18 All 18 (JSON)