Skip to main content
QUICK REVIEW

[Paper Review] Domain Adaptation for Sentiment Analysis Using Increased Intraclass Separation

Mohammad Rostami, Aram Galstyan|arXiv (Cornell University)|Jul 4, 2021
Sentiment Analysis and Opinion MiningComputer Science5 citations
TL;DR

This paper proposes a novel domain adaptation method for cross-domain sentiment analysis that enhances model generalization by increasing intraclass margins in the source domain using a Gaussian Mixture Model (GMM) to induce large margins between sentiment classes. By aligning both source and target domain distributions to this GMM-estimated distribution in a shared embedding space, the method reduces domain shift and achieves state-of-the-art performance on benchmark datasets, with robustness to label imbalance.

ABSTRACT

Sentiment analysis is a costly yet necessary task for enterprises to study the opinions of their customers to improve their products and to determine optimal marketing strategies. Due to the existence of a wide range of domains across different products and services, cross-domain sentiment analysis methods have received significant attention. These methods mitigate the domain gap between different applications by training cross-domain generalizable classifiers which help to relax the need for data annotation for each domain. Most existing methods focus on learning domain-agnostic representations that are invariant with respect to both the source and the target domains. As a result, a classifier that is trained using the source domain annotated data would generalize well in a related target domain. We introduce a new domain adaptation method which induces large margins between different classes in an embedding space. This embedding space is trained to be domain-agnostic by matching the data distributions across the domains. Large intraclass margins in the source domain help to reduce the effect of "domain shift" on the classifier performance in the target domain. Theoretical and empirical analysis are provided to demonstrate that the proposed method is effective.

Motivation & Objective

  • To address the domain gap in cross-domain sentiment analysis, where sentiment expressions vary significantly across domains like books, electronics, and food.
  • To improve model generalization in low-resource target domains by reducing the impact of domain shift without requiring extensive labeled data.
  • To develop a method that enhances classifier robustness by increasing inter-class and intra-class margins in the source domain embedding space.
  • To provide theoretical justification for minimizing an upper bound on target domain error through distribution alignment and margin maximization.
  • To evaluate robustness to label imbalance in target domains, a common real-world challenge in sentiment analysis.

Proposed method

  • The method learns a parametric Gaussian Mixture Model (GMM) from confident predictions on the source domain to model class-specific distributions.
  • It uses the GMM to define a target distribution that both source and target embeddings are aligned toward, ensuring domain-agnostic representations.
  • The model employs sliced Wasserstein distance (SWD) to align the source and target domain distributions with the GMM distribution in the embedding space.
  • A confidence threshold τ is applied to select high-confidence source samples for GMM estimation, ensuring robustness and margin maximization.
  • The training objective combines domain alignment via SWD and margin maximization through the GMM, minimizing an upper bound on target error.
  • The framework is trained end-to-end using a shared deep encoder and a classifier head, with domain alignment enforced during feature learning.

Experimental results

Research questions

  • RQ1Can increasing intraclass margins in the source domain improve cross-domain sentiment classification performance?
  • RQ2Does aligning both source and target domains to a GMM-estimated distribution reduce domain shift and improve generalization?
  • RQ3How does the proposed method perform under label imbalance in the target domain, a common real-world scenario?
  • RQ4Is the performance gain due to margin maximization or domain alignment alone, and what is the relative contribution of each?
  • RQ5How sensitive is the method to the confidence threshold τ used in selecting samples for GMM estimation?

Key findings

  • The proposed method outperforms state-of-the-art cross-domain sentiment analysis methods across multiple domain transfer tasks, including B→D, B→E, D→K, and E→K.
  • On the Amazon dataset, the method achieves 86.8% accuracy for the D→K transfer task under balanced conditions, surpassing prior methods.
  • Even under severe label imbalance (90/10), the method maintains strong performance, with 86.8% accuracy on the D→K task, demonstrating robustness.
  • Abllation studies show that the margin-inducing mechanism contributes significantly to performance, as the AO (alignment-only) baseline underperforms by 2–3% on average.
  • The confidence threshold τ has a clear impact on performance, with optimal results achieved at τ ≥ 0.8, where performance stabilizes and variance decreases.
  • UMAP visualizations confirm that the method effectively aligns source and target distributions in the embedding space, even in imbalanced settings.

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.