A Contrastive Cross-Channel Data Augmentation Framework for Aspect-based Sentiment Analysis

Bing Wang, Liang Ding, Qihuang Zhong, Ximing Li, Dacheng Tao

TL;DR

C3DA (Contrastive Cross-Channel Data Augmentation) is a new training framework designed to solve the "multi-aspect challenge" in sentiment analysis. By using a parameter-efficient generative model to create synthetic multi-aspect sentences and a contrastive learning objective to sharpen aspect-specific features, it consistently improves model robustness and performance on low-resource datasets.

What Problem Does This Paper Address?

Aspect-Based Sentiment Analysis (ABSA) is the task of identifying sentiment polarities for specific entities within a sentence. For example, in the review "The food was delicious, but the service was abysmal," a model must correctly assign "Positive" to "food" and "Negative" to "service."

The authors identify two primary hurdles:

  1. The Multi-Aspect Challenge: When a sentence contains multiple aspects with conflicting polarities, the features of one aspect often "bleed" into another, confusing the model.
  2. Data Scarcity: ABSA is a low-resource task. High-quality, human-annotated datasets are small, making it difficult to train robust models that generalize well to complex, multi-aspect sentences.

Existing data augmentation (DA) methods like synonym replacement (EDA) or back-translation often fail because they either inject too much noise or erase the very aspect-specific context the model needs to learn.

Methods

The C3DA framework introduces a multi-stage pipeline to generate high-quality training data and optimize the final classifier:

  • In-Domain Generator: The authors use T5 as a backbone. To prevent overfitting on small ABSA datasets, they employ Parameter-Efficient Fine-Tuning (PEFT) techniques like Prompt-tuning and LoRA. This allows the model to learn the domain's style without "forgetting" its general language knowledge.
  • Cross-Channel Augmentation: Sentences are generated through two specialized channels:
  • Aspect Augmentation Channel (AAC): Generates a sentence conditioned on a specific aspect.
  • Polarity Augmentation Channel (PAC): Generates a sentence conditioned on a specific sentiment polarity. By feeding the output of one channel into the other, the system creates complex synthetic sentences containing multiple aspects with diverse polarities.

  • Entropy-Minimization Filter (EMF): Not all generated sentences are useful. The authors use an entropy-based filter to discard synthetic samples where the model's prediction is highly ambiguous, ensuring only high-certainty data is used for training.

  • Contrastive Training: To further combat aspect interference, the framework uses a Triplet Loss objective. This forces the model to pull the embeddings of the same aspect closer together while pushing embeddings of different aspects in the same sentence further apart.
Figure 1: The overall C3DA framework. In our generator, learnable modules can be optimized in the fine-tuning stage and will also be frozen in the generation stage, and the PLM encoder-decoder structure is always fixed.

Datasets

The framework was evaluated on three standard ABSA benchmarks:

  • Restaurant (SemEval 2014 Task 4)
  • Laptop (SemEval 2014 Task 4)
  • Twitter (Dong et al., 2014)

These datasets are known for their "long-tail" aspect distributions, where a few common aspects (like "food" or "service") dominate the training data.

Key Insights and Ideas

  • PEFT is a Game-Changer for DA: The authors found that full fine-tuning of the T5 generator led to repetitive, overfitted outputs. Using LoRA or Prompt-tuning resulted in much more diverse and useful synthetic samples.
  • Filtering is Crucial: Without the Entropy-Minimization Filter, performance actually degraded by 0.5% - 1.0%. This highlights that in data augmentation, quality often trumps quantity; noisy synthetic data can be more harmful than no data at all.
  • Robustness via Contrast: The significant gains in Macro-F1 (which weights all classes equally) compared to standard Accuracy suggest that C3DA is particularly effective at helping models generalize to rare or difficult multi-aspect cases.

Key Results

C3DA consistently outperformed baseline models (BERT and RoBERTa) and other popular augmentation strategies like EDA, Back-Translation, and CBERT.

  • RoBERTa-based models: Achieved an average improvement of 1.28% in accuracy and 1.62% in Macro-F1.
  • BERT-based models: Saw improvements of over 0.87% in accuracy and 1.10% in Macro-F1.
  • Efficiency: While more complex than simple token-swapping, C3DA only adds about 1.14x to the training time cost, which the authors deem acceptable for the performance gains achieved.

Sensitivity analysis (shown below) demonstrated that the framework is relatively stable across different hyperparameter settings, with optimal performance typically found at a contrastive margin ($\xi$) of 0.3.

Figure 3: Sensitivity Analysis of the number of selected sentences k in EMF.

Limitations and Future Work

  • Long-Tail Aspects: The authors noted that generated sentences still tend to favor frequent aspects (e.g., "food" in the Restaurant dataset). They propose instance-level loss re-weighting as a potential mitigation but suggest more work is needed to balance aspect frequency in synthetic data.
  • Generalization: While highly effective for ABSA, the authors are interested in seeing if this cross-channel generative approach can be adapted to other fine-grained NLU tasks, such as named entity recognition or relation extraction.

Summary updated

BibTeX
@inproceedings{wang2022contrastive,
  author = {Bing Wang and Liang Ding and Qihuang Zhong and Ximing Li and Dacheng Tao},
  title = {{A Contrastive Cross-Channel Data Augmentation Framework for Aspect-based Sentiment Analysis}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=33NPeW_PN3},
}
Figure