Generative Cross-Domain Data Augmentation for Aspect and Opinion Co-Extraction

Junjie Li, Jianfei Yu, Rui XiaNAACL 2022

Abstract

Aspect and Opinion Co-Extraction (AOCE) is a fundamental task in opinion mining that suffers from poor cross-domain generalization due to vocabulary shifts. This paper presents Generative Cross-Domain Data Augmentation (GCDDA), a framework leveraging the BART model to synthesize high-quality training data for target domains. By masking domain-specific terms and training a sequence-to-sequence model to jointly predict text and labels, GCDDA effectively bridges the gap between source and target domains. Experimental results across multiple benchmarks demonstrate that GCDDA significantly outperforms existing state-of-the-art methods in low-resource cross-domain scenarios.

Introduction

In opinion mining, Aspect and Opinion Co-Extraction (AOCE) involves identifying the aspect (e.g., "battery life") and the corresponding opinion (e.g., "short") within a review. While deep learning models achieve high performance when abundant labeled data is available, they struggle to generalize across domains. For instance, a model trained on restaurant reviews ("the sushi was fresh") often fails on electronics reviews ("the screen is bright") because the vocabulary and syntactic patterns differ significantly.

Manual labeling for every new domain is prohibitively expensive. Existing unsupervised domain adaptation methods often rely on rigid rules or shared feature spaces that ignore domain-specific nuances. Previous data augmentation attempts, such as simple word substitution, fail to capture the unique linguistic style of the target domain.

Methodology: The GCDDA Framework

The authors propose a generative approach using BART, a sequence-to-sequence model, to "translate" labeled source domain sentences into the target domain. The workflow consists of several key stages:

  1. Pseudo-Labeling: A base model trained on the source domain generates initial "best guess" labels for unlabeled target domain data.
  2. Domain-Specific Masking: N-grams that appear with significantly higher frequency in one domain are identified as "domain-specific" and masked in both source and target sentences, leaving a "domain-invariant" skeleton.
  3. Generative Training: BART is trained to reconstruct the original sentence and predict BIO (Beginning, Inside, Outside) labels simultaneously from these masked skeletons. Domain prompts ([source] or [target]) guide the model's stylistic output.
  4. Cross-Domain Generation: During inference, labeled source sentences are masked and processed by BART with a [target] prompt. The model fills the masks with relevant target-domain terms while maintaining label consistency.
  5. Post-Processing: Generated sentences are filtered to ensure they adhere to labeling schemas and align with base classifier predictions.
Overview of the GCDDA framework using BART for cross-domain data augmentation.

Experimental Setup

The framework was evaluated on three benchmark datasets:

  • Restaurant (R): Compiled from SemEval 2014 and 2015.
  • Laptop (L): Compiled from SemEval 2014 and 2015.
  • Device (D): Reviews of digital devices like cameras and phones.

Performance was tested across six cross-domain pairs (e.g., R → L, L → D) to assess the model's robustness in various transfer scenarios.

Results and Discussion

GCDDA consistently outperformed all baselines, including rule-based, feature-based, and previous augmentation methods.

Performance comparison of GCDDA against state-of-the-art models across six cross-domain pairs.

Key Findings

  • Joint Prediction: Forcing BART to predict labels and text simultaneously ensures that generated aspect/opinion terms match their corresponding tags.
  • Stylistic Adaptation: Unlike simple substitution, GCDDA allows the model to rewrite sentence structures to match target-domain linguistic patterns.
  • Skeleton Learning: Masking domain-specific features forces the model to learn the underlying "opinion-bearing" structure of sentences, which is often consistent across domains.
  • Data Diversity: By using different random seeds for masking, multiple unique target-domain sentences can be generated from a single source sentence, effectively multiplying the training data.

Qualitative analysis showed that GCDDA generates fluent and diverse sentences, occasionally "hallucinating" valid target-domain terms not present in the original training sets. Statistical analysis using Maximum Mean Discrepancy (MMD) confirmed that GCDDA-generated data is significantly closer to the real target domain distribution than other augmentation methods.

Conclusion and Future Work

While GCDDA shows substantial improvements, particularly in aspect extraction, the gains in opinion extraction were more modest. This is likely because opinion words (e.g., "excellent," "poor") are more consistent across domains than aspect terms. Additionally, the method's reliance on initial pseudo-labels introduces potential noise, though post-processing helps mitigate this. Future work could extend this generative framework to more complex tasks like Aspect-Based Sentiment Analysis (ABSA), where sentiment polarity must also be extracted.

Summary updated

BibTeX
@inproceedings{li2022generative,
  author = {Junjie Li and Jianfei Yu and Rui Xia},
  title = {{Generative Cross-Domain Data Augmentation for Aspect and Opinion Co-Extraction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.312},
}
Figure