Demographics Should Not Be the Reason of Toxicity: Mitigating Discrimination in Text Classifications with Instance Weighting

Guanhua Zhang, Bing Bai, Junqi Zhang, Kun Bai, Conghui Zhu +1 more
4/29/2020
cs.CLcs.LGstat.ML

Official code: ghzhang233/Non-Discrimination-Learning-for-Text-Classification (7 stars, Python, last commit 2022-12-08).

Abstract

With the recent proliferation of the use of text classifications, researchers have found that there are certain unintended biases in text classification datasets. For example, texts containing some demographic identity-terms (e.g., "gay", "black") are more likely to be abusive in existing abusive language detection datasets.

Show full abstract

As a result, models trained with these datasets may consider sentences like "She makes me happy to be gay" as abusive simply because of the word "gay." In this paper, we formalize the unintended biases in text classification datasets as a kind of selection bias from the non-discrimination distribution to the discrimination distribution. Based on this formalization, we further propose a model-agnostic debiasing training framework by recovering the non-discrimination distribution using instance weighting, which does not require any extra resources or annotations apart from a pre-defined set of demographic identity-terms. Experiments demonstrate that our method can effectively alleviate the impacts of the unintended biases without significantly hurting models' generalization ability.

View on arXivView PDF

Code Implementations(1)

This is the code in <Demographics Should Not Be the Reason of Toxicity: Mitigating Discrimination in Text Classifications with Instance Weighting> which has been accepted by ACL 2020

73PythonApr 24, 20203 years ago

Similar Papers

Cite this paper

@article{zhang2020demographics,
  title  = {Demographics Should Not Be the Reason of Toxicity: Mitigating Discrimination in Text Classifications with Instance Weighting},
  author = {Guanhua Zhang and Bing Bai and Junqi Zhang and Kun Bai and Conghui Zhu and Tiejun Zhao},
  year   = {2020},
  eprint = {2004.14088},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.14088}
}

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/2004.14088.svg)](https://codeofpaper.com/paper/2004.14088)

Discussion