Introduction
The detection of online hate speech has traditionally relied on keyword-based approaches, often focusing on explicit slurs and offensive lexicons. However, as online discourse evolves, hateful content has become increasingly nuanced, often utilizing neutral language or relying on specific socio-political contexts to convey malice. This research, presented at KDD '23, addresses these limitations by introducing a new, neutrally-seeded dataset and a multi-modal architecture that incorporates user history and social network data to improve detection accuracy.
The GOTHate Dataset: Beyond Lexicon Seeding
A primary contribution of this research is the development of the GOTHate (Geo-pOlitical Topical Hate) dataset. Unlike previous benchmarks like Davidson or OLID, which were "lexicon-seeded" (built by searching for specific slurs), GOTHate is "neutrally seeded." The authors collected 51,367 tweets from over 25,000 unique users based on seven major socio-political topics, such as the Delhi Riots, Brexit, and Demonetization.
This approach captures a more realistic distribution of hate speech, where the statistical difference (Jensen-Shannon divergence) between "Hate" and "Neutral" classes is much lower than in older datasets. The dataset includes English, Hindi, and code-mixed "Hinglish" content, categorized into four labels: Hate, Offensive, Provocative, and Neutral. Notably, the "Provocative" label identifies content that, while not overtly offensive, aims to incite negative reactions or call for action against specific groups.
HEN-mBERT: A Context-Aware Architecture
To address the challenges of the GOTHate dataset, the authors propose HEN-mBERT (History-Exemplar-Network Infused mBERT). This model moves beyond treating tweets as isolated text fragments, instead leveraging "endogenous signals" through a modular mixture-of-experts design:
- Base Language Module: Utilizes multilingual BERT (mBERT) for initial textual representation.
- Exemplar Module: Employs dense retrieval (SBERT) to identify similar posts within the training set, helping the model recognize recurring stylistic or thematic patterns.
- Timeline Module: Analyzes the user’s historical activity (25 tweets preceding and following the target post) using LSTMs to capture the user's "hate propensity."
- Graph Module: Maps the user’s "ego network"—including followers, followees, and retweeters—using node2vec and Graph Convolutional Networks (GCNs) to understand social influence and interaction patterns.
These signals are integrated via an attention-based Reasoning Module, which produces a context-rich embedding for final classification. This allows the model to bridge the gap between static text classification and the meta-data-rich environment used by human content moderators.
Key Results and Insights
The integration of social and historical context yielded significant performance gains. HEN-mBERT achieved a macro-F1 score of 0.4946, a 2.5% improvement over the text-only mBERT baseline. More importantly, the model showed a 5% F1-score improvement specifically in the "Hate" class, which is notoriously the hardest to identify in neutrally-seeded data.
Ablation studies revealed the specific strengths of each module:
- The Exemplar module provided the most significant boost for the "Provocative" class.
- The Graph module was most effective for identifying "Offensive" users.
- The Timeline module helped resolve linguistic ambiguity by providing historical context.
Adversarial validation confirmed that GOTHate is significantly different in its feature space compared to other major benchmarks (like HASOC19 or RETINA), establishing it as a novel and more challenging "stress test" for AI models.
Conclusion and Future Directions
This work highlights the necessity of moving toward context-aware models in content moderation. By shifting from slur-based detection to a holistic analysis of user behavior and social networks, HEN-mBERT provides a more robust framework for identifying veiled hate speech.
While the model relies on endogenous signals that may not always be available due to privacy settings, it represents a significant step toward semi-automated moderation tools. Future research directions include moving toward neuro-symbolic approaches that integrate commonsense reasoning to explain why a post is considered hateful, rather than just providing a label. The authors are currently working with Wipro AI to deploy these findings into practical moderation systems.
Summary updated