HARALD: Augmenting Hate Speech Data Sets with Real Data

Ilan Tal, Dan VilenchikEMNLP 2022

Automated hate speech detection remains a critical yet challenging task in natural language processing (NLP). Researchers consistently face hurdles related to data scarcity, high annotation costs, and the "domain shift" problem, where models trained on one platform fail to generalize to others. This paper introduces HARALD (Hate Augmentation with ReAL Data), a novel approach presented at EMNLP 2022 that leverages a unique source of "invited" abuse to improve classification performance.

The Problem of Data Scarcity and Domain Shift

Hateful comments are often "needles in a haystack" within general social media feeds, making random sampling an inefficient way to build training sets. Furthermore, manual labeling is expensive and often suffers from low inter-annotator agreement due to the subjective nature of offense. While data augmentation is common in computer vision, it remains under-explored in NLP, where previous attempts have often relied on synthetic data generation (like GANs) that can produce ungrammatical or repetitive text.

Methodology: Harvesting Invited Abuse

The core innovation of HARALD is the use of the subreddit r/RoastMe as a data source. In this community, users explicitly post photos of themselves and invite others to insult or "roast" them. This provides a high-density source of offensive language that utilizes the same linguistic structures, slurs, and tropes as organic hate speech, but without the ethical and logistical difficulties of harvesting non-consensual abuse.

Examples of "invited abuse" from the r/RoastMe subreddit used for data augmentation.

The HARALD pipeline consists of several steps:

  1. Harvesting: 3,700 comments were collected and cleaned of links and emojis.
  2. Scoring: A pre-trained HateBERT model assigned a "hate score" to each comment to ensure linguistic toxicity.
  3. Selection: The top 1,000 highest-scoring comments formed the positive (hate) class for the RoastMe (RM) dataset.
  4. Balancing: 1,000 "least hateful" comments from general Reddit were used as the negative class.
  5. Training: Models (BERT-base and HateBERT) were fine-tuned on six established benchmarks, both with and without the RM augmentation.

Experimental Results

The study utilized a diverse array of benchmarks, including Kaggle (Wikipedia toxicity), Founta (Twitter), Razavi (flame messages), Waseem (racism/sexism), Kumar (aggressive Facebook posts), and Offensive Reddit.

The inclusion of RoastMe data consistently improved model performance across the board. The authors observed F1-score boosts ranging from 2.7% to 9.5%. Notably, the augmentation excelled in cross-domain generalization—training on one platform and testing on another—where average F1-scores improved by 6.6% for BERT and 2.9% for HateBERT.

Performance improvements in F1-scores across different settings when using HARALD augmentation.

One of the most dramatic results occurred when training on the Kumar dataset and testing on Kaggle; the addition of RM data resulted in a 25% improvement. The authors hypothesize that RM data acts as a bridge between "direct" offensive styles (like Kaggle) and "indirect/fuzzy" styles (like Kumar), providing a rich variety of stylistic and semantic forms that synthetic data cannot replicate.

Discussion and Future Work

HARALD demonstrates that language does not need to be fueled by genuine malice to be useful for training hate speech detectors. By using real-world data written by a vast number of authors, the model gains exposure to diverse human vitriol.

While the study was limited by compute constraints and a focus on a single subreddit, it opens the door for exploring other "abusive" but consensual platforms like r/toastme or r/Rateme. Future research will also need to investigate whether such diverse data helps reduce unintended biases in automated moderation systems.

Summary updated

BibTeX
@inproceedings{tal2022harald,
  author = {Ilan Tal and Dan Vilenchik},
  title = {{HARALD: Augmenting Hate Speech Data Sets with Real Data}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.165},
}
Figure