Introduction
Traditional sentiment analysis has long relied on "bag-of-words" models, which treat sentences as unordered collections of terms. While effective for simple document-level classification, these models fail to capture compositionality—the process by which the meaning of a complex expression is built from the meanings of its constituent parts. For instance, a bag-of-words model might struggle to distinguish between "not good" and "good," or fail to understand how "not terrible" functions as a mitigated negative rather than a strong positive.
This paper addresses these challenges by introducing the Stanford Sentiment Treebank (SST) and the Recursive Neural Tensor Network (RNTN). Together, these contributions allow for a more granular and structurally aware approach to sentiment analysis, enabling models to understand the "sentiment math" of natural language.
The Stanford Sentiment Treebank
To train models capable of understanding compositionality, the authors developed the Stanford Sentiment Treebank. Unlike previous datasets that only provided labels for entire sentences, the SST provides sentiment labels for every single phrase in a sentence's parse tree.
The dataset consists of 11,855 sentences from movie reviews, which were parsed into 215,154 unique phrases. Each phrase was labeled by human judges on a 25-point scale, then collapsed into five categories: very negative, negative, neutral, positive, and very positive. This dense labeling provides a rich supervision signal, allowing models to learn how sentiment shifts and accumulates from individual words up to the root node of a sentence.
Recursive Neural Tensor Networks (RNTN)
The core technical innovation is the Recursive Neural Tensor Network (RNTN). While standard Recursive Neural Networks (RNNs) combine word vectors using simple addition and non-linearity, the RNTN introduces a tensor to define multiple bilinear forms.
This tensor allows for "multiplicative" interactions between child nodes in the parse tree. For example, it enables the model to learn a specific transformation for a negator like "not" when it modifies a positive adjective. Unlike the Matrix-Vector RNN (MV-RNN), which requires a matrix for every word in the vocabulary, the RNTN uses a fixed number of parameters, making it both more powerful and more computationally efficient.
Performance and Linguistic Insights
The RNTN significantly outperformed previous state-of-the-art models across several benchmarks:
- Binary Classification: Accuracy for single-sentence classification rose from 80% to 85.4%.
- Fine-grained Classification: The model achieved 80.7% accuracy across all phrases, a nearly 10% jump over bag-of-features baselines.
- Negation Recovery: In tests specifically targeting negated positive sentences, the RNTN achieved 71.4% accuracy, compared to just 33.3% for standard RNNs.
Beyond raw metrics, the model demonstrated an ability to learn complex linguistic structures. It successfully identified the "But" effect—where the sentiment of a phrase following "but" usually dominates the sentence—and accurately captured the scope of negation. It learned, for instance, that negating a negative phrase like "not dull" typically results in a "neutral" sentiment rather than a "very positive" one, reflecting the nuance of human speech.
Conclusion and Future Work
The RNTN and the Stanford Sentiment Treebank represent a major step forward in semantic compositionality. By treating sentiment as a structural property of language rather than a simple sum of words, the authors achieved a new level of accuracy in fine-grained analysis.
However, limitations remain. The model is dependent on the accuracy of the initial parse tree; if the parser fails, the RNTN's composition logic is compromised. Additionally, recursive models are currently more difficult to parallelize than simpler architectures. Future work may involve applying these recursive tensor approaches to other complex NLP tasks, such as logical entailment or general-purpose phrase embeddings.
Summary updated