[Paper Review] Few-shot Instruction Prompts for Pretrained Language Models to Detect Social Biases
This paper proposes a few-shot instruction prompting method for few-shot bias detection in text using large pre-trained language models (PLMs) without fine-tuning. By selecting class-balanced, semantically similar exemplars from a small labeled repository and prompting the PLM with a structured instruction, the approach achieves state-of-the-art or competitive performance on multiple bias detection tasks, with the 530B-parameter model showing at least 13% AUC improvement and robustness even with only 100 labeled samples.
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.
Motivation & Objective
- To address the challenge of detecting nuanced, subjective social biases in text without requiring large, expensive, or noisy labeled datasets.
- To overcome limitations of fine-tuning large PLMs, including high computational cost, catastrophic forgetting, and overfitting on small datasets.
- To develop a flexible, few-shot prompting framework that leverages the internal knowledge of large PLMs for zero-shot and few-shot bias detection across diverse bias types.
- To improve robustness and performance by selecting class-balanced, semantically similar exemplars instead of random or uniform sampling.
- To demonstrate that large PLMs can outperform fine-tuned models in bias detection when prompted effectively with minimal labeled data.
Proposed method
- The method uses a sentence encoder to embed both the query text and the labeled examples from a small support repository into a shared semantic space.
- It selects a fixed number of exemplars per class using cosine similarity between the query embedding and repository embeddings, ensuring class balance.
- The selected exemplars are combined with a definition of bias and the query into a natural language instruction prompt, formatted as a fill-in-the-blank template.
- The prompt is fed into a large pre-trained language model (e.g., 530B parameter model), which generates a prediction based on conditional token probabilities for each bias class.
- The approach relies on the model’s internal knowledge and generalization ability, avoiding any fine-tuning or parameter updates.
- The method is evaluated across multiple binary and multi-class bias detection tasks using human-annotated datasets.
Experimental results
Research questions
- RQ1Can few-shot instruction prompting with semantically selected exemplars outperform fine-tuned models in detecting social biases?
- RQ2How does the performance of large pre-trained language models vary with different prompt designs and exemplar selection strategies?
- RQ3To what extent can the method maintain high performance when the labeled repository is drastically reduced in size?
- RQ4Does the use of class-balanced, semantic exemplars improve detection accuracy compared to random or uniform sampling?
- RQ5Can the same prompting framework generalize across diverse bias types, including coarse-grained and fine-grained classifications?
Key findings
- The 530B-parameter large language model achieved at least a 13% improvement in AUC over smaller models across most bias detection tasks.
- The method maintained high performance with minimal labeled data, showing less than a 2% drop in AUC when the labeled repository was reduced from 35,000 to 100 samples.
- The few-shot prompting approach outperformed fine-tuned models on three out of eight evaluated tasks, demonstrating superior generalization.
- The method demonstrated robustness and flexibility by successfully detecting a wide range of social biases, including implicit, targeted, and context-dependent forms.
- Ablation studies and qualitative analysis confirmed that the approach relies on deeper semantic understanding rather than surface-level heuristics or keyword matching.
- The framework effectively handles both binary and multi-class bias classification tasks, showing adaptability to diverse bias definitions and target groups.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.