TL;DR
HateCheckHIn is a new diagnostic evaluation suite designed to pinpoint specific weaknesses in Hindi hate speech detection models. By introducing 34 functional tests—including 6 novel categories for code-mixed and multilingual content—the authors reveal that state-of-the-art models like m-BERT and Google's Perspective API struggle significantly with non-standard language use and exhibit deep-seated biases against specific protected groups.
What Problem Does This Paper Address?
Automated hate speech detection is a critical but notoriously difficult NLP task. While researchers have developed numerous models, evaluation typically relies on aggregate metrics like accuracy or F1-score on held-out test sets. The authors argue that this "black-box" evaluation is insufficient: it doesn't tell you why a model fails or if it has systematic biases.
The challenge is amplified in the Indian context, where social media users frequently employ code-mixing (switching between Hindi and English) and Roman Hindi (writing Hindi using the English alphabet). Existing diagnostic tools, such as the original English HATECHECK, cannot capture these linguistic nuances.
Methods
The authors adapted the functional testing paradigm from software engineering to NLP. They built HateCheckHIn, a suite of 34 "functionalities" (test categories).
- Adaptation: 28 functionalities were adapted from the original English HATECHECK (e.g., direct threats, slurs, and non-hateful counter-speech).
- Innovation: 6 new Multilingual Functionalities (MF1-MF6) were introduced to handle real-world social media behavior:
- MF1: Hindi written entirely in Roman script.
- MF2/MF3: Mixing scripts for slurs vs. the rest of the sentence.
- MF4: English written using Devanagari (Hindi) characters.
- MF5/MF6: Code-mixed sentences using both Devanagari and Roman scripts.
The researchers generated 5,884 test cases using templates across 10 protected groups (e.g., based on religion, caste, gender, and sexual orientation). These cases were then validated by PhD students to ensure high-quality "gold standard" labels.
Datasets
- HateCheckHIn (New): The primary contribution, consisting of 5,884 diagnostic test cases (4,754 monolingual, 1,130 multilingual).
- Training Data: To test the suite, the authors fine-tuned m-BERT (multilingual BERT) on two existing Hindi datasets:
- HASOC-2021 (Mandl et al., 2021)
- CONSTRAINT-2021 (Bhardwaj et al., 2020)
- Commercial Baseline: Google’s Perspective API was also evaluated as a state-of-the-art commercial baseline.
Key Insights and Ideas
- The Multilingual Blind Spot: Models that perform reasonably well on standard Hindi text often collapse when faced with code-mixing or script changes. For instance, m-BERT fine-tuned on HASOC-2021 failed all six multilingual categories (accuracy < 50%).
- Script Swapping as an Adversarial Attack: One of the hardest cases for all models was MF4 (English written in Hindi characters). This suggests that models rely heavily on script-specific patterns rather than underlying semantic meaning.
- Counter-Speech Confusion: Models frequently misclassify "denouncements of hate" (e.g., "It is wrong to say [Hate Speech]") as being hateful themselves. This is a major hurdle for deploying these models in the wild, where they might silence the very people fighting online abuse.
- Target-Specific Bias: The diagnostic suite revealed that models are significantly less accurate when hate is directed at specific groups, such as "Eunuchs" or "Bangladeshi" individuals, compared to others.
Key Results
The evaluation showed that while the Perspective API (P) generally performed better on monolingual tasks, it was still highly vulnerable to multilingual variations.
- Overall Performance: Perspective API achieved the highest overall accuracy (63.88%), but this was heavily carried by its performance on non-hateful cases.
- Multilingual Failure: On functionality MF2 (Slur in Hindi, rest in Roman script), the Perspective API's accuracy plummeted to a mere 9.37%.
- m-BERT Weakness: The m-BERT model fine-tuned on HASOC-2021 (H-21) recorded 0.0% accuracy on both MF1 and MF2, showing a total inability to recognize hate in those specific formats.
Limitations and Future Work
The authors acknowledge that while HateCheckHIn is a powerful diagnostic tool, it is not a training set. The poor results across the board highlight a desperate need for more diverse, code-mixed training data.
Future work includes extending this framework to other Indic languages and exploring "human-in-the-loop" approaches to synthetically generate more robust training datasets. The ultimate goal is to move beyond simple accuracy and build models that truly understand the complex, multi-script reality of global social media.
Summary updated