Counterfactual Fairness in Text Classification through Robustness
Not on the map. Why?
Abstract (arXiv)
In this paper, we study counterfactual fairness in text classification, which asks the question: How would the prediction change if the sensitive attribute referenced in the example were different? Toxicity classifiers demonstrate a counterfactual fairness issue by predicting that "Some people are gay" is toxic while "Some people are straight" is nontoxic. We offer a metric, counterfactual token fairness (CTF), for measuring this particular form of fairness in text classifiers, and describe its relationship with group fairness. Further, we offer three approaches, blindness, counterfactual augmentation, and counterfactual logit pairing (CLP), for optimizing counterfactual token fairness during training, bridging the robustness and fairness literature. Empirically, we find that blindness and CLP address counterfactual token fairness. The methods do not harm classifier performance, and have varying tradeoffs with group fairness. These approaches, both for measurement and optimization, provide a new path forward for addressing fairness concerns in text classification.
Key facts. Cited by 150 papers in the map (data through 7 Oct 2026). First posted on arXiv 27 Sep 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 29; 2022: 40; 2023: 35; 2024: 23; 2025: 13; 2026: 10.
150 papers.
Sort:
By area:
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 702
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
- 2021Carbon Emissions and Large Neural Network Trainingcited by 561
- 2021AI and the Everything in the Whole Wide World Benchmarkcited by 340
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 337
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 187
- 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 177
- 2021VALSE: A Task-Independent Benchmark for Vision and Language Models Centered on Linguistic Phenomenacited by 134
38 more
- 2021Re-imagining Algorithmic Fairness in India and Beyondcited by 102
- 2023A Survey on Fairness in Large Language Modelscited by 91
- 2021Quantifying Social Biases in NLP: A Generalization and Empirical Comparison of Extrinsic Fairness Metricscited by 83
- 2021Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Testscited by 77
- 2023Fast Model Debias with Machine Unlearningcited by 70
- 2022Re-contextualizing Fairness in NLP: The Case of Indiacited by 55
- 2022Multilingual HateCheck: Functional Tests for Multilingual Hate Speech Detection Modelscited by 51
- 2022Evaluation Gaps in Machine Learning Practicecited by 48
- 2022Discovering Bugs in Vision Models using Off-the-shelf Image Generation and Captioningcited by 45
- 2024A Toolbox for Surfacing Health Equity Harms and Biases in Large Language Modelscited by 45
- 2022Causality-based Neural Network Repaircited by 44
- 2023Faithful Explanations of Black-box NLP Models Using LLM-generated Counterfactualscited by 44
- 2021Detecting Cross-Geographic Biases in Toxicity Modeling on Social Mediacited by 31
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimizationcited by 31
- 2023Sociodemographic Bias in Language Models: A Survey and Forward Pathcited by 27
- 2024Uncovering Bias in Large Vision-Language Models at Scale with Counterfactualscited by 27
- 2022From plane crashes to algorithmic harm: applicability of safety engineering frameworks for responsible MLcited by 26
- 2021Testing Group Fairness via Optimal Transport Projectionscited by 23
- 2023Counterfactual Learning on Graphs: A Surveycited by 22
- 2022Deep Learning on a Healthy Data Diet: Finding Important Examples for Fairnesscited by 21
- 2021Does Robustness Improve Fairness? Approaching Fairness with Word Substitution Robustness Methods for Text Classificationcited by 20
- 2022Learning fair representation with a parametric integral probability metriccited by 20
- 2022Challenges in Applying Explainability Methods to Improve the Fairness of NLP Modelscited by 20
- 2024Fairness and Bias in Multimodal AI: A Surveycited by 19
- 2022Necessity and Sufficiency for Explaining Text Classifiers: A Case Study in Hate Speech Detectioncited by 18
- 2021Probabilistic Verification of Neural Networks Against Group Fairnesscited by 17
- 2021Modeling Techniques for Machine Learning Fairness: A Surveycited by 17
- 2023Indian-BhED: A Dataset for Measuring India-Centric Biases in Large Language Modelscited by 17
- 2021Synthesizing Adversarial Negative Responses for Robust Response Ranking and Evaluationcited by 16
- 2022Accurate Fairness: Improving Individual Fairness without Trading Accuracycited by 16
- 2021Are VQA Systems RAD? Measuring Robustness to Augmented Data with Focused Interventionscited by 15
- 2023Safety and Fairness for Content Moderation in Generative Modelscited by 15
- 2021Automatic Fairness Testing of Neural Classifiers through Adversarial Samplingcited by 14
- 2023Data Augmentations for Improved (Large) Language Model Generalizationcited by 14
- 2022Domain Adaptation meets Individual Fairness. And they get alongcited by 13
- 2022Flexible text generation for counterfactual fairness probingcited by 13
- 2021Individually Fair Gradient Boostingcited by 12
- 2023Robustness Implies Fairness in Causal Algorithmic Recoursecited by 12
50 most cited of 150 All 150 (JSON)
- 2026Multi-Channel Mitigation of Source-Trust Shortcuts in Fact-Checking RL Agents29 Sep 2026
- 2026Instability Floors: Separating Bias from Noise in Fairness Audits of Clinical LLM Agents with FairMedAgent2 Sep 2026
- 2026Do Counterfactually Fair Image Classifiers Satisfy Group Fairness? -- A Theoretical and Empirical Study7 Jul 2026
- 2026Side-by-side Comparison Amplifies Dialect Bias in Language Models23 May 2026
- 2026LPDS: Evaluating LLM Robustness Through Logic-Preserving Difficulty Scaling14 May 2026
- 2026Fair and Calibrated Toxicity Detection with Robust Training and Abstention13 May 2026
- 2026Causal Bias Detection in Generative Artificial Intelligence12 May 2026
- 2026Bi-directional Bias Attribution: Debiasing Large Language Models without Modifying Prompts4 Feb 2026
- 2026Fair Recourse for All: Ensuring Individual and Group Fairness in Counterfactual Explanations28 Jan 2026
- 2026White-Box Sensitivity Auditing with Steering Vectors23 Jan 2026
- 2025Counterfactually Fair Conformal Prediction9 Oct 2025
- 2025Your RAG is Unfair: Exposing Fairness Vulnerabilities in Retrieval-Augmented Generation via Backdoor Attacks26 Sep 2025
38 more
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?26 Sep 2025
- 2025Trace Is In Sentences: Unbiased Lightweight ChatGPT-Generated Text Detector23 Sep 2025
- 2025Controllable Pareto Trade-off between Fairness and Accuracy17 Sep 2025
- 2025Minority Collective Action for User-Side Fairness21 Aug 2025
- 2025Group Fairness Meets the Black Box: Enabling Fair Algorithms on Closed LLMs via Post-Processing15 Aug 2025
- 2025Investigating Intersectional Bias in Large Language Models using Confidence Disparities in Coreference Resolution9 Aug 2025
- 2025Towards Fairness Assessment of Dutch Hate Speech Detection14 Jun 2025
- 2025Statistical Hypothesis Testing for Auditing Robustness in Language Models9 Jun 2025
- 2025SAGE: A Generic Framework for LLM Safety Evaluation28 Apr 2025
- 2025Counterfactual Fairness Evaluation of Machine Learning Models on Educational Datasets15 Apr 2025
- 2025FairUDT: Fairness-aware Uplift Decision Trees3 Feb 2025
- 2024Collapsed Language Models Promote Fairness6 Oct 2024
- 2024An Effective, Robust and Fairness-aware Hate Speech Detection Framework25 Sep 2024
- 2024Debiasing Text Safety Classifiers through a Fairness-Aware Ensemble5 Sep 2024
- 2024Counterfactual Fairness by Combining Factual and Counterfactual Predictions3 Sep 2024
- 2024NoMatterXAI: Generating "No Matter What" Alterfactual Examples for Explaining Black-Box Text Classification Models20 Aug 2024
- 2024fairBERTs: Erasing Sensitive Information Through Semantic and Fairness-aware Perturbations11 Jul 2024
- 2024Fairness and Bias in Multimodal AI: A Survey27 Jun 2024
- 2024Automated Adversarial Discovery for Safety Classifiers24 Jun 2024
- 2024Watching the Watchers: A Comparative Fairness Audit of Cloud-based Content Moderation Services20 Jun 2024
- 2024Whose Preferences? Differences in Fairness Preferences and Their Impact on the Fairness of AI Utilizing Human Feedback9 Jun 2024
- 2024The Life Cycle of Large Language Models: A Review of Biases in Education3 Jun 2024
- 2024Uncovering Bias in Large Vision-Language Models at Scale with Counterfactuals30 May 2024
- 2024Beyond Agreement: Diagnosing the Rationale Alignment of Automated Essay Scoring Methods based on Linguistically-informed Counterfactuals29 May 2024
- 2024FairPair: A Robust Evaluation of Biases in Language Models through Paired Perturbations9 Apr 2024
- 2024A Rationale-centric Counterfactual Data Augmentation Method for Cross-Document Event Coreference Resolution2 Apr 2024
- 2024Addressing Both Statistical and Causal Gender Fairness in NLP Models30 Mar 2024
- 2024A Toolbox for Surfacing Health Equity Harms and Biases in Large Language Models18 Mar 2024
- 2024How does promoting the minority fraction affect generalization? A theoretical study of the one-hidden-layer neural network on group imbalance12 Mar 2024
- 2024Measuring Bias in a Ranked List using Term-based Representations9 Mar 2024
- 2024VTruST: Controllable value function based subset selection for Data-Centric Trustworthy AI8 Mar 2024
- 2024Securing Reliability: A Brief Overview on Enhancing In-Context Learning for Foundation Models27 Feb 2024
- 2024Explaining Text Classifiers with Counterfactual Representations1 Feb 2024
- 2024Fairness Certification for Natural Language Processing and Large Language Models2 Jan 2024
- 2023Multi-dimensional Fair Federated Learning9 Dec 2023
- 2023Tackling Bias in Pre-trained Language Models: Current Trends and Under-represented Societies3 Dec 2023
- 2023Counterfactually Fair Representation9 Nov 2023
- 2023Determination of toxic comments and unintended model bias minimization using Deep learning approach8 Nov 2023
50 newest of 150 All 150 (JSON)
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2023Fast Model Debias with Machine Unlearningcited by 70
- 2022Causality-based Neural Network Repaircited by 44
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimizationcited by 31
- 2025SAGE: A Generic Framework for LLM Safety Evaluationcited by 7
- 2023Can Large Language Models Change User Preference Adversarially?cited by 5
- 2024Debiasing Text Safety Classifiers through a Fairness-Aware Ensemblecited by 2
- 2025SAGE: A Generic Framework for LLM Safety Evaluation28 Apr 2025
- 2024Debiasing Text Safety Classifiers through a Fairness-Aware Ensemble5 Sep 2024
- 2023Fast Model Debias with Machine Unlearning19 Oct 2023
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimization27 May 2023
- 2023Can Large Language Models Change User Preference Adversarially?5 Jan 2023
- 2022Causality-based Neural Network Repair20 Apr 2022
- 2022Red Teaming Language Models with Language Models7 Feb 2022
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2023Bias and Fairness in Large Language Models: A Surveycited by 626
- 2021Carbon Emissions and Large Neural Network Trainingcited by 561
- 2021AI and the Everything in the Whole Wide World Benchmarkcited by 340
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 337
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 187
- 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 177
- 2021VALSE: A Task-Independent Benchmark for Vision and Language Models Centered on Linguistic Phenomenacited by 134
- 2021Re-imagining Algorithmic Fairness in India and Beyondcited by 102
- 2023A Survey on Fairness in Large Language Modelscited by 91
12 most cited of 137 All 137 (JSON)
- 2026Instability Floors: Separating Bias from Noise in Fairness Audits of Clinical LLM Agents with FairMedAgent2 Sep 2026
- 2026Do Counterfactually Fair Image Classifiers Satisfy Group Fairness? -- A Theoretical and Empirical Study7 Jul 2026
- 2026Side-by-side Comparison Amplifies Dialect Bias in Language Models23 May 2026
- 2026LPDS: Evaluating LLM Robustness Through Logic-Preserving Difficulty Scaling14 May 2026
- 2026Fair and Calibrated Toxicity Detection with Robust Training and Abstention13 May 2026
- 2026Causal Bias Detection in Generative Artificial Intelligence12 May 2026
- 2026Bi-directional Bias Attribution: Debiasing Large Language Models without Modifying Prompts4 Feb 2026
- 2026Fair Recourse for All: Ensuring Individual and Group Fairness in Counterfactual Explanations28 Jan 2026
- 2026White-Box Sensitivity Auditing with Steering Vectors23 Jan 2026
- 2025Counterfactually Fair Conformal Prediction9 Oct 2025
- 2025Bridging Fairness and Explainability: Can Input-Based Explanations Promote Fairness in Hate Speech Detection?26 Sep 2025
- 2025Trace Is In Sentences: Unbiased Lightweight ChatGPT-Generated Text Detector23 Sep 2025
12 newest of 137 All 137 (JSON)