UTFPR at SemEval-2019 Task 5: Hate Speech Identification with Recurrent Neural Networks

Gustavo Henrique Paetzold, Shervin Malmasi, Marcos ZampieriarXiv 2019

TL;DR

Researchers from UTFPR, Harvard, and the University of Wolverhampton developed a minimalistic, character-based Recurrent Neural Network (RNN) to identify hate speech in English and Spanish tweets. Their approach, which builds word meanings from individual characters, proved exceptionally robust against the "noisy" language of social media and ranked 7th out of 62 systems in the SemEval-2019 English hate speech detection challenge.

What Problem Does This Paper Address?

Social media is rife with abusive language, but automatically catching it is surprisingly difficult. The authors highlight a specific nuance: the "profanity vs. hate speech" problem. Many hate speech detection systems struggle to distinguish between general profanity (swearing) and actual hate speech (attacks on groups based on identity).

Furthermore, social media text is "noisy"—full of typos, intentional misspellings to bypass filters, and slang. Traditional models that treat words as atomic units (tokens) often fail when they encounter a word they haven't seen during training (Out-of-Vocabulary or OOV words). This paper explores whether a compositional approach—building word representations from characters—can solve these issues.

Methods

The authors proposed the UTFPR models, which use a hierarchical, bidirectional Gated Recurrent Unit (GRU) architecture.

  1. Character Embedding: The model starts at the ground floor, converting individual characters into 25-dimensional vectors.
  2. Character-to-Word RNN: A bidirectional GRU processes these character sequences to "compose" a numerical representation for each word.
  3. Word-to-Sentence RNN: A second bidirectional GRU layer takes these composed word representations and builds a final representation for the entire tweet.
  4. Classification: A final dense layer with a softmax activation produces the binary label: "Hateful" or "Not Hateful."
Figure 1: Architecture of the UTFPR models.

The team tested two variants:

  • UTFPR/O: Trained exclusively on the competition's provided dataset.
  • UTFPR/W: Used transfer learning by pre-training the character-to-word layers on a large emotion analysis dataset (WASSA 2018) before fine-tuning on the hate speech task.

Datasets

The primary benchmark was the SemEval-2019 Task 5 (HatEval) dataset, which focuses on hate speech against immigrants and women on Twitter.

  • English: ~13,100 instances total (Training, Dev, Trial, and Test).
  • Spanish: ~6,700 instances total.
  • Pre-training (for UTFPR/W): The WASSA 2018 Emotion Analysis dataset, containing over 153,000 tweets.

Key Insights and Ideas

  • Compositionality equals Robustness: By looking at characters rather than just whole words, the model can "guess" the meaning of a misspelled word (e.g., "h4te") based on its similarity to the original word.
  • The Transfer Learning Trap: Interestingly, while pre-training on emotion data (UTFPR/W) helped significantly during trial experiments, it actually slightly decreased performance on the final test set compared to the model trained only on task data (UTFPR/O). The authors suspect this was due to the development set being more representative of the trial set than the final test set.
  • Minimalism Wins: Despite using a relatively simple architecture compared to some massive ensemble models, the system achieved highly competitive results, proving that clever architectural choices (like character-level composition) can outweigh sheer model size.

Key Results

In the official SemEval-2019 rankings for Sub-task A (Binary Hate Speech Identification):

  • English Track: The system ranked 7th out of 62 valid submissions.
  • Spanish Track: The system ranked 31st out of 35.

The most striking result came from their robustness assessment. They artificially added noise (deleting or duplicating characters) to the test set. As shown in the figures below, the "Regular" compositional models (green and orange lines) maintained their F-scores even when 100% of the words were noisy, whereas "Frozen" models (which can't handle OOV words) saw their performance plummet.

Figure 2: F-scores of our robustness experiments for English. The horizontal axis represents the proportion of noisy words in the input sentence, and the vertical axis the F-scores.

Limitations and Future Work

The authors noted that their transfer learning strategy didn't yield the expected gains on the final test set, suggesting that the relationship between emotion analysis and hate speech detection might be more complex than initially thought.

For future work, they intend to explore more reliable ways to reuse pre-trained compositional models and potentially expand their focus to Sub-task B, which involves identifying the target of the hate speech (individual vs. group) and the aggressiveness of the tweet.

Summary updated

BibTeX
@misc{paetzold2019utfpr,
  author = {Gustavo Henrique Paetzold and Shervin Malmasi and Marcos Zampieri},
  title = {{UTFPR at SemEval-2019 Task 5: Hate Speech Identification with Recurrent Neural Networks}},
  year = {2019},
  eprint = {1904.07839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.07839},
}
Figure