Abstract
With the growing role of social media in shaping public opinions and beliefs across the world, there has been an increased attention to identify and counter the problem of hate speech on social media. Hate speech on online spaces has serious manifestations, including social polarization and hate crimes. While prior works have proposed automated techniques to detect hate speech online, these techniques primarily fail to look beyond the textual content. Moreover, few attempts have been made to focus on the aspects of interpretability of such models given the social and legal implications of incorrect predictions. In this work, we propose a deep neural multi-modal model that can: (a) detect hate speech by effectively capturing the semantics of the text along with socio-cultural context in which a particular hate expression is made, and (b) provide interpretable insights into decisions of our model. By performing a thorough evaluation of different modeling techniques, we demonstrate that our model is able to outperform the existing state-of-the-art hate speech classification approaches. Finally, we show the importance of social and cultural context features towards unearthing clusters associated with different categories of hate.
Introduction
Detecting hate speech is a critical challenge for social media platforms, yet automated systems often struggle with the inherent nuances of language. Traditional models rely almost exclusively on textual features, which frequently fail due to linguistic ambiguity and the use of "code words" or "dog whistles" (e.g., "skypes" or "zio") designed to bypass filters.
To address these limitations, this research introduces a multi-modal deep learning framework that looks beyond the text of a tweet. By incorporating socio-cultural context (user demographics) and social context (user connections within known extremist networks), the model significantly improves detection performance and provides interpretable insights into how hateful intent is masked.
Methodology
The proposed multi-modal neural network processes three distinct streams of information to capture a holistic view of a social media post:
- Semantic Context (Text): Utilizes a bidirectional GRU (Bi-GRU) with a self-attention mechanism. It employs character-enhanced word representations to robustly handle typos and intentional misspellings common in toxic content.
- Cultural Context (Demographics): Incorporates demographic embeddings derived from user profile information as a proxy for cultural background.
- Social Context (The "Hate Graph"): Leverages data from the Southern Poverty Law Center (SPLC) to identify extremist groups. A social graph ($G^h$) is constructed to represent connections to these groups, which is then compressed into a lower-dimensional representation.
The model employs late fusion with attention, allowing it to dynamically weigh the relevance of each modality (text, social, or cultural) for a specific prediction.
Datasets
The study utilizes a large-scale benchmark created by aggregating several public datasets (Founta et al., 2018; Davidson et al., 2017; Park & Fung, 2017; and Golbeck et al., 2017) with a custom collection of approximately 258,000 tweets. This custom dataset was augmented with distant supervision and noise injection to enhance robustness. Additionally, a "Hate Graph" was developed using 3,000 seed accounts from extremist groups and their 10,000 followers.
Key Insights and Interpretability
A primary advantage of this multi-modal approach is its ability to disambiguate content using social priors. If a user is embedded in a specific extremist network, the model learns to interpret their use of code words more accurately as hate speech.
The self-attention mechanism provides direct interpretability. By analyzing attention scores, researchers can observe which features drove a specific classification. For instance, when encountering a code word, the model often places higher weight on the social context feature, identifying intent that a text-only model would miss.
Furthermore, the model's internal representations automatically cluster tweets into specific hate categories (e.g., Anti-Islam vs. Anti-Black) with high purity. The multi-modal version achieved a purity score of 0.76, compared to just 0.52 for text-only models.
Results
The multi-modal approach consistently outperformed state-of-the-art text-only models:
- Detection Performance: The best multi-modal model (BiGRU+Char+Attn+FF) achieved an F1-score of 0.784 for the "Hate" class, surpassing the 0.744 of the best text-only model.
- Overall Accuracy: The overall F1-score reached 0.90, a significant improvement over traditional models like SVM or Logistic Regression (0.72-0.73 range).
Conclusion
While the model shows great promise, it relies on static snapshots of social graphs and external lists of extremist accounts, which require frequent updates. However, the focus on interpretability is a crucial step toward responsible real-world deployment, ensuring that automated hate speech detection is both effective and transparent.
Summary updated