TL;DR
This paper introduces MULTILINGUAL HATECHECK (MHC), a novel suite of functional tests designed to evaluate multilingual hate speech detection models across ten languages. By extending the English HATECHECK framework, MHC provides a more comprehensive and nuanced understanding of model performance beyond traditional held-out test sets, revealing critical weaknesses in multilingual models.
What Problem Does This Paper Address?
Hate speech detection models are crucial for online content moderation, but their evaluation has largely relied on held-out test sets. This approach can be misleading due to systematic gaps and biases in these datasets, leading models to learn superficial rules rather than genuine understanding. While recent research has introduced functional tests for English hate speech detection, a significant gap exists for other languages, leaving billions of non-English speakers with less protection against online hate. This paper addresses this by creating a multilingual functional test suite to enable better evaluation and development of hate speech detection models for a wider range of languages.
Methods
The core of this work is the creation of MULTILINGUAL HATECHECK (MHC), a suite of functional tests for multilingual hate speech detection. MHC extends the English HATECHECK by covering 34 functionalities across ten languages. These functional tests are designed to be fine-grained, distinct, and contrastive, evaluating a model's ability to correctly classify different types of hateful and non-hateful content. For instance, they include tests for hate expressed with profanity versus non-hateful uses of profanity. The tests were hand-crafted by native-speaking language experts, adapting English cases to retain realism and cultural compatibility. Templates were used to generate a large number of test cases, ensuring balanced coverage of protected groups. The validation process involved multiple native-speaking annotators to ensure label quality.
Datasets
The paper introduces MULTILINGUAL HATECHECK (MHC) as a new benchmark. MHC comprises 36,582 test cases across ten languages: Arabic, Dutch, French, German, Hindi, Italian, Mandarin, Polish, Portuguese, and Spanish. Of these, 69.7% are labeled as hateful and 30.3% as non-hateful.
For model fine-tuning and evaluation, the authors used three existing hate speech datasets:
- Italian: Sanguinetti et al. (2020) dataset (8,100 tweets)
- Portuguese: Fortuna et al. (2019) dataset (5,668 tweets)
- Spanish: Basile et al. (2019) dataset (6,600 tweets)
Key Insights and Ideas
- Beyond Accuracy: Traditional accuracy metrics can obscure critical model weaknesses. Functional tests, like those in MHC, provide a more diagnostic view of model behavior.
- The Multilingual Gap: The lack of robust evaluation tools for non-English hate speech detection leaves a significant portion of the global population vulnerable.
- Systematic Biases: Even high-performing multilingual models can exhibit biases in target coverage and struggle with nuanced linguistic phenomena like negation and counter-speech.
- Cross-Lingual Transfer Challenges: Transfer learning works better between closely related languages, highlighting the need for language-specific considerations.
- The Importance of Native Expertise: Hand-crafting test cases by native speakers is crucial for capturing cultural nuances and linguistic realism.
Key Results
The authors evaluated a multilingual XLM-T model (XTC) fine-tuned on Spanish, Italian, and Portuguese datasets using MHC. Key findings include:
- Model Weaknesses: XTC demonstrated several critical weaknesses:
- Over-sensitivity to keywords: The model relied heavily on specific words and phrases, leading to misclassifications of negated hate speech and counter-speech.
- Biased target coverage: Performance varied significantly across different protected groups, with some groups being less accurately classified.
- Inconsistent cross-lingual transfer: Performance was strong on languages the model was fine-tuned on (Spanish, Italian, Portuguese) and related languages (French), but significantly weaker on Hindi and Arabic.
- Performance Variances: Macro F1 scores for XTC across the ten languages ranged from 58.1 (Hindi) to 71.5 (Mandarin).
- Specific Functional Test Failures: XTC performed poorly on tests involving implicit hate (F4), spelling variations (F23+), and particularly on hate expressed using slurs (F7), with accuracy as low as 43.3% in Spanish. Non-hateful tests like negated hate (F13) and counter-speech (F18/19) also showed very low accuracy.
- Comparison with Perspective: XTC generally outperformed Google's Perspective API on Italian and Portuguese for "identity attack" and performed comparably on German.
Limitations and Future Work
The authors acknowledge several limitations:
- Diagnostic, Not General: MHC diagnoses specific model weaknesses rather than general strengths and should complement, not replace, held-out test set evaluations.
- Contextual Limitations: MHC does not test functionalities related to context outside of individual documents or modalities other than text.
- Limited Coverage: MHC covers a limited set of protected groups and slurs, though it can be expanded. The ten languages covered are only a fraction of the world's languages.
- Non-Literal Translations: Comparisons between languages are not strictly like-for-like as cases are not literal translations.
- Dialectal Variations: The study uses widely-spoken dialects but cannot cover all variations within languages.
Future work could involve expanding MHC to more languages and protected groups, incorporating more nuanced contextual tests, and further investigating language-specific model biases and cross-lingual transfer phenomena. The authors hope MHC will contribute to closing the language gap in hate speech research and support the development of more effective multilingual models.
Summary updated