Flexible text generation for counterfactual fairness probing
Not on the map. Why?
Abstract (arXiv)
A common approach for testing fairness issues in text-based classifiers is through the use of counterfactuals: does the classifier output change if a sensitive attribute in the input is changed? Existing counterfactual generation methods typically rely on wordlists or templates, producing simple counterfactuals that don't take into account grammar, context, or subtle sensitive attribute references, and could miss issues that the wordlist creators had not considered. In this paper, we introduce a task for generating counterfactuals that overcomes these shortcomings, and demonstrate how large language models (LLMs) can be leveraged to make progress on this task. We show that this LLM-based method can produce complex counterfactuals that existing methods cannot, comparing the performance of various counterfactual generation methods on the Civil Comments dataset and showing their value in evaluating a toxicity classifier.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 33 of its 53 references that are in the map. First posted on arXiv 28 Jun 2022.
Builds on
33 of 53 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
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
- 2018Gender Bias in Coreference Resolutioncited by 442
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
21 more
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 404
- 2019Social Bias Frames: Reasoning about Social and Power Implications of Languagecited by 380
- 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 222
- 2020HateCheck: Functional Tests for Hate Speech Detection Modelscited by 216
- 2019Racial Bias in Hate Speech and Abusive Language Detection Datasetscited by 209
- 2020Social Biases in NLP Models as Barriers for Persons with Disabilitiescited by 182
- 2019Queens are Powerful too: Mitigating Gender Bias in Dialogue Generationcited by 152
- 2018Counterfactual Fairness in Text Classification through Robustnesscited by 151
- 2020Towards Controllable Biases in Language Generationcited by 112
- 2021A Recipe For Arbitrary Text Style Transfer with Large Language Modelscited by 107
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2019It's All in the Name: Mitigating Gender Bias with Name-Based Counterfactual Data Substitutioncited by 103
- 2021Challenges in Automated Debiasing for Toxic Language Detectioncited by 96
- 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
- 2019Perturbation Sensitivity Analysis to Detect Unintended Model Biasescited by 74
- 2021Tailor: Generating and Perturbing Text with Semantic Controlscited by 68
- 2021Hatemoji: A Test Suite and Adversarially-Generated Dataset for Benchmarking and Detecting Emoji-based Hatecited by 50
- 2020CAT-Gen: Improving Robustness in NLP Models via Controlled Adversarial Text Generationcited by 44
- 2021Improving Counterfactual Generation for Fair Hate Speech Detectioncited by 10
- 2022Counterfactual Multi-Token Fairness in Text Classificationcited by 3
Built on by
Citing papers per year: 2023: 8; 2024: 5.
13 papers.
Sort:
By area:
- 2023AART: AI-Assisted Red-Teaming with Diverse Data Generation for New LLM-powered Applicationscited by 54
- 2023SocialCounterfactuals: Probing and Mitigating Intersectional Social Biases in Vision-Language Models with Counterfactual Examplescited by 53
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
- 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 17
- 2024Is Your Large Language Model Knowledgeable or a Choices-Only Cheater?cited by 12
- 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactualscited by 8
- 2023Visualizing Linguistic Diversity of Text Datasets Synthesized by Large Language Modelscited by 4
- 2024Language Models as Causal Effect Generatorscited by 4
- 2023MLHOps: Machine Learning for Healthcare Operationscited by 2
- 2023On Bias and Fairness in NLP: Investigating the Impact of Bias and Debiasing in Language Models on the Fairness of Toxicity Detectioncited by 1
- 2023Synthetic Text Generation using Hypergraph Representationscited by 1
- 2024Causal Inference for Human-Language Model Collaborationcited by 1
1 more
- 2024Language Models as Causal Effect Generators12 Nov 2024
- 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactuals15 Oct 2024
- 2024Is Your Large Language Model Knowledgeable or a Choices-Only Cheater?2 Jul 2024
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directions14 May 2024
- 2024Causal Inference for Human-Language Model Collaboration30 Mar 2024
- 2023SocialCounterfactuals: Probing and Mitigating Intersectional Social Biases in Vision-Language Models with Counterfactual Examples30 Nov 2023
- 2023Measuring and Improving Attentiveness to Partial Inputs with Counterfactuals16 Nov 2023
- 2023AART: AI-Assisted Red-Teaming with Diverse Data Generation for New LLM-powered Applications14 Nov 2023
- 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibration14 Sep 2023
- 2023Synthetic Text Generation using Hypergraph Representations6 Sep 2023
- 2023On Bias and Fairness in NLP: Investigating the Impact of Bias and Debiasing in Language Models on the Fairness of Toxicity Detection22 May 2023
- 2023Visualizing Linguistic Diversity of Text Datasets Synthesized by Large Language Models19 May 2023
1 more
- 2023MLHOps: Machine Learning for Healthcare Operations4 May 2023
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directionscited by 28
- 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 17
- 2024Is Your Large Language Model Knowledgeable or a Choices-Only Cheater?cited by 12
- 2023Visualizing Linguistic Diversity of Text Datasets Synthesized by Large Language Modelscited by 4
- 2024Language Models as Causal Effect Generatorscited by 4
- 2023MLHOps: Machine Learning for Healthcare Operationscited by 2
- 2023On Bias and Fairness in NLP: Investigating the Impact of Bias and Debiasing in Language Models on the Fairness of Toxicity Detectioncited by 1
- 2023Synthetic Text Generation using Hypergraph Representationscited by 1
- 2024Causal Inference for Human-Language Model Collaborationcited by 1
- 2023Measuring and Improving Attentiveness to Partial Inputs with Counterfactualscited by 0
- 2024Language Models as Causal Effect Generators12 Nov 2024
- 2024Is Your Large Language Model Knowledgeable or a Choices-Only Cheater?2 Jul 2024
- 2024Navigating LLM Ethics: Advancements, Challenges, and Future Directions14 May 2024
- 2024Causal Inference for Human-Language Model Collaboration30 Mar 2024
- 2023Measuring and Improving Attentiveness to Partial Inputs with Counterfactuals16 Nov 2023
- 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibration14 Sep 2023
- 2023Synthetic Text Generation using Hypergraph Representations6 Sep 2023
- 2023On Bias and Fairness in NLP: Investigating the Impact of Bias and Debiasing in Language Models on the Fairness of Toxicity Detection22 May 2023
- 2023Visualizing Linguistic Diversity of Text Datasets Synthesized by Large Language Models19 May 2023
- 2023MLHOps: Machine Learning for Healthcare Operations4 May 2023