Towards a Universal Sentiment Classifier in Multiple languages

Kui Xu, Xiaojun Wan

Abstract

Researchers from Peking University have developed a "universal" sentiment classifier that uses a single model to analyze text across multiple languages. By learning sentiment-aware multilingual word embeddings and using "pivot languages" to bridge gaps where direct translation data is missing, the system can effectively classify sentiment in resource-poor languages using only labeled English data.

Introduction

Sentiment analysis is a fundamental task in Natural Language Processing (NLP). However, most classifiers are language-specific, requiring significant labeled data for each new language. Cross-Language Sentiment Classification (CLSC) attempts to mitigate this by transferring knowledge from a resource-rich source language (typically English) to a target language. Traditional CLSC methods are limited by their reliance on direct parallel corpora (translations) between the source and target. This paper addresses these limitations by proposing a framework for learning multilingual sentiment-aware word embeddings and a "Universal Multilingual Model" (UMM) that functions across multiple languages simultaneously.

Methodology

The authors propose mapping words from different languages into a unified vector space where sentiment information is explicitly preserved.

Sentiment-Aware Embeddings

Unlike standard embeddings that focus on semantic similarity, these embeddings are trained with a logistic regression loss on labeled English reviews. This ensures that words with similar sentiment (e.g., "excellent" and "superb") are clustered together, regardless of language.

Visualization of sentiment-aware multilingual word embeddings showing clusters of positive and negative terms across languages.

Pivot-Driven and Universal Models

To handle languages without direct parallel data, the Pivot-Driven Model (PDBM) utilizes a third "pivot" language. Sentiment information is transferred transitively: $Source \to Pivot \to Target$. The Universal Multilingual Model (UMM) further generalizes this by training on all available parallel corpora at once, using a joint objective function to align multiple languages into a single sentiment-aware space.

Experimental Setup

The models were evaluated on five languages: English (en), German (de), French (fr), Japanese (jp), and Chinese (zh).

  • Sentiment Data: Multilingual Amazon Review Dataset (en, de, fr, jp) and NLPCC 2013 (zh), covering Books, DVD, and Music domains.
  • Parallel Data: Unlabeled corpora from Europarl v7 and the United Nations Parallel Corpus v1.0, along with specific news and Wikipedia corpora for Asian languages.

Results

The UMM achieved competitive accuracy, often reaching the high 70s and low 80s, outperforming several state-of-the-art bilingual baselines.

Performance comparison of UMM and PDBM against baselines across German (DE), French (FR), and Japanese (JP) domains.

A key finding was the success of the pivot approach. In the Japanese "Book" domain, the PDBM (71.59%) outperformed the direct bilingual model (70.93%). This confirms that sentiment information can effectively "hop" through intermediate languages, reducing the dependency on direct translation pairs.

Discussion and Future Work

The study demonstrates that a single, universal model can effectively handle sentiment analysis across a diverse set of languages. The alignment of the embedding space appears to be more critical than the complexity of the final classifier, which in this case was a simple average of word vectors.

Future research directions include:

  • Structural Modeling: Moving beyond Bag-of-Words representations to incorporate syntax via CNNs or RNNs.
  • Alignment Precision: Reducing reliance on word-level alignment tools to minimize error propagation.
  • Broader Scaling: Testing the framework on a wider array of truly low-resource languages.

Summary updated

BibTeX
@inproceedings{xu2017towards,
  author = {Kui Xu and Xiaojun Wan},
  title = {{Towards a Universal Sentiment Classifier in Multiple languages}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1053},
}
Figure