Rationale-Guided Few-Shot Classification to Detect Abusive Language

Punyajoy Saha, Divyanshu Sheth, Kushal Kedia, Binny Mathew, Animesh Mukherjee
11/30/2022
cs.CLcs.CY

Official code: punyajoy/RGFS_ECAI (3 stars, Python, MIT, last commit 2023-07-26).

Abstract

Abusive language is a concerning problem in online social media. Past research on detecting abusive language covers different platforms, languages, demographies, etc.

Show full abstract

However, models trained using these datasets do not perform well in cross-domain evaluation settings. To overcome this, a common strategy is to use a few samples from the target domain to train models to get better performance in that domain (cross-domain few-shot training). However, this might cause the models to overfit the artefacts of those samples. A compelling solution could be to guide the models toward rationales, i.e., spans of text that justify the text's label. This method has been found to improve model performance in the in-domain setting across various NLP tasks. In this paper, we propose RGFS (Rationale-Guided Few-Shot Classification) for abusive language detection. We first build a multitask learning setup to jointly learn rationales, targets, and labels, and find a significant improvement of 6% macro F1 on the rationale detection task over training solely rationale classifiers. We introduce two rationale-integrated BERT-based architectures (the RGFS models) and evaluate our systems over five different abusive language datasets, finding that in the few-shot classification setting, RGFS-based models outperform baseline models by about 7% in macro F1 scores and perform competitively to models finetuned on other source domains. Furthermore, RGFS-based models outperform LIME/SHAP-based approaches in terms of plausibility and are close in performance in terms of faithfulness.

View on arXivView PDF

Code Implementations(1)

punyajoy/RGFS_ECAIOfficial100%
MIT

Can we use the explanation to improve hate speech detection ? Our paper accepted in ECAI 2023 explores this idea by introducing a new architecture for this purpose.

31Python, Jupyter NotebookJul 21, 20233 years agoMIT
classificationexplainabilityhatespeechrationales

Similar Papers

Cite this paper

@article{saha2022rationaleguided,
  title  = {Rationale-Guided Few-Shot Classification to Detect Abusive Language},
  author = {Punyajoy Saha and Divyanshu Sheth and Kushal Kedia and Binny Mathew and Animesh Mukherjee},
  year   = {2022},
  eprint = {2211.17046},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.17046}
}

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

Discussion