[Paper Review] SJ_AJ@DravidianLangTech-EACL2021: Task-Adaptive Pre-Training of Multilingual BERT models for Offensive Language Identification
This paper presents an ensemble of task-adaptively fine-tuned mBERT and XLM-RoBERTa models for offensive language identification in code-mixed Dravidian languages (Kannada, Tamil, Malayalam). By leveraging masked language modeling during task-specific pretraining on multilingual BERT, the system achieved state-of-the-art performance, ranking 1st in Kannada, 2nd in Malayalam, and 3rd in Tamil at the EACL 2021 shared task.
In this paper we present our submission for the EACL 2021-Shared Task on Offensive Language Identification in Dravidian languages. Our final system is an ensemble of mBERT and XLM-RoBERTa models which leverage task-adaptive pre-training of multilingual BERT models with a masked language modeling objective. Our system was ranked 1st for Kannada, 2nd for Malayalam and 3rd for Tamil.
Motivation & Objective
- To develop a robust offensive language identification system for code-mixed Dravidian languages, which are underrepresented in NLP.
- To investigate the effectiveness of task-adaptive pretraining with masked language modeling on multilingual BERT models for low-resource, code-mixed social media text.
- To improve performance on imbalanced, multilingual datasets by leveraging model ensembling and representation fusion techniques.
- To evaluate the impact of input format (native script vs. Romanized) on model generalization and robustness.
Proposed method
- Task-adaptive pretraining of mBERT and XLM-RoBERTa using masked language modeling (MLM) on combined train and dev sets of each Dravidian language.
- Fine-tuning the task-adaptively pre-trained models on offensive language classification with a [CLS] token representation and softmax layer.
- Creating an ensemble of three mBERT and three XLM-RoBERTa models using majority voting for final predictions.
- Exploring representation fusion by concatenating character-level, subword-level, and word-level embeddings via BiLSTM layers.
- Using Hugging Face’s transformers library with default hyperparameters: 5 training epochs, batch size 8, and early stopping based on dev set performance.
- Transliterating datasets using indic-trans for ablation studies, though not used in final models.
Experimental results
Research questions
- RQ1Does task-adaptive pretraining with masked language modeling improve offensive language detection in low-resource, code-mixed Dravidian languages?
- RQ2How does the performance of mBERT and XLM-RoBERTa compare when fine-tuned on multilingual, code-mixed data with mixed script inputs?
- RQ3To what extent does representation fusion using character-level and word-level BiLSTMs enhance model performance across different Dravidian languages?
- RQ4How does input format (native script vs. Romanized) affect model generalization and robustness in offensive language detection?
Key findings
- Task-adaptive pretraining improved F1 scores by 1-2% absolute across all three languages, with the largest gains observed in Malayalam (up to 2% improvement).
- The ensemble model achieved the highest performance, with an F1 score of 70.30 and accuracy of 74.00 on the Kannada dev set.
- XLM-RoBERTa outperformed mBERT on Tamil and Malayalam, achieving 76.94 F1 and 96.76 F1 respectively on the dev set.
- The baseline models retained strong performance even when input was fully Romanized, indicating robustness to script variation.
- Representation fusion improved performance on some datasets but degraded it on others, suggesting context-dependent effectiveness.
- The system ranked 1st in Kannada, 2nd in Malayalam, and 3rd in Tamil in the EACL 2021 shared task, demonstrating state-of-the-art results.
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.