Cross-Domain Data Augmentation with Domain-Adaptive Language Modeling for Aspect-Based Sentiment Analysis

Jianfei Yu, Qiankun Zhao, Rui XiaACL 2023

Abstract

Aspect-Based Sentiment Analysis (ABSA) requires fine-grained annotations that are costly to obtain for new domains. Existing Cross-Domain Data Augmentation (CDDA) methods often rely on word-swapping templates that preserve source-domain syntax and lack fluency. We present DA$^2$LM (Domain-Adaptive Language Modeling), a framework that unifies token generation and sequence labeling into a single autoregressive model. By training on a mix of labeled source data and pseudo-labeled target data, DA$^2$LM generates high-quality, diverse training samples that closely match the target domain distribution, achieving state-of-the-art results across multiple benchmarks.

Introduction

Aspect-Based Sentiment Analysis (ABSA) is a fine-grained task that identifies specific aspects (e.g., "the screen") and the sentiment directed at them (e.g., "is blurry" $\rightarrow$ Negative). The primary bottleneck for deploying ABSA in new domains is the lack of human-annotated labels.

Previous Cross-Domain Data Augmentation (CDDA) methods attempted to bridge this gap by taking source-domain sentences and swapping out words (e.g., replacing "pizza" with "laptop"). However, these methods often preserve source-specific syntax, lack semantic fluency, and are limited by the templates of the source data. This "source-domain baggage" prevents models from truly learning the linguistic nuances of the target domain.

The DA$^2$LM Framework

DA$^2$LM addresses these issues by moving away from "mask-and-replace" templates toward a fully generative approach. The framework treats data generation and sequence labeling as a joint autoregressive task, allowing the model to learn a domain-invariant way to express sentiment.

Comparison of DA$^2$LM with previous cross-domain data augmentation methods like MLM and Seq2Seq.

The process occurs in three distinct stages:

  1. Domain-Adaptive Pseudo Labeling: A base model is trained on source data. To align the feature distributions of the source and target domains, the authors use Maximum Mean Discrepancy (MMD) at the aspect level, ensuring the initial pseudo-labels for the target data are as accurate as possible.
  2. Domain-Adaptive Language Modeling (DALM): A decoder-based language model (such as GPT-2) is trained on a combination of labeled source data and pseudo-labeled target data. The model is trained to simultaneously predict the next word and the label for the current word at every time step.
  3. Target-Domain Data Generation: Once trained, the DALM is prompted with a [target] domain token to generate brand-new sentences and their corresponding labels word-by-word. A final filtering step removes sentences with illogical labels or those that conflict with the base model's predictions.

Experimental Evaluation

The framework was evaluated on four standard ABSA benchmarks: Laptop (L), Restaurant (R), Device (D), and Service (S). The authors tested 10 different cross-domain pairs to ensure robustness across varied linguistic styles.

Key Results

  • Performance: DA$^2$LM outperformed the previous state-of-the-art (GCDDA) by an average of 1.86% in F1 score for the ABSA task and 0.90% for Aspect Extraction.
  • Data Quality: Qualitative analysis showed that DA$^2$LM produced data with lower perplexity (higher fluency) and greater diversity of aspect terms compared to template-based methods.
  • Distributional Alignment: t-SNE visualizations demonstrate that the data generated by DA$^2$LM almost perfectly overlaps with the real target-domain data, whereas previous methods remained clustered near the source-domain distribution.
t-SNE visualizations showing how DA$^2$LM (right) achieves superior distributional alignment with target data compared to previous methods.

Conclusion and Future Work

DA$^2$LM provides a robust solution for cross-domain ABSA by breaking away from rigid templates and leveraging the power of autoregressive language models. While highly effective, the model's vocabulary is still largely bounded by the initial training sets. Future work will explore extending this framework to more complex tasks, such as Aspect Sentiment Triplet Extraction (ASTE), which requires identifying aspects, sentiments, and specific opinion spans simultaneously.

Summary updated

BibTeX
@inproceedings{yu2023cross,
  author = {Jianfei Yu and Qiankun Zhao and Rui Xia},
  title = {{Cross-Domain Data Augmentation with Domain-Adaptive Language Modeling for Aspect-Based Sentiment Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.81},
}
Figure