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

Zeyang Lei, Yujiu Yang, Min Yang, Yi Liu

TL;DR

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 in sentiment classification on standard benchmarks.

What Problem Does This Paper Address?

While deep learning models like CNNs and LSTMs have revolutionized Natural Language Processing (NLP), they often treat text as a sequence of tokens without fully exploiting the "rules" of language that humans use to determine sentiment.

Traditional sentiment analysis relied heavily on linguistic resources:

  • Sentiment Lexicons: Lists of words with known polarities (e.g., "excellent" is positive).
  • Negation Words: Words that flip sentiment (e.g., "not," "never").
  • Intensity Words: Words that amplify or dampen sentiment (e.g., "very," "slightly").

Modern neural networks often struggle to capture the nuances of how these words interact—for example, how "not" completely changes the meaning of "good." The authors argue that these linguistic resources are underutilized in current deep learning architectures, leading to missed opportunities for more robust sentiment prediction.

Methods

The MEAN model introduces a sophisticated architecture designed to ingest these linguistic resources directly into the learning process. The framework consists of three main stages:

  1. Coupled Word Embedding: To capture both broad meaning and fine-grained structure, the model combines standard word-level embeddings (GloVe) with character-level embeddings generated by a Char-CNN. This helps the model understand morphological cues, such as the prefix "un-" in "unhappy."
  2. Multi-sentiment-resource Attention Module: This is the core innovation. Instead of a single attention mechanism, MEAN uses three parallel paths. It calculates correlation matrices between context words and three specific "attention sources": sentiment words, negation words, and intensity words. This allows the model to attend to different sentiment-relevant information from different representation subspaces.
  3. Sentence Classifier: The outputs from these three paths are encoded using Gated Recurrent Units (GRUs), concatenated, and fed into a Softmax classifier.
Figure 1: The Overall Framework of Our Model

To ensure the model doesn't just learn redundant information across the three paths, the authors included a penalization term in the loss function. This encourages the different attention sources to focus on diverse aspects of the sentence semantics.

Datasets

The authors evaluated MEAN on two widely used sentiment benchmarks:

  • Movie Review (MR): A dataset of 10,662 movie reviews labeled as positive or negative.
  • Stanford Sentiment Treebank (SST): A more complex dataset with five fine-grained classes (very negative to very positive).

For linguistic resources, they compiled a sentiment lexicon of 10,899 words and manually collected lists of negation and intensity words.

Key Insights and Ideas

  • Subspace Representation: The most powerful idea here is that sentiment, negation, and intensity operate in different "semantic subspaces." By attending to context words through these three distinct lenses, the model captures a more holistic view of the sentence's emotional weight than a general-purpose attention mechanism could.
  • Morphology Matters: The inclusion of character-level embeddings (Char-CNN) proved vital. The ablation study showed that removing this component significantly dropped performance, confirming that prefixes and suffixes carry heavy sentiment signals that word-level embeddings alone might miss.
  • Linguistic Rules as "Hints": Rather than forcing the model to follow hard-coded linguistic rules, MEAN uses these resources as "attention sources." This allows the neural network to learn how to use the lexicon effectively rather than being strictly bound by it.

Key Results

MEAN consistently outperformed strong baselines, including standard LSTMs, CNNs, and even models that use linguistic regularization (like LR-Bi-LSTM).

A comparison of MEAN against various baseline models on the MR and SST datasets.

As shown in the table above:

  • On the MR dataset, MEAN achieved 84.5% accuracy, a 2.4% improvement over the linguistically regularized Bi-LSTM.
  • On the SST dataset, it reached 51.4% accuracy, setting a new high mark among the compared methods.
  • Ablation results (the bottom four rows of the table) highlight that sentiment words are the most critical resource; removing them caused the largest dip in performance (from 84.5% to 82.1% on MR).

Limitations and Future Work

While the paper demonstrates clear gains, there are a few areas for further exploration:

  • Resource Dependency: The model relies on pre-defined lexicons. While these are effective, the manual collection of negation and intensity words might not scale perfectly to all languages or specialized domains (like medical or legal text).
  • Complexity: The multi-path attention and coupled embeddings increase the model's computational footprint compared to a simple Bi-LSTM.
  • Future Directions: The authors suggest that this multi-path attention framework could be extended to other NLP tasks where external knowledge bases (like knowledge graphs or domain-specific dictionaries) are available.

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