[Paper Review] A Twitter BERT Approach for Offensive Language Detection in Marathi
This paper proposes a fine-tuned MahaTweetBERT model for offensive language detection in Marathi, leveraging domain-specific pre-training on Marathi tweets and data augmentation from HASOC 2021 and L3Cube-MahaHate. It achieves a new state-of-the-art F1 score of 98.43 on the HASOC 2022 test set, demonstrating that Marathi Twitter BERT models outperform general multilingual and hateful-data-specific BERTs for social media offensive language detection in low-resource settings.
Automated offensive language detection is essential in combating the spread of hate speech, particularly in social media. This paper describes our work on Offensive Language Identification in low resource Indic language Marathi. The problem is formulated as a text classification task to identify a tweet as offensive or non-offensive. We evaluate different mono-lingual and multi-lingual BERT models on this classification task, focusing on BERT models pre-trained with social media datasets. We compare the performance of MuRIL, MahaTweetBERT, MahaTweetBERT-Hateful, and MahaBERT on the HASOC 2022 test set. We also explore external data augmentation from other existing Marathi hate speech corpus HASOC 2021 and L3Cube-MahaHate. The MahaTweetBERT, a BERT model, pre-trained on Marathi tweets when fine-tuned on the combined dataset (HASOC 2021 + HASOC 2022 + MahaHate), outperforms all models with an F1 score of 98.43 on the HASOC 2022 test set. With this, we also provide a new state-of-the-art result on HASOC 2022 / MOLD v2 test set.
Motivation & Objective
- To address the challenge of offensive language detection in low-resource Indic languages, specifically Marathi, where social media hate speech harms mental health and societal harmony.
- To evaluate the effectiveness of monolingual and multilingual BERT models, particularly those pre-trained on Marathi social media text, for offensive language identification.
- To investigate whether models pre-trained on hateful content alone outperform those pre-trained on broader Marathi tweet corpora.
- To explore data augmentation using multiple external Marathi hate speech datasets to improve model generalization and performance.
Proposed method
- Fine-tuned several BERT models—MahaTweetBERT, MahaTweetBERT-Hateful, MahaBERT, MuRIL, and MarathiBert V2—on a combined training set of HASOC 2022, HASOC 2021, and L3Cube-MahaHate datasets.
- Pre-trained models were specifically selected for their domain relevance: MahaTweetBERT and MahaTweetBERT-Hateful were pre-trained on large-scale Marathi tweets, including hateful content.
- Applied data augmentation by combining three distinct Marathi hate speech datasets: HASOC 2021, HASOC 2022, and L3Cube-MahaHate, to increase training data diversity and size.
- Used macro-F1 score as the primary evaluation metric on the HASOC 2022 test set to ensure balanced performance across offensive and non-offensive classes.
- Performed ablation studies comparing performance across different training data combinations: HASOC 2022 only, HASOC 2022 + HASOC 2021, and HASOC 2022 + HASOC 2021 + MahaHate.
- Selected the best model checkpoint based on validation performance on the HASOC 2022 dev set before final evaluation on the test set.
Experimental results
Research questions
- RQ1Does a Marathi Twitter-specific BERT model (MahaTweetBERT) outperform general multilingual and hateful-data-specific BERT models in offensive language detection on Marathi social media?
- RQ2Can data augmentation using multiple external Marathi hate speech datasets (HASOC 2021, L3Cube-MahaHate) significantly improve model performance on the HASOC 2022 benchmark?
- RQ3Why do models fine-tuned on combined datasets still fail to classify certain common sentences correctly, and what does this reveal about model generalization limits?
- RQ4Does a BERT model pre-trained exclusively on hateful content (MahaTweetBERT-Hateful) consistently outperform models pre-trained on mixed tweet corpora in low-resource settings?
- RQ5To what extent does domain-specific pre-training on Marathi tweets improve performance on downstream offensive language detection tasks compared to general-purpose or multilingual pre-training?
Key findings
- MahaTweetBERT, a BERT model pre-trained on 40 million Marathi tweets, achieved the highest F1 score of 98.43 on the HASOC 2022 test set when fine-tuned on the combined dataset of HASOC 2022, HASOC 2021, and L3Cube-MahaHate.
- The combination of HASOC 2022, HASOC 2021, and MahaHate datasets led to a significant performance boost compared to training on HASOC 2022 alone, indicating that models have not yet saturated with current data scales.
- Despite intuitive expectations, the MahaTweetBERT-Hateful model—pre-trained on only hateful Marathi tweets—performed worse than MahaTweetBERT when trained on larger, mixed-data corpora, suggesting that hateful-only pre-training may limit generalization.
- Models fine-tuned on combined datasets incorrectly classified the same set of examples, indicating potential data bias or model convergence patterns that persist across training regimes.
- The MahaTweetBERT model outperformed all other models, including MuRIL and MarathiBert V2, confirming the value of domain-specific pre-training on social media text for downstream NLP tasks in low-resource languages.
- The study establishes a new state-of-the-art result on the HASOC 2022 / MOLD v2 test set, with MahaTweetBERT achieving 98.43 F1, marking the first successful application of Twitter-specific BERT and multi-source data augmentation for Marathi offensive language detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.