Take its Essence, Discard its Dross! Debiasing for Toxic Language Detection via Counterfactual Causal Effect

Junyu Lu, Bo Xu, Xiaokun Zhang, Kaiyuan Liu, Dongyu Zhang +2 more
6/3/2024
cs.CLcs.AI

No official code found. Best implementation: DUT-lujunyu/Debias (6 stars, last commit 2024-05-29).

Abstract

Current methods of toxic language detection (TLD) typically rely on specific tokens to conduct decisions, which makes them suffer from lexical bias, leading to inferior performance and generalization. Lexical bias has both "useful" and "misleading" impacts on understanding toxicity. Unfortunately, instead of distinguishing between these impacts, current debiasing methods typically eliminate them indiscriminately, resulting in a degradation in the detection accuracy of the model. To this end, we propose a Counterfactual Causal Debiasing Framework (CCDF) to mitigate lexical bias in TLD. It preserves the "useful impact" of lexical bias and eliminates the "misleading impact". Specifically, we first represent the total effect of the original sentence and biased tokens on decisions from a causal view. We then conduct counterfactual inference to exclude the direct causal effect of lexical bias from the total effect. Empirical evaluations demonstrate that the debiased TLD model incorporating CCDF achieves state-of-the-art performance in both accuracy and fairness compared to competitive baselines applied on several vanilla models. The generalization capability of our model outperforms current debiased models for out-of-distribution data.

View on arXivView PDF

Code Implementations(1)

DUT-lujunyu/DebiasCommunity100%

The code of "Take its Essence, Discard its Dross! Debiasing for Toxic Language Detection via Counterfactual Causal Effect" (LREC-COLING2024).

62PythonOct 21, 20232 years ago

Similar Papers

Cite this paper

@article{lu2024take,
  title  = {Take its Essence, Discard its Dross! Debiasing for Toxic Language Detection via Counterfactual Causal Effect},
  author = {Junyu Lu and Bo Xu and Xiaokun Zhang and Kaiyuan Liu and Dongyu Zhang and Liang Yang and Hongfei Lin},
  year   = {2024},
  eprint = {2406.00983},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.00983v1}
}

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

Discussion