An Empirical Study of Sentiment-Enhanced Pre-Training for Aspect-Based Sentiment Analysis

Yice Zhang, Yifan Yang, Bin Liang, Shiwei Chen, Bing Qin, Ruifeng Xu

Introduction

Aspect-Based Sentiment Analysis (ABSA) represents a granular approach to sentiment analysis, identifying specific aspects (e.g., "the crust"), associated opinions ("is thin and crispy"), and their polarities (Positive). While general-purpose models like BERT have set high benchmarks, they lack inherent "sentiment awareness." Sentiment-Enhanced Pre-Training (SPT) aims to bridge this gap by injecting sentiment knowledge during initial training. However, the lack of standardized datasets and integration methods has historically hindered clear comparisons. This study provides a comprehensive evaluation of SPT techniques, introducing a novel semi-supervised knowledge-mining method and training on a massive 140-million review corpus.

Methodology

The proposed approach rests on three pillars: semi-supervised knowledge mining, novel masking strategies, and multi-task integration.

Semi-Supervised Knowledge Mining

To address the lack of word-level labels in large corpora, an Expectation-Maximization (EM) algorithm was developed. Using a small seed lexicon and syntactic rules, it iteratively mines aspect and sentiment words from 140 million raw reviews, learning domain-specific syntactic patterns more robustly than simple dictionary matching.

Novel Masking Strategies

Beyond standard sentiment word masking, the authors introduced mask-context-geo. This strategy prioritizes masking words in the immediate vicinity of an aspect term, forcing the model to capture the descriptive context that actually carries the sentiment.

Comparison of masking strategies, highlighting the mask-context-geo approach which focuses on words near aspect terms.

Multi-Task Integration

Knowledge is injected via two primary methods:

  1. Knowledge-Guided Masking: Prioritizing sentiment-dense tokens for the standard Masked Language Modeling (MLM) task.
  2. Knowledge Supervision: Utilizing auxiliary heads to predict review ratings, word polarity, or part-of-speech (POS) tags.

Experimental Setup

The model was pre-trained on a corpus of 140 million user reviews from Yelp and Amazon across 28 domains. Evaluation spanned several benchmarks, including Restaurant-14 and Laptop-14 for basic ABSA, and more advanced tasks like Aspect Sentiment Triplet Extraction (ASTE) and MAMS (multi-aspect multi-sentiment sentences).

Results and Discussion

The optimized SPT model consistently outperformed standard BERT and previous state-of-the-art SPT models like SKEP and SentiLARE.

Key Performance Gains

  • Overall: An average improvement of 3.25% over BERT across multiple benchmarks.
  • Cross-Domain: Superior transferability, with F1 scores significantly higher than BERT (e.g., 45.61 vs 38.99).
  • Triplet Extraction: Improved F1 scores by up to 3.93% on the complex ASTE task.

Data Efficiency

A standout finding is the model's extreme data efficiency. The SPT model trained on only 40% of downstream data matches the performance of a standard BERT model using 100% of the data, making it a vital tool for low-resource scenarios.

Performance comparison on Aspect Extraction (AE) and Aspect Sentiment Classification (ASC) tasks, demonstrating the superior data efficiency of SPT over BERT.

Insights

  • Contextual Importance: Masking the context around aspect words is more effective than masking the words themselves, emphasizing the importance of descriptive sentiment.
  • Syntactic Synergy: Injecting non-sentiment linguistic knowledge, specifically POS tags, significantly boosts aspect extraction performance. The "sweet spot" for pre-training involves a combination of aspect words, review ratings, and syntax.

Conclusion and Future Work

While SPT offers substantial gains, challenges remain in multi-aspect scenarios where different aspects in a single sentence have conflicting polarities (e.g., "great food but slow service"). Future research will focus on improving performance in these complex cases and refining domain adaptation for varied opinion expressions.

Summary updated

BibTeX
@inproceedings{zhang2023empirical,
  author = {Yice Zhang and Yifan Yang and Bin Liang and Shiwei Chen and Bing Qin and Ruifeng Xu},
  title = {{An Empirical Study of Sentiment-Enhanced Pre-Training for Aspect-Based Sentiment Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.612},
}
Figure