TL;DR
This paper introduces a Hybrid Emoji-based Masked Language Model (HE-MLM) designed to improve zero-shot abusive language detection across languages. By prioritizing the masking and prediction of emojis during pre-training, the model leverages these "universal symbols" to create more robust cross-lingual representations for the messy, irregular text found on social media.
What Problem Does This Paper Address?
Detecting abusive language (hate speech, harassment) is a critical task for social media platforms, but it is notoriously difficult to scale across languages. Most high-performing models are "monolingual," meaning they require massive amounts of labeled data for every specific language they target.
The authors aim for zero-shot cross-lingual detection: training a model on a high-resource language (English) and deploying it on others (German, Italian, Spanish) without any additional labeled training data in those target languages. The challenge is that social media text is short, ungrammatical, and full of slang, making standard cross-lingual models (like XLM) struggle to find common ground between languages.
Methods
The researchers build upon the XLM (Cross-lingual Language Model) architecture but modify the training objective to better suit social media.
- Standard MLM: In a typical Masked Language Model (like BERT), 15% of text tokens are hidden, and the model tries to guess them.
- HE-MLM (The Innovation): The authors propose a "Hybrid Emoji-based" approach.
- If a tweet contains emojis, the model specifically targets those emojis for masking and prediction.
- If no emojis are present, it reverts to standard text masking.
- The Emoji Tag Trick: They also tested a variant using special
<emoji>and</emoji>tags to wrap emojis, helping the model explicitly distinguish between semantic text and emotional icons.
The logic is that emojis (like ❤️ or 😂) carry similar emotional weight and meaning across Indo-European languages, acting as a "bridge" that helps the model align different languages in the same vector space.
Datasets
- Pre-training Data: A custom corpus of 20 million tweets (5 million each for English, German, Italian, and Spanish) collected between March and August 2019.
- Fine-tuning (English): The Waseem and Hovy (2016) dataset.
- Evaluation (Target Languages):
- German: GermEval 2018 (Wiegand et al.).
- Italian: Evalita 2018 (Bosco et al.).
- Spanish: HatEval 2019 (Basile et al.).
Key Insights and Ideas
- Emojis as Anchors: Emojis are surprisingly frequent in abusive datasets (appearing in 7% to 18% of tweets). Because the most common emojis are shared across all four languages studied, they serve as "language-independent" features that the model can latch onto.
- Domain Matters: The authors found that pre-training on a smaller set of in-domain data (tweets) was often more effective for this task than using massive models pre-trained on Wikipedia, which lacks the "slangy" nature of social media.
- The "Aha" Moment: By forcing the model to predict emojis, you are essentially forcing it to learn the sentiment and intent of the surrounding text, which is exactly what you need for abuse detection.
Key Results
The HE-MLM approach generally outperformed standard Masked Language Models in zero-shot scenarios:
- German: The HE-MLM with special emoji tokens achieved the best performance on German data compared to vanilla MLM.
- Italian: The HE-MLM (without special tokens) provided the highest macro F1 score.
- Spanish: The HE-MLM with tokens showed a clear advantage in detecting the "Hate Speech" class specifically.
- Consistency: While the results are still below state-of-the-art monolingual models (which have the advantage of seeing labeled data in the target language), the emoji-based pre-training consistently made the "zero-shot" jump more successful.
Limitations and Future Work
- Performance Gap: There is still a significant gap between zero-shot models and those trained on native-language data.
- Dataset Bias: The authors noted that the German dataset (GermEval) was particularly challenging because it was built using specific sampling methods that limited lexical overlap, making it a "hard mode" for cross-lingual transfer.
- Language Diversity: This study focused on four Indo-European languages with similar alphabets. Future work is needed to see if the "emoji bridge" holds up for typologically different languages (e.g., English to Arabic or Chinese).
- Scaling: The pre-training corpus (5M tweets per language) is relatively small by modern standards; the authors plan to scale this up to see if the benefits of HE-MLM increase with more data.
Summary updated