Skip to main content
QUICK REVIEW

[Paper Review] Ensemble Language Models for Multilingual Sentiment Analysis

Md. Arid Hasan|arXiv (Cornell University)|Mar 10, 2024
Sentiment Analysis and Opinion MiningComputer Science5 citations
TL;DR

The paper compares four pretrained transformer models for English and Arabic sentiment analysis on SemEval-17 and ASTD data, and proposes two ensemble architectures that improve over baselines, with majority voting performing best among English results.

ABSTRACT

The rapid advancement of social media enables us to analyze user opinions. In recent times, sentiment analysis has shown a prominent research gap in understanding human sentiment based on the content shared on social media. Although sentiment analysis for commonly spoken languages has advanced significantly, low-resource languages like Arabic continue to get little research due to resource limitations. In this study, we explore sentiment analysis on tweet texts from SemEval-17 and the Arabic Sentiment Tweet dataset. Moreover, We investigated four pretrained language models and proposed two ensemble language models. Our findings include monolingual models exhibiting superior performance and ensemble models outperforming the baseline while the majority voting ensemble outperforms the English language.

Motivation & Objective

  • Advance multilingual sentiment analysis on tweets by leveraging pretrained transformers for English and Arabic.
  • Mitigate language biases by merging English/Arabic datasets and evaluating language-independent ensembles.
  • Develop and assess ensemble architectures to improve sentiment classification across languages.

Proposed method

  • Fine-tune four pretrained language models (ArabicBERTv2, RoBERTa base, multilingual BERT, XLM-RoBERTa base) on English and Arabic data.
  • Propose two ensemble models: (i) fusion of language-specific pooler outputs with a fusion layer and feed-forward network, (ii) add a multi-head attention between fusion and feed-forward.
  • Train with language-specific and merged data using cross-entropy loss and Adam optimizer, various sequence lengths, and epoch settings.
  • Preprocess Tweets by removing symbols/URLs and tokenize with model-specific Byte-Pair Encoding tokenizers.
  • Evaluate using accuracy, weighted precision, weighted recall, and macro F1 to address class imbalance.

Experimental results

Research questions

  • RQ1Can monolingual models outperform multilingual baselines in English and Arabic sentiment analysis?
  • RQ2Do ensemble models provide gains over individual pretrained models, and is majority voting particularly effective?
  • RQ3Does a language-independent ensemble trained on merged English and Arabic data improve cross-language sentiment classification?

Key findings

  • Monolingual AraBERTv02 achieves high Arabic performance, surpassing other Arabic models.
  • Majority Voting Ensemble yields strong English results (best among some settings) and improves over baseline English.
  • Proposed ensemble with feed-forward and language-aware fusion slightly outperforms baselines in certain setups.
  • Ensemble models generally outperform the baseline language models across languages.
  • Macro F1 is an appropriate metric given class imbalance and multi-class setup.

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.