Human-Guided Fair Classification for Natural Language Processing

Florian E. Dorner, Momchil Peychev, Nikola Konstantinov, Naman Goel, Elliott Ash +1 more
12/20/2022
cs.CLcs.AIcs.CY

Official code: eth-sri/fairness-feedback-nlp (5 stars, Python, CC0-1.0, last commit 2025-03-18).

Abstract

Text classifiers have promising applications in high-stake tasks such as resume screening and content moderation. These classifiers must be fair and avoid discriminatory decisions by being invariant to perturbations of sensitive attributes such as gender or ethnicity.

Show full abstract

However, there is a gap between human intuition about these perturbations and the formal similarity specifications capturing them. While existing research has started to address this gap, current methods are based on hardcoded word replacements, resulting in specifications with limited expressivity or ones that fail to fully align with human intuition (e.g., in cases of asymmetric counterfactuals). This work proposes novel methods for bridging this gap by discovering expressive and intuitive individual fairness specifications. We show how to leverage unsupervised style transfer and GPT-3's zero-shot capabilities to automatically generate expressive candidate pairs of semantically similar sentences that differ along sensitive attributes. We then validate the generated pairs via an extensive crowdsourcing study, which confirms that a lot of these pairs align with human intuition about fairness in the context of toxicity classification. Finally, we show how limited amounts of human feedback can be leveraged to learn a similarity specification that can be used to train downstream fairness-aware models.

View on arXivView PDF

Code Implementations(1)

CC0-1.0

Human-Guided Fair Classification for NLP (ICLR 2023, Spotlight)

50Python, ShellFeb 17, 20231 years agoCC0-1.0

Similar Papers

Cite this paper

@article{dorner2022humanguided,
  title  = {Human-Guided Fair Classification for Natural Language Processing},
  author = {Florian E. Dorner and Momchil Peychev and Nikola Konstantinov and Naman Goel and Elliott Ash and Martin Vechev},
  year   = {2022},
  eprint = {2212.10154},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10154}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.10154.svg)](https://codeofpaper.com/paper/2212.10154)

Discussion