DeepHate: Hate Speech Detection via Multi-Faceted Text Representations

Rui Cao, Roy Ka-Wei Lee, Tuan-Anh Hoang

TL;DR

DeepHate is a novel deep learning framework that improves automated hate speech detection by moving beyond simple word analysis. By fusing three distinct "facets" of text—semantics, sentiment, and topical context—into a unified model, it outperforms current state-of-the-art methods while providing "saliency maps" that explain exactly which words triggered a hate speech flag.

What Problem Does This Paper Address?

As online hate speech proliferates, manual moderation has become impossible to scale. While researchers have turned to machine learning, most existing models suffer from two major flaws:

  1. Feature Myopia: They typically rely on a single type of textual feature (like word frequency or basic word embeddings), ignoring the rich context provided by the speaker's sentiment or the broader topic of the conversation.
  2. The Black Box Problem: Deep learning models often lack explainability. A human moderator needs to know why a post was flagged as "racist" or "sexist" to make an informed decision, but most models offer no such justification.

Methods

The core innovation of DeepHate is its Multi-Faceted Text Representation. The architecture processes a post through three parallel streams:

  • Semantic Representation: Instead of picking one word embedding, the authors use three (GloVe, Word2Vec, and Paragram). They employ a Semantic Fusion Layer with an attention mechanism to weigh these different embeddings, capturing a more robust meaning of the words.
  • Sentiment Representation: Since hate speech is rarely emotionally neutral, the authors incorporate sentiment. Because most hate speech datasets lack sentiment labels, they use a tool called VADER to generate "silver labels," which are then used to train sentiment-specific word embeddings.
  • Topic Representation: They use Latent Dirichlet Allocation (LDA) to extract the underlying topics of a post, providing the model with the "theme" of the conversation.

These facets are fed into a C-LSTM-Att encoder (a hybrid of Convolutional Neural Networks for local patterns and Long Short-Term Memory networks for long-range dependencies, topped with an attention layer). Finally, a Gate Attention Network fuses these representations, allowing the model to dynamically decide which facet is most important for a given post.

Datasets

The authors evaluated DeepHate on three widely used public Twitter datasets:

  • WZ-LS: Focused on racism and sexism.
  • DT (Davidson et al.): Distinguishes between "hate speech" and "offensive language."
  • FOUNTA: A large-scale dataset covering normal, spam, hateful, and abusive content.
  • COMBINED: A new, large-scale benchmark created by the authors by merging the three above to simulate a diverse, real-world moderation environment.

Key Insights and Ideas

  • Context is King: The paper demonstrates that "hate" isn't just about specific keywords; it's about how those words interact with sentiment and topic. For example, a word might be offensive in a general topic but categorized as hate speech when paired with a specific negative sentiment and a sensitive topic.
  • The "Silver Label" Strategy: One of the cleverest moves was using VADER to bootstrap sentiment labels. This allows the model to benefit from sentiment analysis even when the training data wasn't originally labeled for it.
  • Explainability is a Feature, Not an Afterthought: By using saliency scores, the authors show that DeepHate correctly identifies slurs and derogatory phrases as the primary drivers for its classifications. This transforms the model from a "black box" into a collaborative tool for human moderators.

Key Results

DeepHate consistently outperformed all baselines (including CNN, LSTM, and Hybrid models) across all datasets:

  • Superior Accuracy: On the large COMBINED dataset, DeepHate achieved a Micro-F1 score of 92.43%, surpassing the best baseline (CNN-GRU) at 91.31%.
  • Ablation Success: The authors performed "ablation studies" (removing parts of the model to see what happens). They found that the model performed best when all three facets—semantic, sentiment, and topic—were active, proving that each provides unique, non-redundant information.

Limitations and Future Work

The authors acknowledge a few key hurdles:

  • Sentiment Dependency: The model's performance is somewhat tethered to the accuracy of the initial sentiment analysis. If a tool like VADER misses sarcasm or nuanced irony, DeepHate might misclassify the post.
  • Text-Only Focus: Currently, DeepHate ignores "meta-information" like user profiles, posting history, or social network structures, which are often strong indicators of hateful behavior.
  • Language Constraints: The current study is limited to English-language tweets. Expanding this multi-faceted approach to other languages and platforms (like Reddit or Facebook) remains a goal for future research.

Summary updated

BibTeX
@inproceedings{cao2020deephate,
  author = {Rui Cao and Roy Ka-Wei Lee and Tuan-Anh Hoang},
  title = {{DeepHate: Hate Speech Detection via Multi-Faceted Text Representations}},
  booktitle = {WebSci},
  year = {2020},
  doi = {10.1145/3394231.3397890},
}
Figure