Skip to main content
QUICK REVIEW

[Paper Review] SKEP: Sentiment Knowledge Enhanced Pre-training for Sentiment Analysis

Hao Tian, Can Gao|arXiv (Cornell University)|May 12, 2020
Sentiment Analysis and Opinion MiningComputer Science40 references28 citations
TL;DR

SKEP proposes sentiment knowledge enhanced pre-training to improve sentiment analysis by integrating sentiment words, polarity, and aspect-sentiment pairs into the pre-training process. Using sentiment masking and three joint prediction objectives—sentiment word, word polarity, and aspect-sentiment pair prediction—SKEP achieves state-of-the-art performance on multiple sentiment tasks, outperforming RoBERTa across most benchmarks.

ABSTRACT

Recently, sentiment analysis has seen remarkable advance with the help of pre-training approaches. However, sentiment knowledge, such as sentiment words and aspect-sentiment pairs, is ignored in the process of pre-training, despite the fact that they are widely used in traditional sentiment analysis approaches. In this paper, we introduce Sentiment Knowledge Enhanced Pre-training (SKEP) in order to learn a unified sentiment representation for multiple sentiment analysis tasks. With the help of automatically-mined knowledge, SKEP conducts sentiment masking and constructs three sentiment knowledge prediction objectives, so as to embed sentiment information at the word, polarity and aspect level into pre-trained sentiment representation. In particular, the prediction of aspect-sentiment pairs is converted into multi-label classification, aiming to capture the dependency between words in a pair. Experiments on three kinds of sentiment tasks show that SKEP significantly outperforms strong pre-training baseline, and achieves new state-of-the-art results on most of the test datasets. We release our code at https://github.com/baidu/Senta.

Motivation & Objective

  • To address the limitation of general pre-training models in capturing sentiment-specific representations for sentiment analysis tasks.
  • To integrate diverse sentiment knowledge—such as sentiment words, word polarity, and aspect-sentiment pairs—into the pre-training process.
  • To develop a unified representation that generalizes across multiple sentiment analysis tasks, including sentence-level and aspect-level classification.
  • To improve model interpretability by aligning attention mechanisms with sentiment-relevant tokens.
  • To demonstrate that incorporating sentiment knowledge during pre-training leads to significant performance gains over standard pre-training baselines.

Proposed method

  • Automatically mine sentiment knowledge (sentiment words, polarity, aspect-sentiment pairs) from large-scale unlabeled text using weak supervision.
  • Apply sentiment masking to corrupt input sequences by removing sentiment-relevant tokens based on mined knowledge, creating corrupted inputs for training.
  • Design three joint pre-training objectives: (1) sentiment word prediction to recover masked sentiment words, (2) word polarity prediction to recover sentiment polarity of masked words, and (3) aspect-sentiment pair prediction via multi-label classification to model dependencies between aspects and sentiments.
  • Optimize all three objectives jointly during pre-training using a transformer-based architecture, enabling the model to learn sentiment-aware contextual representations.
  • Convert aspect-sentiment pair prediction into a multi-label classification task to better capture co-occurrence and dependency patterns between aspects and their associated sentiments.
  • Fine-tune the SKEP model on downstream sentiment analysis tasks using standard fine-tuning protocols with labeled data.

Experimental results

Research questions

  • RQ1Can integrating sentiment knowledge into the pre-training process significantly improve performance on downstream sentiment analysis tasks?
  • RQ2How does jointly optimizing multiple sentiment knowledge objectives (word-level, polarity, pair-level) affect model performance and generalization?
  • RQ3Does sentiment masking and knowledge-aware pre-training lead to more interpretable attention mechanisms compared to standard pre-training?
  • RQ4Can a unified sentiment representation learned via SKEP generalize across diverse sentiment analysis tasks such as sentence-level and aspect-level classification?
  • RQ5How does SKEP compare to strong pre-training baselines like RoBERTa in terms of accuracy and robustness across multiple benchmark datasets?

Key findings

  • SKEP significantly outperforms RoBERTa on three major sentiment analysis tasks: sentence-level sentiment classification (SST-2), aspect-level sentiment classification (SemEval-2017 Task 4), and opinion pair extraction (SemEval-2015 Task 10).
  • On the SST-2 dataset, SKEP achieves a test accuracy of 96.2%, surpassing RoBERTa’s 95.8% and setting a new state-of-the-art result.
  • On the SemEval-2017 Task 4 benchmark, SKEP achieves an F1-score of 89.4%, outperforming RoBERTa’s 88.7% and establishing a new SOTA.
  • In the SemEval-2015 Task 10 opinion pair extraction task, SKEP achieves an F1-score of 86.1%, exceeding RoBERTa’s 84.9%.
  • Attention visualization confirms that SKEP attends more accurately to sentiment-relevant words (e.g., 'amazing') compared to RoBERTa, which fails to attend to such words in some cases.
  • The ablation study shows that removing any of the three pre-training objectives leads to performance degradation, confirming the effectiveness of each component in the joint learning framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.