Skip to main content
QUICK REVIEW

[Paper Review] Gauravarora@HASOC-Dravidian-CodeMix-FIRE2020: Pre-training ULMFiT on Synthetically Generated Code-Mixed Data for Hate Speech Detection

Gaurav Arora|arXiv (Cornell University)|Oct 5, 2020
Hate Speech and Cyberbullying DetectionComputer Science14 references23 citations
TL;DR

This paper proposes pre-training the ULMFiT model on synthetically generated code-mixed Tamil-English and Malayalam-English data using a Markov chain-based data generation approach to improve hate speech detection in Dravidian code-mixed social media text. The method achieved a 0.88 weighted F1-score (2nd place) on Sub-task B (Latin script) and 0.91 F1-score (4th place) on Sub-task A (mixed script), demonstrating the effectiveness of synthetic data for low-resource code-mix NLP tasks.

ABSTRACT

This paper describes the system submitted to Dravidian-Codemix-HASOC2020: Hate Speech and Offensive Content Identification in Dravidian languages (Tamil-English and Malayalam-English). The task aims to identify offensive language in code-mixed dataset of comments/posts in Dravidian languages collected from social media. We participated in both Sub-task A, which aims to identify offensive content in mixed-script (mixture of Native and Roman script) and Sub-task B, which aims to identify offensive content in Roman script, for Dravidian languages. In order to address these tasks, we proposed pre-training ULMFiT on synthetically generated code-mixed data, generated by modelling code-mixed data generation as a Markov process using Markov chains. Our model achieved 0.88 weighted F1-score for code-mixed Tamil-English language in Sub-task B and got 2nd rank on the leader-board. Additionally, our model achieved 0.91 weighted F1-score (4th Rank) for mixed-script Malayalam-English in Sub-task A and 0.74 weighted F1-score (5th Rank) for code-mixed Malayalam-English language in Sub-task B.

Motivation & Objective

  • To address the lack of effective hate speech detection systems for Dravidian code-mixed languages like Tamil-English and Malayalam-English.
  • To overcome data scarcity in low-resource Dravidian code-mix NLP by generating synthetic training data.
  • To improve hate speech detection performance through pre-training ULMFiT on synthetic code-mixed data using transfer learning.
  • To evaluate the effectiveness of Markov chain-based synthetic data generation for code-mixing in low-resource language settings.

Proposed method

  • A three-state Markov chain model is designed with states representing native script, transliterated script, and translated text to simulate code-mixing behavior.
  • Synthetic code-mixed data is generated by sampling state transitions over Wikipedia article sequences, using learned transition probabilities.
  • ULMFiT is pre-trained from scratch on the synthetic code-mixed data using the fast.ai implementation, leveraging transfer learning for downstream classification.
  • Subword tokenization via SentencePiece (unigram algorithm) is applied to handle spelling variations and transliteration errors in test data.
  • The model is fine-tuned using gradual unfreezing with learning rate scheduling and BPTT=70 for optimal convergence.
  • Hyperparameters are tuned via 80:20 train-validation splits, with dropout, batch size, and learning rates optimized per task.

Experimental results

Research questions

  • RQ1Can synthetic code-mixed data generated via a Markov process effectively pre-train a language model for hate speech detection in low-resource Dravidian code-mix languages?
  • RQ2How does pre-training ULMFiT on synthetic code-mixed data compare to standard fine-tuning in terms of F1-score on real-world code-mixed hate speech datasets?
  • RQ3To what extent does the use of subword tokenization improve robustness to spelling variations and transliteration errors in test data?
  • RQ4Does the synthetic data generation method based on parallel native, transliterated, and translated Wikipedia texts produce linguistically plausible code-mixed sequences?
  • RQ5Can transfer learning from a synthetically pre-trained ULMFiT model achieve competitive performance on Dravidian code-mix hate speech classification tasks?

Key findings

  • The model achieved a 0.88 weighted F1-score on Sub-task B (code-mixed Tamil-English in Latin script), securing 2nd place in the competition.
  • For Sub-task A (mixed-script Malayalam-English), the model achieved a 0.91 weighted F1-score, ranking 4th overall.
  • On Sub-task B for Malayalam-English in Latin script, the model obtained a 0.74 weighted F1-score, placing 5th in the leaderboard.
  • The pre-trained ULMFiT model achieved a validation perplexity of 41.22 on the mixed-script Malayalam data, indicating strong language modeling capacity.
  • The synthetic data generation method produced plausible code-mixed sequences, enabling effective pre-training even without large-scale real-world annotated code-mix data.
  • The use of subword tokenization improved robustness to spelling variations and transliteration errors in test sets, contributing to generalization.

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.