Skip to main content
QUICK REVIEW

[Paper Review] WLV-RIT at HASOC-Dravidian-CodeMix-FIRE2020: Offensive Language Identification in Code-switched YouTube Comments

Tharindu Ranasinghe, Sarthak Gupte|arXiv (Cornell University)|Nov 1, 2020
Hate Speech and Cyberbullying DetectionComputer Science33 references7 citations
TL;DR

This paper presents the WLV-RIT system for offensive language identification in code-switched Malayalam-English YouTube comments, leveraging transfer learning with XLM-RoBERTa and fine-tuning strategies. It achieved a 0.89 weighted F1 score, ranking 5th out of 12 participants in the HASOC-2020 shared task, demonstrating the effectiveness of multilingual transfer learning on low-resource code-mixed Dravidian text.

ABSTRACT

This paper describes the WLV-RIT entry to the Hate Speech and Offensive Content Identification in Indo-European Languages (HASOC) shared task 2020. The HASOC 2020 organizers provided participants with annotated datasets containing social media posts of code-mixed in Dravidian languages (Malayalam-English and Tamil-English). We participated in task 1: Offensive comment identification in Code-mixed Malayalam Youtube comments. In our methodology, we take advantage of available English data by applying cross-lingual contextual word embeddings and transfer learning to make predictions to Malayalam data. We further improve the results using various fine tuning strategies. Our system achieved 0.89 weighted average F1 score for the test set and it ranked 5th place out of 12 participants.

Motivation & Objective

  • To develop a robust offensive language identification system for code-switched Dravidian language text, specifically Malayalam-English comments.
  • To address the challenge of limited annotated data for low-resource languages like Malayalam by leveraging transfer learning from high-resource English datasets.
  • To evaluate the effectiveness of various fine-tuning strategies and transformer architectures in detecting offensive content in multilingual, code-mixed social media text.
  • To investigate the impact of dataset bias, particularly the misclassification of non-offensive content as offensive, on model performance.

Proposed method

  • Utilized cross-lingual contextual word embeddings via XLM-RoBERTa and BERT-multilingual models to transfer knowledge from English offensive language detection to Malayalam-English code-mixed text.
  • Applied transfer learning by fine-tuning pre-trained multilingual transformers on the HASOC-2020 Malayalam-English code-mixed dataset using the OLID English offensive language dataset as auxiliary training data.
  • Implemented multiple fine-tuning strategies: standard fine-tuning, adversarial training (AT), and masked language modeling (MLM) to improve robustness and performance.
  • Combined traditional machine learning models (Naive Bayes, SVM, Random Forest) with bag-of-words features for baseline comparison and ablation studies.
  • Performed data preprocessing including punctuation removal, emoji removal, and English word lemmatization using NLTK.
  • Optimized hyperparameters for SVM and Random Forest using grid search, with optimal values: alpha=0.001, random state=5, max iteration=15, and n_estimators=500.

Experimental results

Research questions

  • RQ1Can transfer learning from high-resource English offensive language datasets improve offensive language detection in low-resource code-mixed Dravidian text?
  • RQ2How do different fine-tuning strategies (e.g., adversarial training, masked language modeling) affect model performance on code-mixed Malayalam-English comments?
  • RQ3To what extent does the imbalance in the dataset and mislabeling of non-offensive content as offensive impact model generalization and F1 scores?
  • RQ4How do traditional machine learning models compare to transformer-based models in this low-resource, code-mixed setting?

Key findings

  • The XLM-RoBERTa model fine-tuned with transfer learning and adversarial training (XLM-R (TL) + ASE) achieved the highest weighted F1 score of 0.89 on the test set, ranking 5th out of 12 participants.
  • The best-performing model, XLM-R (TL) with ASE + language modeling, achieved a weighted F1 of 0.93, with 97% precision and 95% recall on the offensive class.
  • Despite the high performance of transformers, the traditional Random Forest model outperformed most transformer-based models, achieving a weighted F1 of 0.87, suggesting potential limitations in multilingual model representation for low-resource Dravidian languages.
  • The dataset exhibited significant class imbalance, with only 567 offensive out of 3,200 training examples, and approximately 20–25% of the 'offensive' labels were judged as non-offensive in qualitative analysis, indicating potential annotation noise.
  • The use of transfer learning from the OLID dataset significantly improved performance, especially for the minority offensive class, as evidenced by improved recall and F1 scores across all models.
  • Adversarial training and language modeling fine-tuning strategies consistently improved model robustness and generalization, particularly on the offensive class, with the best results seen in XLM-R-based models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.