Introduction
While hate speech detection is a well-studied area in English and high-resource languages, low-resource languages—specifically regional Indian languages like Bengali, Assamese, and Gujarati—often lack robust NLP tools. These languages possess unique linguistic characteristics and cultural nuances that make generic multilingual models less effective.
Researchers from MKSSS Cummins College and IIT Madras address the challenge of "coarse-grained binary classification": determining whether a social media post contains offensive content (HOF) or is non-offensive (NOT). The goal is to build more inclusive online spaces by effectively countering the proliferation of hate speech in these specific linguistic communities.
Methodology
The core of the methodology is the transition from word-level embeddings to sentence-level embeddings using Sentence-BERT (SBERT). Unlike standard BERT, which focuses on word-level representations, SBERT uses siamese or triplet network architectures to produce fixed-size embeddings for entire sentences. This approach is better at capturing the overall "tone" and "intent" of a post rather than just identifying isolated offensive keywords.
The study compared specialized monolingual models (e.g., BengaliSBERT, GujaratiSBERT) against broad multilingual models (e.g., IndicBERT, MuRil). To optimize performance, the team froze the first six layers of the models and fine-tuned the remaining layers for four epochs. During preprocessing, standard cleaning was applied, but the authors strategically retained emojis, noting their significant contribution to conveying sentiment in offensive text.
Datasets
The study utilized the HASOC 2023 (Hate Speech and Offensive Content Identification) datasets across three languages. The data distribution highlights significant differences in scale, particularly the few-shot nature of the Gujarati task.
- Task 1B (Gujarati): A few-shot setting with a very small training set (200 tweets) and a larger test set (1,196 tweets).
- Task 4 (Bengali & Assamese): Larger datasets collected from Twitter, Facebook, and YouTube comments. Assamese included 4,036 training samples, while Bengali included 1,281.
Key Results and Insights
The team’s performance was evaluated using the Macro F1 Score, which balances precision and recall across both offensive and non-offensive classes. The results demonstrate the superiority of monolingual SBERT models.
- Bengali: Achieved Rank 1 out of 21 teams using BengaliSBERT (Macro F1: 0.7703).
- Assamese: Achieved Rank 6 out of 20 teams using assamese-bert (Macro F1: 0.7065).
- Gujarati: Achieved Rank 10 out of 17 teams using GujaratiSBERT (Macro F1: 0.7324).
In all cases, the SBERT variants outperformed their standard BERT counterparts and multilingual baselines like IndicBERT. This suggests that for low-resource languages, "depth" in one language (monolingual focus) can be more valuable than "breadth" across many (multilingual focus). Furthermore, the performance gap in Gujarati highlights the difficulty of generalization in "few-shot" settings where training data is scarce.
Conclusion
The research demonstrates that monolingual SBERT models significantly outperform standard BERT and multilingual models for detecting hate speech in low-resource Indian languages. While the team secured the top ranking for Bengali, there remains room for improvement in Assamese and Gujarati. Future work will explore diverse strategies such as data augmentation or complex ensemble frameworks to better capture the linguistic nuances required for high-accuracy detection across India's diverse linguistic landscape.
Summary updated