Unified Feature and Instance Based Domain Adaptation for Aspect-Based Sentiment Analysis

Chenggong Gong, Jianfei Yu, Rui XiaEMNLP 2020

Introduction

Aspect-Based Sentiment Analysis (ABSA) represents a sophisticated evolution of traditional sentiment analysis. Rather than assigning a single sentiment score to an entire document, ABSA identifies specific targets—such as "battery life" in a laptop review or "wait staff" in a restaurant review—and determines the sentiment associated with each. While highly effective, these models face a significant bottleneck: they require vast amounts of hand-labeled data.

Furthermore, ABSA models often struggle with "domain shift." A model trained on restaurant reviews may fail when applied to electronics because the vocabulary changes significantly; for example, the word "delicious" is a strong positive indicator for food but is irrelevant for a hard drive. To address this, researchers have developed the Unified Domain Adaptation (UDA) framework, which bridges the gap between disparate domains by combining feature-based learning with instance-based weighting.

The Unified Domain Adaptation (UDA) Framework

The UDA framework addresses domain shift by simultaneously tackling linguistic structure and word-level importance. Unlike previous methods that focused solely on feature representations, UDA integrates two distinct adaptation strategies into a single BERT-based pipeline.

1. Feature-Based Adaptation

This component focuses on the "grammar bridge." While nouns and adjectives change between domains, the underlying linguistic structures—such as Part-of-Speech (POS) tags and dependency relations—remain relatively stable. The framework employs two self-supervised auxiliary tasks to force the BERT encoder to learn domain-invariant features:

  • Masked POS Tag Prediction: The model predicts the grammatical category of hidden words.
  • Dependency Relation Prediction: The model predicts syntactic relationships between words (e.g., identifying which adjective modifies which noun).

2. Instance-Based Adaptation

Not every word in a source-domain sentence is equally relevant to the target domain. UDA utilizes a domain classifier to determine if a word appears more "source-like" or "target-like." By calculating weights at the word level, the model prioritizes training examples that align closely with the target domain's characteristics. This granular approach is particularly effective for ABSA, where a single sentence may contain both domain-general sentiment words and domain-specific aspect terms.

The UDA framework integrates (a) feature-based adaptation via syntactic auxiliary tasks and (b) instance-based adaptation using a domain classifier for word-level weighting.

Experimental Methodology

The researchers evaluated the UDA framework using four benchmark datasets: Laptop (L), Restaurant (R), Device (D), and Service (S). To ensure robustness, the model was tested across 10 different source-to-target pairs (e.g., training on Restaurant data and testing on Laptop data). The study compared the proposed BERTE-UDA model against several competitive baselines, including RNSCN and AD-SAL, as well as vanilla BERT configurations.

Results and Discussion

The UDA framework demonstrated a significant performance leap over existing state-of-the-art methods. In end-to-end ABSA tasks, the BERTE-UDA model achieved an average Micro-F1 score of 40.63%, representing a 6.92% improvement over the previous best non-BERT method (AD-SAL).

Experimental results for end-to-end ABSA across 10 source-target pairs, showing that the BERTE-UDA model consistently outperforms baselines and vanilla BERT variants.

Ablation studies confirmed that both the feature-based and instance-based components are vital; removing either led to a measurable decline in performance. The results suggest that while pre-trained models like BERT provide a strong foundation, domain-specific fine-tuning through structural and instance-level adaptation is essential for high-accuracy cross-domain transfer.

Conclusion and Future Work

The UDA framework successfully leverages syntax as a universal language and word-level weighting to overcome domain boundaries in sentiment analysis. However, challenges remain in Aspect Extraction (AE), where the lack of vocabulary overlap between domains (e.g., "menu" vs. "graphics card") makes identifying targets difficult. Future research may explore mapping disparate vocabularies or utilizing external knowledge bases to better understand the functional roles of domain-specific terms.

Summary updated

BibTeX
@inproceedings{gong2020unified,
  author = {Chenggong Gong and Jianfei Yu and Rui Xia},
  title = {{Unified Feature and Instance Based Domain Adaptation for Aspect-Based Sentiment Analysis}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.572},
}
Figure