A Multi-sentiment-resource Enhanced Attention Network for Sentiment Classification

Zeyang Lei, Yujiu Yang, Min Yang, Yi Liu

Abstract

The Multi-sentiment-resource Enhanced Attention Network (MEAN) bridges the gap between traditional linguistic knowledge and modern deep learning. By integrating sentiment lexicons, negation words, and intensity words into a multi-path attention mechanism, the model achieves state-of-the-art accuracy on sentiment classification tasks. This work demonstrates that linguistic resources remain vital for capturing nuances like negation and intensity in the age of neural networks.

Introduction

While deep learning models such as Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks have revolutionized sentiment analysis, they often treat text as a raw sequence of tokens. This approach largely ignores the rich linguistic resources developed over decades. Specifically, standard neural models frequently struggle to explicitly handle negation (e.g., "not," "never"), intensity (e.g., "extremely," "slightly"), and established sentiment lexicons. The authors argue that these resources are underutilized in modern architectures, leading to models that miss the subtle differences between phrases like "not very good" and "good."

Methodology

The proposed MEAN architecture consists of three primary stages designed to integrate linguistic knowledge into the learning process:

  1. Coupled Word Embedding: To capture morphological cues—such as the prefix "un-" in "unhappy"—the model combines standard word vectors (e.g., GloVe) with a Character-level CNN. This provides a robust representation for rare or misspelled words.
  2. Multi-path Attention Module: This core innovation calculates three separate correlation matrices by comparing context words against three external resources: a sentiment lexicon, a list of negation words, and a list of intensity words. This forces the model to attend to distinct linguistic subspaces, such as emotional triggers versus negators.
  3. Diversity Penalization: To ensure the three attention paths learn non-redundant information, a penalty term is added to the loss function. This encourages the model to extract unique features from each linguistic resource.

Experimental Setup

The model was evaluated on two gold-standard benchmarks:

  • Movie Review (MR): 10,662 movie reviews labeled as positive or negative.
  • Stanford Sentiment Treebank (SST): A complex dataset with fine-grained labels ranging from Very Negative to Very Positive.

The study utilized a sentiment lexicon of 10,899 words alongside manually curated lists for negation and intensity words.

Results and Analysis

MEAN consistently outperformed strong baselines, including standard LSTMs, CNNs, and "linguistically regularized" models. On the MR dataset, MEAN achieved 84.5% accuracy, a 2.4% improvement over the previous state-of-the-art (LR-Bi-LSTM). On the SST dataset, it reached 51.4% accuracy, outperforming all competitors.

Table 1: Performance comparison of MEAN against baseline models and ablation variants on the MR and SST datasets.

Ablation studies revealed that sentiment words were the most critical resource; their removal caused the sharpest drop in performance. However, the highest accuracy was only achieved when all three resources (sentiment, negation, and intensity) were utilized together.

Discussion

The success of MEAN highlights several key insights:

  • Linguistic Knowledge as an "Attention Anchor": Using lexicons as queries for attention allows the model to dynamically weigh how specific words like "not" or "very" affect the surrounding context.
  • Morphological Importance: The inclusion of character-level embeddings (Char-CNN) provided a noticeable boost, confirming that sub-word information is essential for handling the informal language common in reviews.
  • The Power of Diversity: The diversity penalty prevents the multi-path system from collapsing into a single path, ensuring specialized focus for the negation-aware components.

Conclusion

The Multi-sentiment-resource Enhanced Attention Network (MEAN) demonstrates that integrating traditional linguistic knowledge into deep learning architectures significantly improves sentiment classification. Future work may involve developing dynamic lexicons that adapt to specific domains and extending the architecture to document-level analysis.

Summary updated

BibTeX
@inproceedings{lei2018multi,
  author = {Zeyang Lei and Yujiu Yang and Min Yang and Yi Liu},
  title = {{A Multi-sentiment-resource Enhanced Attention Network for Sentiment Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-2120},
}
Figure