Introduction
Sentiment analysis is a critical task in natural language processing, yet it frequently encounters difficulties with "semantic composition"—the way specific words modify the meaning of others. Two primary challenges are negative reversing (e.g., "not good") and intensification (e.g., "very good"). While traditional lexicon-based and machine learning methods have made strides, they often fail to capture these dynamic shifts accurately. This paper proposes the Negative and Intensive Modeling (NIM) framework to address these gaps by generating supplemental sentiment information dynamically.
Methodology: The NIM Framework
The NIM framework is designed to be integrated into standard neural architectures like Convolutional Neural Networks (CNNs) or Long Short-Term Memory (LSTM) networks. The process involves three key stages: target word identification, sentiment supplement extraction, and integration.
Sentiment Supplement Extraction
The model identifies "target words," which include negators (e.g., "not," "never") and intensifiers (e.g., "very," "completely"). For each target word, a backward LSTM processes the subsequent phrase. A backward LSTM is utilized because it effectively captures the context of the words following a modifier and flows that information back toward the target word itself.
The output of this LSTM, termed sentiment supplement information ($ssinfo$), is then transformed into a sentiment supplement vector ($ssvec$). For negators, a multiplier ($\lambda = -2$) is applied to flip and emphasize the sentiment polarity. For intensifiers, a multiplier ($\lambda = 1$) reinforces the existing sentiment strength.
Model Integration
The generated $ssvec$ is appended to the original sentence's word embeddings, creating an augmented representation matrix $V$. This matrix is then passed through a convolutional layer to extract sentiment features $F$, which are subsequently pooled and weighted to produce the final polarity strengths $(s_i^1, s_i^0)$. This method ensures the original sentence structure is preserved while adding critical contextual supplements.
Experimental Evaluation
The NIM-CNN model was evaluated against standard baselines on three datasets: Movie Review (MR), Stanford Sentiment Treebank (SST), and Sentiment Labeled Sentences (SLS).
Key results include:
- Performance Gains: NIM-CNN consistently outperformed standard CNNs, with accuracy increasing from 78.9% to 80.1% on the MR dataset and from 81.6% to 82.3% on the SST dataset.
- Negation Correction: The most significant improvements were observed in sentences containing negators, where the NIM component allowed the model to "correct" predictions that standard models misclassified by focusing on the base word (e.g., "good" in "not good").
- Intensifier Impact: While intensifiers provided smaller gains in binary classification tasks, they contributed to a more robust overall sentiment representation, which the authors suggest would be even more impactful in fine-grained tasks.
Conclusion
The NIM framework provides a dynamic, data-driven approach to modeling semantic composition in sentiment analysis. By supplementing standard neural networks with targeted information about negators and intensifiers, the model achieves superior performance without the limitations of static, domain-specific lexicons. Future work will explore the use of attention mechanisms and the modeling of complex conjunctions like "but" or "although."
Summary updated