Topic Driven Adaptive Network for cross-domain sentiment classification

Yicheng Zhu, Yiqiao Qiu, Qingyuan Wu, Fu Lee Wang, Yanghui Rao

TL;DR

This paper introduces the Topic Driven Adaptive Network (TDAN) for cross-domain sentiment classification, a novel approach that leverages topic modeling to extract domain-specific words. By considering both sentiment-bearing "non-pivots" and background domain-specific words, TDAN achieves improved performance over existing methods.

What Problem Does This Paper Address?

Sentiment classification, while powerful, typically requires large amounts of labeled data. Cross-domain sentiment classification aims to alleviate this by training a model on a data-rich "source" domain and applying it to a data-scarce "target" domain. A key challenge in this area is effectively bridging the gap between the different data distributions of these domains. Existing methods often focus on learning "domain-invariant" features, mapping data into a common space. However, these approaches often underutilize valuable domain-specific information, focusing on only a subset of such words. This paper addresses the limitation of not fully leveraging domain-specific information, particularly by considering both sentiment-carrying words and background words that provide contextual clues.

Methods

The core of this work is the Topic Driven Adaptive Network (TDAN). TDAN comprises two main components:

  • Domain-Specific Word Extraction: This novel step uses Latent Dirichlet Allocation (LDA), a topic modeling technique, to identify domain-specific words. LDA helps to soft-cluster words, allowing for the separation of different meanings of polysemous words and thus better identification of domain-specific terms. The method distinguishes between domain-shared words (pivots) and domain-specific words (non-pivots and background words).
  • Topic Driven Adaptive Network (TDAN): This network is built upon Transformer architectures and incorporates two sub-networks:
  • Semantics Attention Network (SAN): This network processes the original document input using a Transformer encoder and an MLP-attention layer to capture general semantic information.
  • Domain-Specific Word Attention Network (DSPWAN): This network specifically processes the extracted domain-specific words using a Transformer encoder and an MLP-attention layer. Crucially, DSPWAN does not use positional embeddings, as domain-specific words are treated as an unordered set.
  • Interactive Connection: SAN and DSPWAN are interactively connected. Information from DSPWAN helps SAN focus on relevant aspects, while information from SAN guides DSPWAN in better extracting meaning from domain-specific words.
  • Domain Adaptation: The fused feature vectors from SAN and DSPWAN are then fed into a domain classifier that uses an adversarial method (Gradient Reversal Layer) to learn domain-invariant representations, ensuring the model generalizes well to the target domain.

Datasets

The proposed TDAN model was evaluated on two benchmark datasets:

  • Amazon Reviews Dataset: This dataset consists of reviews from four domains: Books (B), DVD (D), Electronics (E), and Kitchen appliances (K). Each domain has 6000 reviews (3000 positive, 3000 negative).
  • Yelp Reviews Dataset: This dataset contains a large number of restaurant reviews. For experiments, 3000 positive and 3000 negative reviews were sampled to match the size of the Amazon domains.

The authors constructed twenty cross-domain tasks by pairing source and target domains from these datasets.

Key Insights and Ideas

  • Topic Models for Domain-Specific Word Extraction: Using topic models like LDA is a more effective way to identify domain-specific words compared to previous methods based on word co-occurrence or mutual information. This is because topic models can better handle polysemous words and capture nuanced semantic relationships.
  • Leveraging Both Types of Domain-Specific Words: The paper highlights the importance of utilizing both sentiment-bearing non-pivots and background domain-specific words. Background words, while not directly expressing sentiment, provide crucial context that helps the model understand which aspects of the document are important for sentiment classification.
  • Interactive Attention Networks: The synergistic interaction between the semantics attention network and the domain-specific word attention network significantly boosts performance, demonstrating the benefit of cross-information flow between specialized sub-networks.
  • Transformer Architecture's Efficacy: The use of Transformer-based sub-networks for both semantic and domain-specific word processing proves effective in capturing complex linguistic patterns.

Key Results

  • State-of-the-Art Performance: TDAN consistently outperformed several strong baselines, including SCL, SFA, DANN, HATN, IATN, ACAN, and TPT, on both the Amazon reviews dataset and cross-dataset experiments.
  • Significant Improvements: For instance, on the Amazon reviews dataset, TDAN achieved an average accuracy of 0.861, outperforming DANN by 4.9% and HATN by 0.7%.
  • Efficiency: Compared to BERT-DAAT, a pre-training language model-based approach, TDAN offers significantly faster training times and requires less computational resources.
  • Ablation Studies: Variants of TDAN (TDAN- and TDAN f) showed that the full TDAN model, incorporating interactive connections and both types of domain-specific words, yielded the best results.

Limitations and Future Work

  • Topic Model Influence: While the authors experimented with different topic models (LDA, prodLDA), they found that the choice of topic model had little influence on classification accuracy. However, the paper doesn't deeply explore the interpretability of different topic models in this context.
  • Computational Cost: While more efficient than BERT-based methods, TDAN still relies on Transformer architectures, which can be computationally intensive.
  • Future Work: The paper suggests that further exploration of domain-specific word extraction methods and more sophisticated interactive mechanisms could lead to even greater improvements. The potential of topic models for discovering interpretable subspaces in cross-domain sentiment classification is also highlighted as a promising avenue.

Summary updated

BibTeX
@article{zhu2023topic,
  author = {Yicheng Zhu and Yiqiao Qiu and Qingyuan Wu and Fu Lee Wang and Yanghui Rao},
  title = {{Topic Driven Adaptive Network for cross-domain sentiment classification}},
  journal = {Information Processing \& Management},
  year = {2023},
  doi = {10.1016/j.ipm.2022.103230},
}
Figure