Skip to main content
QUICK REVIEW

[Paper Review] Improved Sentiment Detection via Label Transfer from Monolingual to Synthetic Code-Switched Text

Bidisha Samanta, Niloy Ganguly|arXiv (Cornell University)|Jan 1, 2019
Hate Speech and Cyberbullying DetectionComputer Science37 references6 citations
TL;DR

This paper proposes CSGen, a method to synthesize sentiment-labeled code-switched text by transferring labels from monolingual sentences to synthetic code-mixed versions via constituency parse-based segment replacement and translation alignment. The approach achieves up to 7.20% absolute accuracy gain in sentiment detection on English-Bengali code-switched text and 6% F1 improvement in hate speech detection by mitigating class imbalance through synthetic data augmentation.

ABSTRACT

Multilingual writers and speakers often alternate between two languages in a single discourse, a practice called "code-switching".Existing sentiment detection methods are usually trained on sentiment-labeled monolingual text.Manually labeled code-switched text, especially involving minority languages, is extremely rare.Consequently, the best monolingual methods perform relatively poorly on code-switched text.We present an effective technique for synthesizing labeled code-switched text from labeled monolingual text, which is more readily available.The idea is to replace carefully selected subtrees of constituency parses of sentences in the resource-rich language with suitable token spans selected from automatic translations to the resource-poor language.By augmenting scarce human-labeled code-switched text with plentiful synthetic code-switched text, we achieve significant improvements in sentiment labeling accuracy (1.5%, 5.11%, 7.20%) for three different language pairs (English-Hindi, English-Spanish and English-Bengali).We also get significant gains for hate speech detection: 4% improvement using only synthetic text and 6% if augmented with real text.

Motivation & Objective

  • To address the scarcity of manually labeled code-switched text, especially for low-resource language pairs.
  • To improve sentiment detection performance on code-switched social media text, which current monolingual models struggle with.
  • To develop a data-driven, grammar-free method for generating high-quality, sentiment-accurate synthetic code-switched sentences.
  • To demonstrate that synthetic data alone or combined with real data can outperform models trained only on scarce gold-labeled code-switched data.
  • To mitigate label imbalance in hate speech detection by generating balanced synthetic training data.

Proposed method

  • CSGen uses a constituency parser to identify syntactic subtrees in monolingual source sentences for potential code-switching points.
  • It translates the source sentence into the target language using a neural machine translation model to create a parallel sentence pair.
  • Segments in the source sentence are selected for replacement based on sentiment salience and syntactic boundaries, favoring opinion-laden constituents.
  • The target language translation is searched for the most semantically and syntactically compatible segment using word embedding similarity and attention-based alignment.
  • The selected target segment replaces the source segment in the parse tree, generating a synthetic code-switched sentence with the original sentiment label.
  • The method avoids linguistic grammar or code-switching rules, relying instead on automatic alignment and similarity metrics to ensure fluency and coherence.

Experimental results

Research questions

  • RQ1Can synthetic code-switched text generated from monolingual sentiment-labeled data improve sentiment detection performance on low-resource language pairs?
  • RQ2To what extent can synthetic data alone match or surpass the performance of models trained on limited real code-switched data?
  • RQ3How does synthetic data augmentation affect hate speech detection, particularly in the presence of class imbalance?
  • RQ4What are the dominant failure modes in synthetic data generation that degrade model performance?
  • RQ5How does domain mismatch between training and test data impact the generalization of models trained on synthetic code-switched text?

Key findings

  • On English-Bengali code-switched text, synthetic data augmentation improved sentiment detection accuracy by 7.20% over models trained only on real data.
  • For English-Spanish, the method achieved a 5.11% accuracy gain when combining synthetic and real data.
  • In English-Hindi sentiment detection, the improvement was 1.5% on Twitter and 0.97% on Facebook, indicating moderate domain dependency.
  • Synthetic data alone achieved 5.04% lower accuracy than gold data on EN_HI, Twitter, but still outperformed gold data in hate speech detection by 4% F1 after label balancing.
  • In hate speech detection, combining synthetic and gold data yielded a 6% F1 improvement over gold data alone, primarily due to reduced class imbalance in the synthetic set.
  • Error analysis revealed two main failure modes: conflicting sentiment polarity in mixed segments and weak or ambiguous emotional content, especially when multiple agents are involved.

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.