ToKen: Task Decomposition and Knowledge Infusion for Few-Shot Hate Speech Detection

Badr AlKhamissi, Faisal Ladhak, Srini Iyer, Ves Stoyanov, Zornitsa Kozareva, Xian Li, Pascale Fung, Lambert Mathias, Asli Celikyilmaz, Mona T. Diab

TL;DR

This paper introduces TOKEN, a novel approach for few-shot hate speech detection that breaks down the complex task into smaller, manageable subtasks and infuses commonsense knowledge. TOKEN significantly outperforms baseline models, demonstrating improved accuracy, robustness, and generalization, especially in low-data scenarios.

What Problem Does This Paper Address?

Automatically detecting hate speech (HS) is a significant challenge due to its reliance on nuanced social understanding, commonsense reasoning, and cultural context. Building large, high-quality annotated datasets for HS is also difficult, making it hard to train robust models, especially in low-resource settings (few-shot learning). Existing methods often struggle with generalization and can exhibit biases. This paper aims to improve few-shot HS detection by addressing these challenges through task decomposition and knowledge infusion.

Methods

The core of the TOKEN method involves two key strategies:

  • Task Decomposition: Instead of a single binary classification for hate speech, TOKEN breaks down the problem into a sequence of subtasks. These subtasks include identifying if a post is offensive, whether it targets a group or an individual, and identifying the specific targeted group(s). This hierarchical approach aims to make the reasoning process more explicit and manageable.
  • Knowledge Infusion: The model is pre-trained or fine-tuned on external commonsense reasoning datasets (ATOMIC2020) and stereotype datasets (StereoSet). This infusion of external knowledge is intended to equip the model with the necessary background understanding to better interpret social nuances and stereotypes inherent in hate speech.

The authors use a pre-trained BART-LARGE model as their base, adapting it for this conditional generation task.

Datasets

The paper utilizes several datasets:

  • SBIC (Social Bias Inference Corpus): Used for constructing few-shot training and validation sets for hate speech detection. While not explicitly labeled for HS, it was adapted by combining offensiveness and group detection annotations.
  • ATOMIC2020: A large commonsense knowledge graph used for knowledge infusion.
  • StereoSet: A dataset designed to measure stereotypical bias in language models, also used for knowledge infusion.
  • Out-of-Distribution (OOD) Datasets:
    • HateXplain: Includes posts with HS labels, target communities, and rationales.
  • HS18: Sentences from a white supremacist forum with HS labels.
  • Ethos: Comments from social media platforms with binary HS labels.

Key Insights and Ideas

  • Decomposition is Key: Breaking down the complex HS detection task into smaller, more interpretable subtasks significantly improves performance, especially in few-shot settings. This suggests that explicit reasoning steps are crucial.
  • Group Detection is a Bottleneck: The paper identifies the "Group Detection" subtask as a primary bottleneck for HS detection performance, particularly when training data is scarce. Improving this subtask is critical for overall model accuracy.
  • Commonsense Knowledge Matters: Infusing commonsense knowledge from datasets like ATOMIC2020 and stereotype knowledge from StereoSet provides substantial gains, demonstrating the importance of world knowledge for understanding subtle forms of hate speech.
  • Robustness and Generalization: TOKEN models are shown to be more robust to variations in hyperparameters and training data selection, and they generalize better to unseen, out-of-distribution datasets compared to baseline models.
  • Order of Subtasks Can Matter: The sequence in which subtasks are presented to the model can influence performance, especially with limited training data.

Key Results

  • The TOKEN model achieved an absolute gain of 17.83% in the 16-shot case compared to the baseline model.
  • In the 16-shot setting, knowledge infusion with ATOMIC2020 provided a noticeable performance increase.
  • When combined with task decomposition, knowledge infusion consistently improved performance, leading to the best overall results.
  • TOKEN models demonstrated significantly better zero-shot generalizability on OOD datasets (HateXplain, Ethos, HS18).
  • TOKEN models exhibited significantly lower standard deviation across hyperparameter settings, indicating greater robustness.
  • The paper also found that model scale matters; smaller models did not benefit as much from the TOKEN approach.

Limitations and Future Work

  • Baseline Comparison: The authors acknowledge that their comparison was primarily against standard baseline models. Future work could compare against other multi-task learning models with similar scales.
  • Dataset Specificity: The SBIC dataset, while adapted, is not a standard HS benchmark. Future work could compare against models trained on established HS datasets.
  • Language and Cultural Bias: The datasets used are primarily English and reflect a Western perspective. Future work should explore performance in other languages and cultural contexts.
  • Minority Group Silencing: The practice of using majority vote for HS labels might silence minority opinions. Future work could explore modeling dissenting opinions.
  • Implications Subtask: While adding an "implications" subtask (explaining implied stereotypes) showed promise, it didn't consistently outperform TOKEN without it, possibly due to noisy data or the need for larger models to effectively utilize this information. Future work plans to investigate the role of task decomposition, knowledge infusion, and implication explanation in larger language models and low-resource languages.

Summary updated

BibTeX
@inproceedings{alkhamissi2022token,
  author = {Badr AlKhamissi and Faisal Ladhak and Srini Iyer and Ves Stoyanov and Zornitsa Kozareva and Xian Li and Pascale Fung and Lambert Mathias and Asli Celikyilmaz and Mona T. Diab},
  title = {{ToKen: Task Decomposition and Knowledge Infusion for Few-Shot Hate Speech Detection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=Ny3UP3qxT3},
}
Figure