[Paper Review] Task-Specific Pre-Training and Cross Lingual Transfer for Code-Switched Data
This paper compares task-specific pre-training and cross-lingual transfer for code-switched sentiment analysis in Tamil-English and Malayalam-English datasets. Using BERT-based models, it finds that fine-tuning English BERT on target-language data (task-specific pre-training) outperforms leveraging multilingual models like mBERT and XLM-RoBERTa, especially in zero-shot and supervised settings, due to domain and script mismatches in multilingual models.
Using task-specific pre-training and leveraging cross-lingual transfer are two of the most popular ways to handle code-switched data. In this paper, we aim to compare the effects of both for the task of sentiment analysis. We work with two Dravidian Code-Switched languages - Tamil-Engish and Malayalam-English and four different BERT based models. We compare the effects of task-specific pre-training and cross-lingual transfer and find that task-specific pre-training results in superior zero-shot and supervised performance when compared to performance achieved by leveraging cross-lingual transfer from multilingual BERT models.
Motivation & Objective
- To evaluate and compare the effectiveness of task-specific pre-training and cross-lingual transfer for sentiment analysis in code-switched Dravidian languages.
- To establish strong baseline performance for Tamil-English and Malayalam-English code-switched sentiment datasets using BERT-based models.
- To investigate whether multilingual BERT models can effectively transfer knowledge to code-switched data in non-Latin scripts.
- To explore whether fine-tuning on a linguistically closer code-switched language (e.g., Hinglish) improves zero-shot transfer performance.
- To assess the impact of combining cross-lingual transfer with task-specific pre-training for improved generalization.
Proposed method
- Fine-tuned a monolingual English BERT model (TweetEval) on Tamil-English and Malayalam-English datasets for task-specific pre-training.
- Evaluated multilingual BERT models (mBERT and XLM-RoBERTa) for zero-shot and few-shot transfer to code-switched data.
- Used the Hinglish Sentimix dataset to perform intermediate fine-tuning for cross-lingual transfer, followed by adaptation to target languages.
- Applied standard BERT fine-tuning procedures with early stopping and learning rate scheduling on three-class sentiment classification.
- Compared model performance using precision, recall, and F1-score on dev and test sets for all configurations.
- Analyzed model behavior through zero-shot transfer across languages to assess generalization and linguistic proximity effects.
Experimental results
Research questions
- RQ1Does task-specific pre-training on code-switched data yield better performance than cross-lingual transfer from multilingual BERT models for sentiment analysis?
- RQ2How effective is zero-shot transfer from English BERT models to code-switched Dravidian languages, especially when the target data is out-of-domain (e.g., YouTube comments vs. Twitter data)?
- RQ3Can fine-tuning a monolingual model on a linguistically similar code-switched language (e.g., Hinglish) improve zero-shot performance on Tamil-English and Malayalam-English datasets?
- RQ4Does combining cross-lingual transfer with task-specific pre-training lead to statistically significant performance gains?
- RQ5Why do multilingual BERT models underperform on code-switched data with Romanized Dravidian scripts despite their multilingual pre-training?
Key findings
- Task-specific pre-training on target code-switched data consistently outperformed cross-lingual transfer from multilingual BERT models, with the TweetEval model achieving 77% F1 on Malayalam-English and 76% on Tamil-English.
- Zero-shot performance of the English TweetEval model was highest on the Hinglish dataset (77% F1), indicating better domain alignment with Twitter data, but lower on YouTube-based Tamil and Malayalam datasets.
- The best zero-shot results were achieved when the TweetEval model was fine-tuned on a linguistically closer code-switched language—e.g., fine-tuning on Malayalam improved performance on Tamil-English, and on Hinglish improved performance on Malayalam-English.
- Fine-tuning the TweetEval model on Hinglish for one epoch before adapting to target languages led to marginal improvements (F1 increased from 76% to 77% on Tamil-English and 77% to 78% on Malayalam-English), but these gains were not statistically significant.
- Multilingual BERT models (mBERT and XLM-RoBERTa) underperformed due to lack of representation for Romanized Tamil and Malayalam tokens and absence of code-switched pre-training data.
- The study establishes new baseline F1 scores of 76% (Tamil-English) and 78% (Malayalam-English) using task-specific pre-training, which can be used for future comparison.
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.