Data Selection Strategies for Multi-Domain Sentiment Analysis

Sebastian Ruder, Parsa Ghaffari, John G. BreslinarXiv 2017

TL;DR

This paper tackles the challenge of selecting the most relevant data from multiple source domains to improve sentiment analysis models on a target domain. They introduce novel data selection strategies, representations, and similarity metrics that outperform existing methods, particularly a new "subset-level" selection approach.

What Problem Does This Paper Address?

Sentiment analysis models often struggle when applied to data from a different domain than they were trained on. This is because the language used to express sentiment can vary significantly across domains (e.g., "sick" can mean good in slang but bad in a medical context). While multi-domain adaptation aims to address this by using data from multiple source domains, many existing methods indiscriminately use all available source data, even if it's dissimilar to the target domain and potentially harmful. The authors argue that selecting the right training data is as crucial as choosing the right algorithm. They aim to develop effective strategies for this data selection process, especially in real-world scenarios where domains might be unknown or ill-defined.

Methods

The paper explores three key components of data selection:

  • Representations: How documents are encoded. They investigate:
  • Term Distributions: Standard bag-of-words approach, capturing word frequencies.
  • Word Embeddings: Using pre-trained GloVe vectors to capture semantic relationships between words.
  • Autoencoder Representations: Using denoising autoencoders to learn domain-invariant representations.
  • Similarity Metrics: How to measure the similarity between a source domain (or its data) and the target domain. They compare:
  • Jensen-Shannon Divergence: A common metric for comparing probability distributions (used with term distributions).
  • Cosine Similarity: Standard for comparing vector representations (used with word embeddings and autoencoders).
  • Proxy $\Delta$ Distance: A novel application of this metric for data selection, where a classifier is trained to distinguish between source and target data to gauge similarity.
  • Data Selection Levels: At what granularity the selection occurs. They propose and evaluate:
  • Domain-Level: Selecting data from the single most similar source domain.
  • Instance-Level: Selecting individual data points (instances) with the highest similarity to the target domain.
  • Subset-Level: A novel approach where random subsets of instances are evaluated for similarity, and the most similar subset is chosen. This aims to balance similarity with diversity.

Datasets

The authors evaluate their methods on two large-scale multi-domain sentiment analysis datasets:

  • Tweets+Reviews: This dataset combines data from various SemEval Twitter Sentiment Analysis tasks and other sources, aiming to emulate the challenges of noisy, potentially ill-defined, and inconsistent domains found on the web.
  • Reviews: This dataset uses a large collection of product reviews from various categories (e.g., apparel, electronics, books), representing a setting with clearly distinct domains.

Key Insights and Ideas

  • Data Selection is Crucial: The paper strongly emphasizes that simply throwing all available data at a multi-domain adaptation problem is suboptimal. Strategic selection of training data can significantly boost performance.
  • Subset-Level Selection is Powerful: The proposed "subset-level" selection strategy consistently outperforms instance-level selection. This suggests that considering groups of examples together, rather than individually, can lead to more robust and diverse training sets.
  • Proxy $\Delta$ Distance is Effective: Applying the proxy $\Delta$ distance as a similarity metric generally improves performance over default metrics, especially for term distributions, helping to mitigate sparsity issues.
  • Domain Similarity Nuances: Word embeddings, while good at capturing semantic similarity, can sometimes be misled by superficial word usage differences, leading to suboptimal domain selection for sentiment analysis. This highlights the need for metrics that capture more than just word co-occurrence.
  • Autoencoders Shine on Large Datasets: Autoencoder representations, particularly when combined with subset-level selection, yield the best results on the large review dataset, suggesting their effectiveness in capturing complex domain relationships when sufficient data is available.

Key Results

  • The proposed data selection strategies consistently outperform strong random and balanced baselines on both datasets.
  • Subset-level selection generally outperforms instance-level selection across various representations and metrics.
  • On the Tweets+Reviews dataset, term-distribution based domain-level selection achieved the best performance.
  • On the Reviews dataset, subset-level selection based on autoencoder representations yielded the best score.
  • The paper provides specific accuracy scores in Tables 3 and 4, showing improvements over baselines, with many results achieving statistical significance. For instance, in Table 3, many subset-level selections achieve accuracies in the high 50s to low 70s, outperforming random baselines in the low 50s.

Limitations and Future Work

  • Dataset Size: The authors note that autoencoder representations might not perform as well on small datasets due to the scarcity of data. They suggest using them on larger datasets.
  • Human Baseline: The human-labeled baseline on the review dataset performed surprisingly poorly, highlighting the difficulty of manual domain similarity assessment and underscoring the need for automatic methods.
  • Future Work: The paper suggests further exploration of domain similarity metrics and representations, particularly for noisy or ill-defined domains. They also propose guidelines for practitioners on how to best approach data selection for sentiment analysis in real-world scenarios.

Summary updated

Abstract

Domain adaptation is important in sentiment analysis as sentiment-indicating words vary between domains. Recently, multi-domain adaptation has become more pervasive, but existing approaches train on all available source domains including dissimilar ones. However, the selection of appropriate training data is as important as the choice of algorithm. We undertake -- to our knowledge for the first time -- an extensive study of domain similarity metrics in the context of sentiment analysis and propose novel representations, metrics, and a new scope for data selection. We evaluate the proposed methods on two large-scale multi-domain adaptation settings on tweets and reviews and demonstrate that they consistently outperform strong random and balanced baselines, while our proposed selection strategy outperforms instance-level selection and yields the best score on a large reviews corpus.
BibTeX
@misc{ruder2017data,
  author = {Sebastian Ruder and Parsa Ghaffari and John G. Breslin},
  title = {{Data Selection Strategies for Multi-Domain Sentiment Analysis}},
  year = {2017},
  eprint = {1702.02426},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.02426},
}
Figure