NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SNNN: Promoting Word Sentiment and Negation in Neural Sentiment Classification

Qinmin Hu, Jie Zhou, Qin Chen, Liang He

Abstract

Neural sentiment classification often treats words as generic tokens, potentially overlooking critical linguistic drivers such as inherent sentiment and negation. This paper introduces the Sentiment and Negation Neural Network (SNNN), a hierarchical LSTM-based architecture designed to explicitly "promote" these features. By integrating word-level sentiment and negation information through both auxiliary embedding layers and specialized attention mechanisms, the SNNN achieves state-of-the-art performance on large-scale document-level sentiment benchmarks including Yelp and IMDB.

Introduction

While deep learning has significantly advanced sentiment analysis by reducing the need for manual feature engineering, standard models like CNNs or vanilla RNNs often struggle to capture the nuances of linguistic context. Two primary drivers of sentiment—inherent word polarity (e.g., "excellent" vs. "disappointing") and negation (e.g., "not good")—are frequently diluted in high-dimensional vector spaces. Negation is particularly challenging as it can flip the polarity of a sentence over long distances. The authors argue that the quality of document representation depends heavily on how effectively these specific word-level influences are promoted within the network architecture.

Methodology

The SNNN utilizes a hierarchical structure based on Long Short-Term Memory (LSTM) networks to process text at the word, sentence, and document levels. The core innovation lies in the integration of two sub-networks: the Sentiment Neural Network (SNN) and the Negation Neural Network (NNN).

The hierarchical architecture of the SNNN model, integrating Sentiment and Negation Neural Networks at the word level and utilizing specialized attention mechanisms.

Technical Innovations

  1. Modified Word Embeddings: Beyond standard vectors (e.g., Word2Vec), the model incorporates extra layers at the input level to represent a word's sentiment orientation and negation status.
  2. Sentiment and Negation Attention (SNA): Rather than a generic attention mechanism, the SNNN uses sentiment and negation information to guide the model's focus. It learns to assign higher weights to words that are linguistically significant in determining the overall sentiment of a sentence.
  3. Hierarchical Aggregation: Local sentiment captured at the word level is aggregated into sentence-level representations, which are then synthesized into a final document-level rating.

Results and Discussion

The model was evaluated on Yelp (2013, 2014, 2015) and IMDB datasets. The proposed LSTM+SNA configuration outperformed eleven state-of-the-art baselines, achieving 70.4% accuracy on the Yelp 2015 dataset. Furthermore, the model demonstrated a significantly lower Mean Squared Error (MSE), indicating that its predictions are consistently closer to the ground truth even when incorrect.

Qualitative Analysis

Visualization of the attention weights confirms the model's ability to "lock onto" critical sentiment-bearing words and negators. As shown in the comparison below, the SNA mechanism effectively highlights words like "great," "unfortunate," and "don't," while ignoring neutral filler text more effectively than standard attention models.

Visualization of attention weights comparing standard LSTM+A with the proposed LSTM+SNA on a 5-star Yelp review.

Key Insights

  • The "Strong Alliance": Sentiment and negation features are most effective when used together within the attention mechanism, acting as a force multiplier for identifying relevant content.
  • The Overfitting Trap: The researchers noted that applying sentiment and negation features simultaneously at the embedding (input) layer can introduce noise and lead to overfitting, suggesting that integration at the attention level is more robust.

Conclusion

The SNNN framework demonstrates that explicitly promoting linguistic features like sentiment and negation within a hierarchical neural architecture significantly improves document-level classification. Future work will explore incorporating additional dimensions of word influence, such as intensity and sarcasm, and refining how these attentions translate to higher-level sentence representations.

Summary updated

BibTeX
@inproceedings{hu2018snnn,
  author = {Qinmin Hu and Jie Zhou and Qin Chen and Liang He},
  title = {{SNNN: Promoting Word Sentiment and Negation in Neural Sentiment Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11665},
}
Figure