Abstract
This paper introduces Semi-Supervised Recursive Autoencoders (RAE), a deep learning framework designed to learn vector representations for phrases and sentences. By recursively merging word embeddings, the model captures compositional semantics, enabling it to understand how word order and structure influence meaning. Unlike traditional binary sentiment classifiers, the RAE is capable of predicting complex multinomial distributions over multiple emotion categories. Evaluated on movie reviews and personal confession datasets, the RAE achieves state-of-the-art performance without relying on hand-engineered sentiment lexica.
Introduction
Traditional sentiment analysis has largely relied on "bag-of-words" (BoW) models, which treat sentences as unordered collections of terms. This approach fails to capture critical linguistic nuances where word order determines polarity—for instance, distinguishing between "white blood cells destroying an infection" (positive) and "an infection destroying white blood cells" (negative). Furthermore, many existing systems depend on labor-intensive manual resources like sentiment lexica and polarity-shifting rules.
This work addresses these limitations by proposing a Recursive Autoencoder (RAE) that learns to represent variable-length phrases in a fixed-dimensional vector space. The model is uniquely suited to predicting sentiment distributions, reflecting the complexity of human emotion beyond simple positive/negative labels.
Methodology
Recursive Autoencoder Architecture
The core of the framework is the recursive application of an autoencoder. Words are initially represented as $n$-dimensional embeddings. The model then greedily merges adjacent vectors into a parent vector of the same dimension. For example, the vectors for "parked" and "car" are compressed into a single parent vector representing the phrase "parked car."
Greedy Tree Construction
To determine the structure of the sentence tree, the model employs a greedy heuristic. At each step, it evaluates all adjacent pairs and merges the one that results in the lowest reconstruction error—a measure of how accurately the parent vector can reconstruct its child components. This process continues until the entire sentence is reduced to a single root vector.
Semi-Supervised Learning
The RAE is trained using a joint objective function. It simultaneously minimizes:
- Unsupervised Reconstruction Error: Ensuring the hidden vectors capture the semantic information of the original words.
- Supervised Cross-Entropy Error: A softmax layer is added to every node in the tree to predict sentiment labels or distributions.
This dual objective acts as a form of regularization, preventing the model from overfitting to specific sentiment-heavy words and encouraging it to learn generalizable semantic compositions.
Experimental Results
Sentiment Distribution Prediction
The model was evaluated on the Experience Project (EP) dataset, which contains over 31,000 confessions labeled with distributions of five user reactions (Sorry/Hugs, You Rock, Teehee, I Understand, Wow). The RAE significantly outperformed baseline models in predicting these distributions.
As shown in the results, the RAE achieved a KL-divergence of 0.70, notably lower than the BoW baseline (0.81) and feature-based models (0.72). This demonstrates the model's superior ability to capture the multi-faceted nature of sentiment in personal narratives.
Binary Classification and Hyperparameters
On the Movie Reviews (MR) benchmark, the RAE reached 77.7% accuracy, surpassing previous dependency-tree models and BoW baselines without the use of manual lexica. Sensitivity analysis revealed that a weight of $\alpha = 0.2$ for the reconstruction error provided the optimal balance between unsupervised feature learning and supervised sentiment guidance.
Conclusion
Semi-Supervised Recursive Autoencoders provide a powerful method for learning semantic representations that respect linguistic structure. By combining unsupervised reconstruction with supervised sentiment signals, the RAE captures the nuances of compositionality and multi-dimensional emotion. Future work may involve exploring formal syntactic parsers to guide tree construction and extending the recursive framework to other hierarchical data domains, such as image scene understanding.
Summary updated