Skip to main content
QUICK REVIEW

[Paper Review] NUIG-Shubhanker@Dravidian-CodeMix-FIRE2020: Sentiment Analysis of Code-Mixed Dravidian text using XLNet

Shubhanker Banerjee, Arun Jayapal|arXiv (Cornell University)|Oct 15, 2020
Natural Language Processing TechniquesComputer Science24 references5 citations
TL;DR

This paper proposes fine-tuning the XLNet language model for sentiment analysis on code-mixed Dravidian-English text, specifically Tamil-English (Tanglish) and Malayalam-English datasets, without additional pre-processing. Despite achieving 49% accuracy on Malayalam-English and 35% on Tamil-English, results are limited by class imbalance and data noise, suggesting potential improvement through extended training and data augmentation.

ABSTRACT

Social media has penetrated into multilingual societies, however most of them use English to be a preferred language for communication. So it looks natural for them to mix their cultural language with English during conversations resulting in abundance of multilingual data, call this code-mixed data, available in todays' world.Downstream NLP tasks using such data is challenging due to the semantic nature of it being spread across multiple languages.One such Natural Language Processing task is sentiment analysis, for this we use an auto-regressive XLNet model to perform sentiment analysis on code-mixed Tamil-English and Malayalam-English datasets.

Motivation & Objective

  • To address the challenge of sentiment analysis on code-mixed Dravidian-English social media text, which is under-resourced and semantically complex.
  • To evaluate the effectiveness of the pre-trained XLNet model for sentiment classification on low-resource code-mixed datasets without extensive pre-processing.
  • To investigate performance differences between Malayalam-English and Tamil-English code-mixed datasets in the context of sentiment classification.
  • To identify limitations in model performance, particularly due to class imbalance and data quality, and suggest improvements.

Proposed method

  • Fine-tuned the pre-trained XLNet model on labeled code-mixed datasets for Tamil-English and Malayalam-English text using 4 epochs and a maximum learning rate of 0.005.
  • Utilized XLNet’s two-stream attention mechanism to model bidirectional context by attending to both left and right tokens during autoregressive prediction.
  • Applied permutation language modeling to train XLNet on all possible permutations of input sequences, enabling it to learn contextual dependencies from both directions.
  • Used the standard transformer architecture with multi-head self-attention to capture long-range dependencies in code-mixed sequences.
  • Performed sentiment classification using the final hidden state of the [CLS] token from the XLNet output, followed by a softmax layer for multi-class prediction.
  • Split the datasets into training, validation, and test sets as per the FIRE 2020 competition, with 15,744 and 6,738 sentences for Tamil-English and Malayalam-English respectively.

Experimental results

Research questions

  • RQ1Can the XLNet model effectively perform sentiment analysis on low-resource code-mixed Dravidian-English text without additional pre-processing?
  • RQ2How does model performance vary between Malayalam-English and Tamil-English code-mixed datasets, given differences in data quality and size?
  • RQ3To what extent does class imbalance in the training data affect the model’s predictive performance on minority sentiment classes?
  • RQ4What improvements can be made to enhance sentiment classification accuracy on code-mixed Dravidian text beyond fine-tuning XLNet with standard hyperparameters?

Key findings

  • The model achieved a test accuracy of 49% on the Malayalam-English dataset and 35% on the Tamil-English dataset, indicating moderate performance on low-resource code-mixed text.
  • The F1-weighted average score was 0.52 for Malayalam-English and 0.32 for Tamil-English, reflecting a significant performance gap between the two datasets.
  • The Positive class was predicted with the highest F1 score (0.59) on Malayalam-English and 0.51 on Tamil-English, indicating better alignment with the majority class.
  • The Mixed feelings and Negative classes showed the lowest F1 scores (0.05 and 0.19 respectively) on Malayalam-English, indicating poor detection of nuanced or negative sentiments.
  • The model performed poorly on the 'not-malayalam' and 'not-tamil' classes, with F1 scores of 0.44 and 0.16, suggesting challenges in language identification within code-mixed contexts.
  • The authors attribute the lower performance on Tamil-English to higher noise levels in the data, despite its larger size compared to the Malayalam-English dataset.

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.