Flexible text generation for counterfactual fairness probing
Zee Fryer, Vera Axelrod, Ben Packer, Alex Beutel, Jilin Chen, Kellie, Webster

TL;DR
This paper introduces a flexible, LLM-based method for generating complex counterfactuals in text fairness testing, surpassing traditional wordlist/template approaches by considering grammar, context, and subtle sensitive attributes.
Contribution
The paper presents a novel LLM-based approach for generating nuanced counterfactuals, improving fairness evaluation in text classifiers over existing simple methods.
Findings
LLM-based counterfactuals are more complex and context-aware.
The method outperforms traditional wordlist/template approaches.
Enhanced fairness probing for toxicity classifiers.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEthics and Social Impacts of AI · Law, Economics, and Judicial Systems · Regulation and Compliance Studies
MethodsCounterfactuals Explanations
