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

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

In the field of Natural Language Processing (NLP), Sentiment Analysis has evolved from simple document-level classification to the more granular Aspect-Based Sentiment Analysis (ABSA). While standard sentiment analysis identifies the overall tone of a review, ABSA seeks to determine the sentiment associated with specific entities—for instance, recognizing that a customer praised the food but criticized the service in a single sentence.

Despite its utility, ABSA faces a significant "multi-aspect challenge." When a sentence contains multiple aspects with conflicting emotions, models often suffer from feature interference, where the sentiment of one aspect incorrectly bleeds into another. Furthermore, high-quality, human-annotated ABSA data is scarce and expensive to produce. To address these hurdles, researchers at COLING 2022 proposed C³DA, a framework that leverages generative data augmentation and contrastive learning to improve model robustness.

The C³DA Framework

The Contrastive Cross-Channel Data Augmentation (C³DA) framework is designed to generate complex, multi-aspect training samples that force the model to learn distinct boundaries between aspects. The process operates in three primary phases: in-domain generation, cross-channel augmentation, and contrastive training.

The C³DA framework overview, showing the cross-channel augmentation and contrastive training pipeline.

1. In-Domain Generator

The engine of the framework is a fine-tuned T5 (encoder-decoder) model. To adapt the generator to specific domains (like restaurant or laptop reviews) without overfitting on small datasets, the authors utilize Parameter-Efficient Fine-Tuning (PEFT) techniques, such as prompt-tuning. This allows the generator to produce contextually relevant text that maintains the "vibe" of the target domain.

2. Cross-Channel Augmentation

This phase represents the core innovation of the framework. It utilizes two distinct channels to transform simple sentences into complex ones:

  • Aspect Augmentation Channel (AAC): Generates new sentences focused on a specific aspect.
  • Polarity Augmentation Channel (PAC): Generates sentences with the opposite sentiment of the original input.

By passing data through these channels in a "cross-channel" manner, the system can synthesize adversarial examples where multiple aspects coexist with different polarities, directly targeting the multi-aspect challenge.

3. Filtering and Contrastive Training

Generative models can occasionally produce ambiguous or noisy outputs. To mitigate this, C³DA employs an Entropy-Minimization Filter (EMF). This filter discards generated sentences if the prediction model is highly uncertain about their sentiment, ensuring only high-quality data enters the training set.

Finally, the framework uses Contrastive Learning via a triplet loss. This objective function encourages the model to cluster embeddings of the same aspect together while pushing apart the embeddings of different aspects within the same sentence, effectively de-noising the interference between conflicting sentiments.

Experimental Results

The framework was evaluated on three standard ABSA benchmarks: Laptop (SemEval 2014), Restaurant (SemEval 2014), and Twitter. C³DA consistently outperformed strong baselines, including BERT and RoBERTa, as well as other state-of-the-art augmentation methods like CBERT.

Performance metrics (Accuracy and F1) on Restaurant and Laptop datasets across varying hyperparameter settings.

Key findings from the study include:

  • Performance Gains: RoBERTa-base saw an average improvement of 1.28% in Accuracy and 1.62% in Macro-F1 across the benchmarks.
  • The Importance of Aspect Diversity: Ablation studies showed that generating diverse aspects (AAC) contributed more to performance than simply varying polarities (PAC), suggesting that aspect-specific context is a major bottleneck for current models.
  • Filtering is Crucial: Without the EMF filter, performance actually degraded, highlighting that generative data augmentation requires strict quality control to be effective.

Conclusion

The C³DA framework demonstrates that generative models, when combined with intelligent filtering and contrastive objectives, can effectively solve the data scarcity and multi-aspect interference problems in ABSA. By creating "corpus-aware" adversarial samples, C³DA provides a more robust training signal than traditional rule-based augmentation methods, paving the way for more accurate fine-grained sentiment analysis in real-world applications.

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