Model-Agnostic Meta-Learning for Multilingual Hate Speech Detection

Md. Rabiul Awal, Roy Ka-Wei Lee, Eshaan Tanwar, Tanmay Garg, Tanmoy Chakraborty

TL;DR

HateMAML is a new meta-learning framework designed to detect hate speech in low-resource languages where training data is scarce. By "learning to learn" across different languages and incorporating a novel domain-adaptation loss, the model achieves a 3% performance boost over state-of-the-art methods in cross-lingual and cross-domain settings.

What Problem Does This Paper Address?

While large language models (LMs) like BERT have made hate speech detection highly effective in English, the same cannot be said for the rest of the world. Most global content is generated in languages with very few labeled datasets (low-resource languages).

Standard approaches usually involve fine-tuning a multilingual model on a high-resource language (like English) and transferring that knowledge to a target language. However, this often fails because of two types of "shifts":

  1. Language Shift: Differences in grammar and vocabulary between the source and target.
  2. Domain Shift: Differences in how hate speech manifests across platforms (e.g., Twitter vs. YouTube) or topics (e.g., racism vs. political vitriol).

Standard fine-tuning tends to overfit the source data, making it brittle when faced with the nuances of a new language or a different social media environment.

Methods

The authors propose HateMAML, based on Model-Agnostic Meta-Learning (MAML). Instead of training a model to be good at one specific task, meta-learning trains the model to be a "fast learner" that can adapt to new tasks with very few examples.

Key technical innovations include:

  • Episodic Training: The model is trained on "episodes" that simulate the challenge of learning a new language. It uses an inner loop to adapt to a specific task and an outer loop to update the global parameters based on how well that adaptation worked.
  • Virtual Domain Query Set: To tackle domain shift, the authors introduce a third set of data during training. In addition to the standard support (training) and query (testing) sets, they use a "virtual domain" set from an auxiliary language. This forces the meta-learner to generalize across different data distributions.
  • Self-Refining Loop: For scenarios where zero labeled data exists for the target language, HateMAML uses a self-supervision strategy. It generates "silver labels" (high-confidence predictions) from unlabeled target data and iteratively refines the model through multiple rounds of meta-learning.

Datasets

The study evaluates HateMAML across five diverse, publicly available datasets covering eight low-resource languages:

  • Founta-EN: A large English Twitter dataset used as the primary source.
  • HatEval19: English and Spanish (focusing on immigrants and women).
  • SemEval20: Arabic, Danish, Greek, and Turkish (collected from Twitter, Facebook, and Reddit).
  • HASOC20: English, Hindi, and German.
  • HaSpeeDe: Italian (Twitter and news headlines).

Key Insights and Ideas

  • Meta-Learning as a Proxy for Generalization: The core "aha" moment is that meta-learning acts as a better initialization than standard pre-training. It finds a "central" point in the parameter space from which the model can quickly pivot to any specific language family.
  • Auxiliary Languages Matter: The researchers found that using "auxiliary" languages (languages other than the source or target) during training significantly improves performance. For example, training on Turkish can actually help the model perform better on Arabic, even if they aren't in the same language family.
  • Domain vs. Language: The paper highlights that domain shift (Twitter vs. News) is often as difficult to overcome as the language barrier itself. The inclusion of the domain-adaptive loss was critical for the model's 3% edge over previous meta-learning approaches like X-MAML.

Key Results

  • Superior Performance: HateMAML consistently outperformed state-of-the-art baselines (mBERT, XLM-R, and X-MAML) by more than 3% in F1-score in cross-domain multilingual settings.
  • Zero-Shot Success: In the most difficult "zero-shot" scenarios (no target labels), the self-refining variant achieved an average 11% improvement over standard mBERT and 7% over the previous best meta-learning model.
  • Few-Shot Efficiency: With as few as 1,024 samples in a target language, HateMAML reached performance levels that standard fine-tuning couldn't match even with more data.

Limitations and Future Work

While HateMAML is a significant step forward, the authors note a few areas for growth:

  • Binary Classification: The current study focuses on binary detection (Hate vs. Not Hate). Real-world moderation often requires multi-class labels (e.g., distinguishing between "abusive," "hateful," and "spam").
  • Code-Mixing: Many users in multilingual regions mix languages (e.g., "Hinglish"). The current model hasn't been specifically tested on these complex, blended linguistic structures.
  • Task Heterogeneity: Future work could explore if this meta-learning approach works for related tasks like target identification (who is being attacked?) or aggression level detection.

Summary updated

BibTeX
@article{awal2024model,
  author = {Md. Rabiul Awal and Roy Ka-Wei Lee and Eshaan Tanwar and Tanmay Garg and Tanmoy Chakraborty},
  title = {{Model-Agnostic Meta-Learning for Multilingual Hate Speech Detection}},
  journal = {IEEE Trans. Comput. Soc. Syst.},
  year = {2024},
  url = {https://openreview.net/forum?id=EkEESY0-rcM},
}
Figure