MeisterMorxrc at SemEval-2020 Task 9: Fine-Tune Bert and Multitask Learning for Sentiment Analysis of Code-Mixed Tweets

Qi Wu, Peng Wang, Chenghao Huang

Abstract

Sentiment analysis on social media is increasingly challenged by "code-mixing," where users alternate between languages within a single post. This paper details the approach taken by team MeisterMorxrc for SemEval-2020 Task 9 (Sentimix). By leveraging a multi-task BERT architecture that simultaneously identifies language and predicts sentiment, alongside strategic emoji-to-text preprocessing, the authors achieved a competitive averaged F1 score of 0.730.

Introduction

In multilingual societies, social media users frequently engage in code-mixing—the practice of blending two or more languages (e.g., Hinglish or Spanglish) in a single conversation. Standard Natural Language Processing (NLP) models, typically trained on clean monolingual data, often fail to capture the nuances of these mixed-syntax, informal communications. SemEval-2020 Task 9 (Sentimix) addresses this by challenging researchers to classify the sentiment of code-mixed tweets as positive, negative, or neutral.

Methodology

The proposed system utilizes a pipeline designed to handle the linguistic complexity and noise inherent in social media data.

Preprocessing

To mitigate the loss of emotional context from non-textual elements, the authors implemented Emoji Substitution, mapping emoji unicodes to descriptive English phrases (e.g., "smiling face"). This allows the transformer model to process visual sentiment as standard tokens. Additionally, text was normalized via lowercase conversion, URL replacement with 'http' tokens, and the removal of "emotionless" characters like '@'.

Model Architecture

The core of the system is built on Bidirectional Encoder Representations from Transformers (BERT). The authors employed a specific fine-tuning strategy known as NFT-TM, which involves adding a complex network structure atop the BERT base. Training occurs in two stages: initially freezing BERT layers to train the top-level task model, followed by full fine-tuning.

A key innovation is the use of Multi-task Learning. The model is trained to simultaneously identify English words and predict the overall sentiment. This dual-task approach acts as a regularizer, forcing the model to understand the underlying linguistic structure before determining emotion, thereby improving generalization.

Experimental Setup

The model was evaluated using the official SemEval-2020 Task 9 datasets, which consist of tweets featuring English-Hindi and English-Spanish code-mixing. Each tweet includes sentiment labels and word-level language tags (e.g., en, hi, spa). Optimization was performed using the Adam optimizer and TF-IDF filtering to remove low-information words.

Results and Discussion

The effectiveness of the multi-task fine-tuning approach is evident when compared to baseline configurations.

Comparison of system performance on the SemEval-2020 Task 9 dataset.

As shown in the results, the Fine-tuned Multi-task BERT achieved an averaged F1 score of 0.730, significantly outperforming the original BERT model (0.589) and a single-task fine-tuned version (0.687). This jump underscores that standard pre-trained models require specialized fine-tuning and multi-task objectives to navigate the complexities of code-mixed social media text.

Conclusion

The MeisterMorxrc system demonstrates that combining semantic-preserving preprocessing with multi-task transformer architectures provides a robust solution for code-mixed sentiment analysis. Future work will focus on refining the top-layer architecture and investigating the model's stability across different language pairs to ensure consistent performance across diverse multilingual datasets.

Summary updated

BibTeX
@inproceedings{wu2020meistermorxrc,
  author = {Qi Wu and Peng Wang and Chenghao Huang},
  title = {{MeisterMorxrc at SemEval-2020 Task 9: Fine-Tune Bert and Multitask Learning for Sentiment Analysis of Code-Mixed Tweets}},
  booktitle = {SemEval @ COLING},
  year = {2020},
  doi = {10.18653/v1/2020.semeval-1.174},
}
Figure