Enhanced Aspect-Based Sentiment Analysis Models with Progressive Self-supervised Attention Learning

Jinsong Su, Jialong Tang, Hui Jiang, Ziyao Lu, Yubin Ge, Linfeng Song, Deyi Xiong, Le Sun, Jiebo Luo

Abstract

This paper introduces Progressive Self-supervised Attention Learning (PSSAttention), a novel approach to address a common flaw in sentiment analysis: models often "obsess" over a few high-frequency words while ignoring subtle, infrequent ones that carry critical meaning. By iteratively masking influential words and using them as self-generated supervision, the authors significantly boost the accuracy of state-of-the-art models across multiple benchmarks. This method effectively mitigates the "rich-get-richer" problem in attention mechanisms, uncovering "inapparent patterns" that are often overlooked during standard training.

Introduction: The "Rich-Get-Richer" Problem in ABSA

In Aspect-Based Sentiment Analysis (ABSA), the goal is to determine the sentiment toward a specific "aspect" (e.g., the "screen" of a laptop or the "service" at a restaurant). Most modern models use attention mechanisms to weigh which context words are most important for a prediction.

However, these mechanisms suffer from a "rich-get-richer" problem. High-frequency words with strong polarities (like "great" or "bad") become "apparent patterns" that the model over-learns. Meanwhile, lower-frequency but highly informative words (like "vibrant" or "clunky") are ignored. If a test sentence contains a frequent word used in a misleading way, the model often fails.

Figure 1: Examples of the "rich-get-richer" problem where a model over-associates "huge" with positive sentiment, leading to errors in test cases like "huge disappointment."

As shown in Figure 1, the word "huge" is frequently associated with positive sentiment in training data (e.g., "huge plus"). When the model encounters "huge disappointment" in a test set, it may incorrectly predict a positive sentiment because it has over-learned the apparent pattern of "huge" being positive.

Methodology: Progressive Self-supervised Attention

The authors propose a "progressive" training strategy that forces the model to look deeper into the sentence. The PSSAttention framework is model-agnostic and can be integrated into various architectures, such as Transformation Networks (TNet).

Figure 6: Architectures of TNet and TNet-ATT, examples of models that can be enhanced by the PSSAttention framework.

The process works through several iterative steps:

  1. Iterative Mining: The model performs sentiment prediction on the training set. In each iteration, it identifies the "most influential" context word for every sentence.
  2. Saliency Scoring: To find the most influential word, the authors utilize Partial Gradients. By calculating how much a tiny change in a word's representation affects the final prediction, they obtain a more accurate measure of true influence than standard attention weights.
  3. Categorization:
    • If the model predicts correctly, the influential word is labeled active (useful).
  4. If the model is wrong, the word is labeled misleading (a distractor).
  5. Masking: The identified word is replaced with a <mask token, and the process repeats for $K$ iterations (typically $K=5$). This forces the model to find the next most important word, uncovering the "inapparent patterns."
  6. Soft Attention Regularization: Finally, the model is re-trained using a new loss function that encourages the model to distribute its attention toward the "active" words and away from the "misleading" ones identified during mining.

Experimental Results

The researchers evaluated their approach on three standard ABSA benchmarks: LAPTOP (SemEval 2014), REST (Restaurant reviews), and TWITTER. These datasets are challenging because they contain many instances where sentiment is nuanced.

Key Performance Gains

The PSSAttention-enhanced models consistently outperformed their baselines:

  • Accuracy Boost: On the LAPTOP dataset, the BERT-based model improved from 81.38% to 82.64% accuracy.
  • Macro-F1 Gains: Significant improvements were seen in Macro-F1 scores, particularly on the TWITTER dataset where the BERT model jumped from 75.67 to 76.45.
  • Superiority to Ensembles: The method outperformed traditional "boosting" techniques like AdaBoost, proving that targeted self-supervision is more effective than simply training more models.

Discussion and Conclusion

The core insight of this work is that a model's mistakes are just as useful as its successes. By identifying which words lead a model astray, we can explicitly teach the model to ignore specific distractions. Furthermore, the paper reinforces that partial gradients are a more robust signal for importance than attention weights alone.

While the method increases training time (roughly 6x for BERT-based models due to the $K$ iterations), it does not affect inference speed. Future work may explore extracting phrases rather than single words and applying this progressive masking strategy to other NLP tasks like Machine Translation to overcome frequency bias.

Summary updated

BibTeX
@article{su2021enhanced,
  author = {Jinsong Su and Jialong Tang and Hui Jiang and Ziyao Lu and Yubin Ge and Linfeng Song and Deyi Xiong and Le Sun and Jiebo Luo},
  title = {{Enhanced Aspect-Based Sentiment Analysis Models with Progressive Self-supervised Attention Learning}},
  journal = {Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=vE-ol9pFlAL},
}
Figure