[Paper Review] IIITG-ADBU@HASOC-Dravidian-CodeMix-FIRE2020: Offensive Content Detection in Code-Mixed Dravidian Text
This paper presents a comparative study of SVM and XLM-RoBERTa models for offensive language detection in code-mixed Dravidian languages—Malayalam-English and Tamil-English. The SVM classifier using TF-IDF features of combined character and word n-grams achieved the highest F1 score of 0.95 (1st rank) on YouTube Malayalam data and 0.76 (3rd rank) on Twitter Malayalam data, while XLM-RoBERTa achieved 0.87 F1 (3rd rank) on Tamil-English Twitter data.
This paper presents the results obtained by our SVM and XLM-RoBERTa based classifiers in the shared task Dravidian-CodeMix-HASOC 2020. The SVM classifier trained using TF-IDF features of character and word n-grams performed the best on the code-mixed Malayalam text. It obtained a weighted F1 score of 0.95 (1st Rank) and 0.76 (3rd Rank) on the YouTube and Twitter dataset respectively. The XLM-RoBERTa based classifier performed the best on the code-mixed Tamil text. It obtained a weighted F1 score of 0.87 (3rd Rank) on the code-mixed Tamil Twitter dataset.
Motivation & Objective
- To address the challenge of detecting offensive content in code-mixed Dravidian languages, particularly Malayalam-English and Tamil-English.
- To evaluate traditional machine learning (SVM) and pre-trained multilingual transformer models (XLM-RoBERTa) on low-resource, code-mixed social media text.
- To compare model performance across different data sources (YouTube vs. Twitter) and language pairs (Malayalam-English, Tamil-English).
- To identify the most effective feature engineering and model architecture for offensive language detection in low-resource, code-mixed settings.
Proposed method
- Trained an SVM classifier using TF-IDF features derived from character n-grams (1–6) and word n-grams (1–3), including their combination.
- Fine-tuned the XLM-RoBERTa base model, a multilingual transformer, for binary classification using Hugging Face Transformers library with Adam optimizer and weight decay.
- Used stratified sampling to create a development set from the training data for Task 2, maintaining class balance.
- Applied early stopping and learning rate scheduling (2e-5) during XLM-RoBERTa training with epsilon=1e-8.
- Evaluated models using weighted F1, precision, and recall on dev and test sets, with confusion matrices for interpretability.
- Selected final models based on dev set performance, submitting only top-performing configurations to the shared task.
Experimental results
Research questions
- RQ1How do SVM and XLM-RoBERTa models compare in performance for offensive language detection in code-mixed Dravidian text?
- RQ2Which feature representation (character n-grams, word n-grams, or their combination) yields the best results for SVM on code-mixed Malayalam-English text?
- RQ3Does the choice of data source (YouTube vs. Twitter) significantly affect model performance for Malayalam-English offensive language detection?
- RQ4How effective is XLM-RoBERTa in handling low-resource, code-mixed Tamil-English and Malayalam-English text compared to traditional SVM with TF-IDF?
- RQ5Why does XLM-RoBERTa underperform on Malayalam-English Twitter data compared to SVM, and what factors might contribute to this degradation?
Key findings
- The SVM classifier using combined TF-IDF features of character and word n-grams achieved the highest F1 score of 0.95 (1st rank) on the YouTube Malayalam dataset.
- On the Twitter Malayalam dataset, the same SVM model achieved a weighted F1 score of 0.7623, securing 3rd rank among all submissions.
- For the Tamil-English Twitter dataset, the XLM-RoBERTa model achieved a weighted F1 score of 0.8669, ranking 3rd overall, outperforming all SVM variants on this task.
- The SVM model trained on word n-grams alone achieved the best dev set F1 score of 0.8714 for Tamil-English data, indicating strong performance on this language pair.
- XLM-RoBERTa underperformed significantly on Malayalam-English Twitter data, achieving only 0.5171 F1, suggesting limitations in handling low-resource code-mixed Dravidian text with this architecture.
- Confusion matrices revealed that the SVM model for Malayalam-English YouTube data misclassified only 2 offensive instances as not offensive, indicating high precision and recall on this test set.
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.