Contextualizing Hate Speech Classifiers with Post-hoc Explanation

Brendan Kennedy, Xisen Jin, Aida Mostafazadeh Davani, Morteza Dehghani, Xiang Ren
5/5/2020
170 citations
cs.CLcs.IRcs.LG

Official code: BrendanKennedy/contextualizing-hate-speech-models-with-explanations (35 stars, Python, MIT, last commit 2021-12-13).

Abstract

Hate speech classifiers trained on imbalanced datasets struggle to determine if group identifiers like "gay" or "black" are used in offensive or prejudiced ways. Such biases manifest in false positives when these identifiers are present, due to models' inability to learn the contexts which constitute a hateful usage of identifiers.

Show full abstract

We extract SOC post-hoc explanations from fine-tuned BERT classifiers to efficiently detect bias towards identity terms. Then, we propose a novel regularization technique based on these explanations that encourages models to learn from the context of group identifiers in addition to the identifiers themselves. Our approach improved over baselines in limiting false positives on out-of-domain data while maintaining or improving in-domain performance. Project page: https://inklab.usc.edu/contextualize-hate-speech/.

View on arXivView PDF

Code Implementations(1)

MIT

Official code release for ACL 2020 paper "Contextualizing Hate Speech Classifiers with Post hoc Explanation"

3510Python, ShellMay 1, 20204 years agoMIT

Similar Papers

Cite this paper

@article{kennedy2020contextualizing,
  title  = {Contextualizing Hate Speech Classifiers with Post-hoc Explanation},
  author = {Brendan Kennedy and Xisen Jin and Aida Mostafazadeh Davani and Morteza Dehghani and Xiang Ren},
  year   = {2020},
  eprint = {2005.02439},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.02439}
}

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

Discussion