Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Sentiment Analysis for Code-mixed Data

Siddharth Yadav, Tanmoy Chakraborty|arXiv (Cornell University)|Jan 20, 2020
Natural Language Processing TechniquesComputer Science23 references9 citations
TL;DR

This paper proposes unsupervised sentiment analysis for code-mixed text using multilingual and crosslingual embeddings, enabling zero-shot transfer from monolingual to code-mixed data without parallel corpora or language identification. It achieves a 0.58 F1-score (unsupervised) and 0.62 F1-score (with parallel data), outperforming prior state-of-the-art by 3.11% on English-Spanish code-mixed sentiment analysis.

ABSTRACT

Code-mixing is the practice of alternating between two or more languages. Mostly observed in multilingual societies, its occurrence is increasing and therefore its importance. A major part of sentiment analysis research has been monolingual, and most of them perform poorly on code-mixed text. In this work, we introduce methods that use different kinds of multilingual and cross-lingual embeddings to efficiently transfer knowledge from monolingual text to code-mixed text for sentiment analysis of code-mixed text. Our methods can handle code-mixed text through a zero-shot learning. Our methods beat state-of-the-art on English-Spanish code-mixed sentiment analysis by absolute 3\% F1-score. We are able to achieve 0.58 F1-score (without parallel corpus) and 0.62 F1-score (with parallel corpus) on the same benchmark in a zero-shot way as compared to 0.68 F1-score in supervised settings. Our code is publicly available.

Motivation & Objective

  • Address the challenge of poor performance of monolingual sentiment analysis models on code-mixed text due to linguistic mixing and unseen syntactic structures.
  • Develop a zero-shot approach that transfers knowledge from monolingual datasets to code-mixed text without requiring labeled code-mixed data or parallel corpora.
  • Evaluate the effectiveness of various multilingual and crosslingual embeddings in capturing semantic and syntactic features unique to code-mixed language.
  • Demonstrate that fine-tuning on monolingual data followed by transfer to code-mixed data improves performance, even without explicit supervision on code-mixed examples.
  • Establish a training curriculum that first trains on monolingual data and then on code-mixed data to enhance knowledge transfer efficiency.

Proposed method

  • Utilize multilingual and crosslingual embeddings—specifically MUSE, LASER, FastText, and MultiBPEmb—that are trained on monolingual corpora and enable shared vector spaces across languages.
  • Apply word/subword-level embeddings to handle code-mixed sentences without requiring language tags, enabling language-agnostic representation learning.
  • Train a simple classifier using a single-layer bidirectional LSTM with 50 units and dropout (0.3) on top of the embeddings, followed by a softmax output layer.
  • Implement a two-stage training curriculum: first pre-train on combined monolingual English and Spanish datasets, then fine-tune on code-mixed data if supervised signals are available.
  • Use ADAM optimizer with a fixed learning rate of 0.001 and early stopping with patience of 10 to prevent overfitting.
  • Evaluate performance using F1-score on a benchmark English-Spanish code-mixed dataset with three labels: positive, negative, and neutral.

Experimental results

Research questions

  • RQ1Can multilingual and crosslingual embeddings enable effective zero-shot sentiment analysis on code-mixed text without any labeled code-mixed data?
  • RQ2How does the performance of unsupervised models based on off-the-shelf embeddings compare to supervised state-of-the-art methods on code-mixed sentiment analysis?
  • RQ3Does fine-tuning on monolingual data before transfer to code-mixed data improve downstream performance compared to random mixing of monolingual and code-mixed data?
  • RQ4Which embedding type—FastText, MUSE, LASER, or MultiBPEmb—yields the best performance in unsupervised and supervised settings for code-mixed sentiment analysis?
  • RQ5To what extent does using a parallel monolingual corpus improve zero-shot performance in code-mixed sentiment analysis?

Key findings

  • The proposed method achieves a 0.58 F1-score in a fully unsupervised setting on English-Spanish code-mixed sentiment analysis, outperforming prior unsupervised approaches.
  • With access to a parallel monolingual corpus, the method reaches a 0.62 F1-score, demonstrating strong zero-shot generalization capability.
  • The custom-fastText embeddings trained on code-mixed data yield the best unsupervised performance (0.58 F1), indicating that subword-level learning captures code-mixed linguistic patterns better than concatenation of monolingual corpora.
  • LASER achieves a remarkable 0.62 F1-score in zero-shot mode, performing at par with the previous state-of-the-art, highlighting the benefit of training on translation tasks with a shared encoder.
  • The model using FastText embeddings achieves a 0.584 F1-score in the unsupervised setting, surpassing the previous SOTA by 3.11 percentage points.
  • The two-stage training curriculum—first monolingual, then code-mixed—proves more effective than random mixing, confirming the importance of structured knowledge transfer.

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.