Abstract
This research addresses the scarcity of labeled hate speech data in non-English languages through cross-lingual transfer learning. By training models on English data and applying them to German, followed by "bootstrapping" additional labels from unlabeled German text using an ensemble approach, the study demonstrates that effective detection systems can be developed without initial target-language annotations.
Introduction: The Problem of Data Scarcity
Hate speech detection is a critical task for social media platforms, yet it suffers from a significant resource imbalance. While English-language datasets are abundant (over 800,000 labeled samples), other languages like German often have fewer than 20,000.
Beyond simple scarcity, two major hurdles exist:
- Annotation Discrepancies: Different datasets define "hate speech" differently, focusing on various targets like refugees or general toxicity.
- Class Imbalance: Hate speech is typically the minority class in real-world data, leading models to "cheat" by predicting the majority class.
Methodology: Bridging the Language Gap
The researchers employed a multi-stage approach to bridge the gap between English and German:
- Cross-Lingual Word Embeddings (CLWEs): Using MUSE to align English and German word vectors into a single shared space, allowing models to generalize across languages.
- Model Architectures: Testing three distinct neural architectures: a CNN, a BiLSTM, and multilingual BERT (mBERT).
- Zero-Shot Transfer: Initially training these models on a balanced English dataset and testing them directly on German data without any German-specific training.
- Ensemble Bootstrapping: Using an ensemble of models to "vote" on labels for unlabeled German text (majority voting). This newly labeled data was then used to fine-tune the models.
- Sampling Techniques: Utilizing undersampling and oversampling to combat the performance degradation caused by class imbalance.
Data Sources and Alignment
- Source (English): The Stormfront dataset, consisting of ~10,000 examples from a white-nationalist forum.
- Target (German): The GermEval 2018 dataset.
- Unlabeled German Data: DE-TRAIN and DE-NEW, the latter crawled from German-language threads on Stormfront to ensure stylistic similarity with the training data.
A significant challenge was manual label alignment. For instance, GermEval’s "Abuse" category had to be mapped to Stormfront’s "Hate" label to ensure cross-dataset compatibility.
Discussion: Key Insights
- The Power of the Ensemble: Majority voting from diverse architectures (CNN, LSTM, Transformer) proved more reliable for bootstrapping than any single model, allowing the system to generate its own training data effectively.
- Stylistic Compatibility: Data crawled from the same source (Stormfront) in different languages yielded better results, suggesting that the "vibe" or style of the text is as important as the language itself.
- Oversampling Effectiveness: Oversampling the minority class generally outperformed undersampling, particularly when the total dataset size was small.
- mBERT Robustness: mBERT was the most resilient model when dealing with small, imbalanced corpora, making it the preferred choice for low-resource scenarios.
Findings
- Zero-Shot Success: Even without seeing a single labeled German sentence, the CNN and mBERT achieved precision/recall scores above 50, proving cross-lingual transfer is a viable starting point.
- Bootstrapping Boost: Fine-tuning on ensemble-labeled German data improved the BiLSTM’s F1 score for the "Hate" class by over 3 points and mBERT’s by 1.27 points.
- Imbalance Impact: Performance dropped significantly when data ratios were skewed (e.g., 7:1), confirming that addressing imbalance is foundational to model utility.
Limitations and Future Work
The CNN model showed a tendency to overfit the majority class. Additionally, the manual effort required for label alignment remains a bottleneck. Future research will focus on automated methods for combining disparate labeling schemas and testing these approaches on more syntactically diverse language pairs.
Summary updated