[Paper Review] Abusive and Threatening Language Detection in Urdu using Boosting based and BERT based models: A Comparative Approach
This paper proposes a comparative study of boosting-based and BERT-based models for abusive and threatening language detection in Urdu, using a shared task dataset. Fine-tuning the dehatebert-mono-arabic model—originally trained on Arabic hate speech—yielded state-of-the-art performance, achieving an F1 score of 0.88062 on abusive language detection and 0.54574 on threatening language detection, ranking first in both sub-tasks of the FIRE 2021 shared task.
Online hatred is a growing concern on many social media platforms. To address this issue, different social media platforms have introduced moderation policies for such content. They also employ moderators who can check the posts violating moderation policies and take appropriate action. Academicians in the abusive language research domain also perform various studies to detect such content better. Although there is extensive research in abusive language detection in English, there is a lacuna in abusive language detection in low resource languages like Hindi, Urdu etc. In this FIRE 2021 shared task - "HASOC- Abusive and Threatening language detection in Urdu" the organizers propose an abusive language detection dataset in Urdu along with threatening language detection. In this paper, we explored several machine learning models such as XGboost, LGBM, m-BERT based models for abusive and threatening content detection in Urdu based on the shared task. We observed the Transformer model specifically trained on abusive language dataset in Arabic helps in getting the best performance. Our model came First for both abusive and threatening content detection with an F1scoreof 0.88 and 0.54, respectively.
Motivation & Objective
- To address the lack of research in abusive and threatening language detection for low-resource languages like Urdu.
- To evaluate the effectiveness of classical machine learning models (XGBoost, LGBM) and transformer-based models (mBERT, dehatebert-mono-arabic) on Urdu abusive and threatening language detection.
- To investigate whether fine-tuning a model pre-trained on Arabic hate speech data improves performance on Urdu, given linguistic and historical connections.
- To achieve top performance in the FIRE 2021 shared task on Urdu abusive and threatening language detection.
- To release code and models publicly to support future research in low-resource hate speech detection.
Proposed method
- Employed XGBoost and LightGBM with pre-trained Urdu LASER embeddings as baseline models.
- Fine-tuned multilingual BERT (mBERT) on the Urdu abusive and threatening language datasets for binary classification.
- Utilized the dehatebert-mono-arabic model—previously fine-tuned on Arabic hate speech data—for transfer learning to Urdu, leveraging linguistic similarities.
- Applied binary cross-entropy loss for both sub-tasks, with class weighting to mitigate data imbalance in the threatening language detection set.
- Used 10 epochs with Adam optimizer and initial 2e-5 learning rate for transformer models, with early stopping based on validation F1 score.
- Split training data into 85% for training and 15% for validation in abusive detection; used full dataset for threatening detection due to class imbalance.
Experimental results
Research questions
- RQ1Can boosting-based models like XGBoost and LGBM effectively detect abusive and threatening language in low-resource Urdu text?
- RQ2Does fine-tuning a multilingual BERT model on Urdu data improve performance compared to training from scratch or using general-purpose embeddings?
- RQ3Can a model pre-trained on Arabic hate speech data generalize effectively to Urdu due to shared linguistic roots?
- RQ4How does data imbalance in the threatening language detection dataset affect model performance, and can class weighting mitigate this?
- RQ5What is the comparative performance of different models in the FIRE 2021 shared task for Urdu abusive and threatening language detection?
Key findings
- The dehatebert-mono-arabic model fine-tuned on the Urdu dataset achieved the highest F1 score of 0.88062 on the abusive language detection task (Subtask A), ranking first in the shared task.
- For threatening language detection (Subtask B), the same model achieved an F1 score of 0.54574, outperforming all other models and securing first place despite the highly imbalanced dataset.
- Classical models (XGBoost and LGBM) performed moderately, with F1 scores of 0.76072 and 0.76667 on Subtask A, respectively, indicating limited effectiveness on low-resource Urdu text.
- mBERT achieved an F1 score of 0.84000 on Subtask A and 0.46961 on Subtask B, showing better performance than classical models but inferior to the dehatebert-mono-arabic model.
- The study confirmed that transfer learning from a high-performing Arabic hate speech model significantly improved performance on Urdu, suggesting linguistic transferability across related languages.
- Class weighting improved model robustness on the imbalanced threatening language dataset, but performance remained limited, indicating that data imbalance remains a key challenge for this task.
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.