NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transfer Learning for Multiple-Domain Sentiment Analysis - Identifying Domain Dependent/Independent Word Polarity

Yasuhisa Yoshida, Tsutomu Hirao, Tomoharu Iwata, Masaaki Nagata, Yuji MatsumotoAAAI 2011

Abstract

Sentiment analysis is the task of determining the attitude (positive or negative) of documents. While the polarity of words in the documents is informative for this task, the polarity of some words cannot be determined without domain knowledge. Detecting word polarity thus poses a challenge for multiple-domain sentiment analysis. This paper proposes a novel Bayesian probabilistic model to handle multiple source and multiple target domains simultaneously. In this model, each word is associated with three factors: Domain label, domain dependence/independence, and word polarity. We derive an efficient algorithm using Gibbs sampling for inferring the parameters of the model from both labeled and unlabeled texts. Using real-world data, we demonstrate the effectiveness of our model in a document polarity classification task compared with a method not considering the differences between domains. Moreover, our method can identify whether each word's polarity is domain-dependent or domain-independent, allowing for the construction of domain-specific word polarity dictionaries.

Introduction: The Challenge of Contextual Polarity

Sentiment analysis often relies on identifying the "polarity" of individual words—whether they convey a positive or negative sentiment. However, a significant hurdle in this field is that word polarity is frequently context-dependent. For example, the word "unpredictable" might be highly positive in a movie review ("an unpredictable plot") but dangerously negative in a car review ("unpredictable steering").

While traditional "transfer learning" aims to apply knowledge from a source domain (with labeled data) to a target domain (without labels), most existing methods are restricted to a single source and a single target. In practical applications, data often spans dozens of domains. This research introduces a unified framework for multiple-domain sentiment analysis, capable of handling many sources and targets at once by identifying which words possess "universal" sentiment and which are specific to their niche.

Methodology

The authors propose a novel probabilistic generative model inspired by Latent Dirichlet Allocation (LDA). Rather than modeling topics, this model describes the generation of a word based on three distinct latent factors:

  1. Domain Label ($f$): The specific category of the text (e.g., Electronics, Kitchen).
  2. Domain Dependence ($z$): A binary "switch" that determines if the word's sentiment is specific to its domain or universal across all domains.
  3. Word Polarity ($l$): The sentiment of the word (positive, negative, or neutral).
Conceptual framework for domain-dependent and domain-independent word polarity.

Technical Implementation

  • Generative Process: The model assumes a document's overall polarity is determined by the proportion of positive and negative words it contains.
  • Inference: The researchers utilized Collapsed Gibbs Sampling to estimate hidden variables (polarity and domain-dependence) from a combination of labeled source data and unlabeled target data.
  • Transductive Learning: By training on both training (source) and test (target) data simultaneously, the model better captures the specific distribution of the target domains.

Experimental Setup

The model was evaluated using the Multi-Domain Sentiment Dataset (Blitzer et al., 2007), which includes:

  • Scope: 17 different product domains (e.g., Books, DVD, Electronics, Kitchen).
  • Volume: 10,000 documents.
  • Preprocessing: Reviews with 4-5 stars were labeled positive, while 1-2 stars were labeled negative. The researchers focused on adjectives and adverbs, as these parts of speech carry the most significant sentiment weight.

Key Results and Insights

The primary innovation of this model is the indicator variable $z$ (the "switch" mechanism). By allowing the model to decide if a word is domain-dependent, it prevents "noisy" sentiment transfer. It learns that a word like "excellent" is almost always positive, but a word like "long" requires domain context to be interpreted correctly.

Performance was measured using the F-value (the harmonic mean of precision and recall). The proposed model demonstrated several key advantages:

  • Scaling with Sources: As the number of source domains increased from 1 to 14, the F-value consistently improved, significantly outperforming a baseline that ignored domain dependence.
  • Robustness to Target Variety: While performance naturally dips as more target domains are introduced (a common challenge in semi-supervised learning), the proposed model's decline was more stable and benign compared to the baseline.
Performance comparison (F-value) as the number of source and target domains varies.

Qualitative Success

The model successfully identified "great," "excellent," and "bad" as domain-independent. Conversely, it correctly flagged "fast" and "small" as positive in the Electronics domain, while identifying "sturdy" and "stainless" as positive specifically for Kitchen products. This capability allows for the automatic construction of domain-specific sentiment dictionaries.

Conclusion and Future Work

While the model shows strong performance, the authors noted a sensitivity to the volume of unlabeled data in target domains; sparse or noisy data can diminish the benefits of transductive learning. Furthermore, the current document classification logic relies on a simple proportion of polarized words. Future work will explore integrating more sophisticated classifiers, such as Maximum Entropy, and refining the model's robustness against noisy unlabeled data to further enhance accuracy in complex multi-domain environments.

Summary updated

BibTeX
@inproceedings{yoshida2011transfer,
  author = {Yasuhisa Yoshida and Tsutomu Hirao and Tomoharu Iwata and Masaaki Nagata and Yuji Matsumoto},
  title = {{Transfer Learning for Multiple-Domain Sentiment Analysis - Identifying Domain Dependent/Independent Word Polarity}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=SyVR71bubr},
}
Figure