<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="151"/><title>Semi-Supervised Recursive Autoencoders for Predicting Sentiment Distributions</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 151-161, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Socher" givenname="Richard"><org  name="York University" country="Canada" city="North York"/></author><author surname="Pennington" givenname="Jeffrey"><org  name="York University" country="Canada" city="North York"/></author><author surname="Huang" givenname="Eric H."><org  name="York University" country="Canada" city="North York"/></author><author surname="Ng" givenname="Andrew Y."><org  name="Stanford University" country="USA" city="Stanford"/></author><author surname="Manning" givenname="Christopher D."><org  name="Stanford University" country="USA" city="Stanford"/></author></firstpageheader><frontmatter><p><b>Semi-Supervised Recursive Autoencoders for Predicting Sentiment Distributions</b></p><p><b>Richard Socher   Jeffrey Pennington*    Eric H. Huang   Andrew Y. Ng   Christopher D. Manning</b></p><p>Computer Science Department, Stanford University, Stanford, CA 94305, USA * SLAC National Accelerator Laboratory, Stanford University, Stanford, CA 94309, USA</p><p>richard@socher.org        {jpennin,ehhuang,ang,manning}@stanford.edu ang@cs.stanford.edu</p></frontmatter><abstract>We introduce a novel machine learning frame­work based on recursive autoencoders for sentence-level prediction of sentiment label distributions. Our method learns vector space representations for multi-word phrases. In sentiment prediction tasks these represen­tations outperform other state-of-the-art ap­proaches on commonly used datasets, such as movie reviews, without using any pre-defined sentiment lexica or polarity shifting rules. We also evaluate the model's ability to predict sentiment distributions on a new dataset based on confessions from the experience project. The dataset consists of personal user stories annotated with multiple labels which, when aggregated, form a multinomial distribution that captures emotional reactions. Our al­gorithm can more accurately predict distri­butions over such labels compared to several competitive baselines. </abstract></header><body><section number="1" title="Introduction"><p>The ability to identify sentiments about personal ex­periences, products, movies etc. is crucial to un­derstand user generated content in social networks, blogs or product reviews. Detecting sentiment in these data is a challenging task which has recently spawned a lot of interest (Pang and Lee, 2008).</p><p>Current baseline methods often use bag-of-words representations which cannot properly capture more complex linguistic phenomena in sentiment analy­sis (Pang et al., 2002). For instance, while the two phrases "white blood cells destroying an infection" and "an infection destroying white blood cells" have the same bag-of-words representation, the former is a positive reaction while the later is very negative. More advanced methods such as (Nakagawa et al.,</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">151</doubt><p><b>Recursive Autoencoder</b></p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">H</doubt><doubt alpha="67.2" length="64" tooSmall="True" monospace="0.0">Sorry, Hugs    You Rock    Teehee   I Understand   Wow, Just Wow</doubt><p><b>Predicted Sentiment</b> <b>Semantic Representations</b></p><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">Indices</doubt><doubt alpha="50.0" length="52" tooSmall="False" monospace="0.0">i      walked    into      a      parked   car Words</doubt><p>Figure 1: Illustration of our recursive autoencoder archi­tecture which learns semantic vector representations of phrases. Word indices (orange) are first mapped into a semantic vector space (blue). Then they are recursively merged by the same autoencoder network into a fixed length sentence representation. The vectors at each node are used as features to predict a distribution over senti­ment labels.</p><p>2010) that can capture such phenomena use many manually constructed resources (sentiment lexica, parsers, polarity-shifting rules). This limits the ap­plicability of these methods to a broader range of tasks and languages. Lastly, almost all previous work is based on single, positive/negative categories or scales such as star ratings. Examples are movie reviews (Pang and Lee, 2005), opinions (Wiebe et al., 2005), customer reviews (Ding et al., 2008) or multiple aspects of restaurants (Snyder and Barzilay, 2007). Such a one-dimensional scale does not accu­rately reflect the complexity of human emotions and sentiments.</p><p>In this work, we seek to address three issues. (i) Instead of using a bag-of-words representation, our model exploits hierarchical structure and uses com­positional semantics to understand sentiment. (ii) Our system can be trained both on unlabeled do­main data and on supervised sentiment data and does not require any language-specific sentiment lexica,</p><p><b>Distribution</b><page local="2" global="152"/></p><p>parsers, etc. (iii) Rather than limiting sentiment to a positive/negative scale, we predict a multidimen­sional distribution over several complex, intercon­nected sentiments.</p><p>We introduce an approach based on semi-supervised, recursive autoencoders (RAE) which use as input continuous word vectors. Fig. 1 shows an illustration of the model which learns vector rep­resentations of phrases and full sentences as well as their hierarchical structure from unsupervised text. We extend our model to also learn a distribution over sentiment labels at each node of the hierarchy.</p><p>We evaluate our approach on several standard datasets where we achieve state-of-the art perfor­mance. Furthermore, we show results on the re­cently introduced experience project (EP) dataset (Potts, 2010) that captures a broader spectrum of human sentiments and emotions. The dataset con­sists of very personal confessions anonymously made by people on the experience project website www.experienceproject.com<i>. </i>Confessions are la­beled with a set of five reactions by other users. Re­action labels are <i>you rock </i>(expressing approvement), <i>tehee </i>(amusement), <i>I understand, Sorry, hugs </i>and <i>Wow, just wow </i>(displaying shock). For evaluation on this dataset we predict both the label with the most votes as well as the full distribution over the senti­ment categories. On both tasks our model outper­forms competitive baselines. A set of over 31,000 confessions as well as the code of our model are available at www.socher.org<i>.</i></p><p>After describing the model in detail, we evalu­ate it qualitatively by analyzing the learned n-gram vector representations and compare quantitatively against other methods on standard datasets and the EP dataset.</p></section><section number="2" title="Semi-Supervised Recursive Autoencoders"><p>Our model aims to find vector representations for variable-sized phrases in either unsupervised or semi-supervised training regimes. These representa­tions can then be used for subsequent tasks. We first describe neural word representations and then pro­ceed to review a related recursive model based on autoencoders, introduce our recursive autoencoder (RAE) and describe how it can be modified to jointly learn phrase representations, phrase structure and sentiment distributions.</p><subsection number="2.1" title="Neural Word Representations"><p>We represent words as continuous vectors of param­eters. We explore two settings. In the first setting we simply initialize each word vector x G Rn by sampling it from a zero mean Gaussian distribution: x ~ N(0, er<footnote anchor="2"/>). These word vectors are then stacked into a word embedding matrix L G RnxlVwhere |V | is the size of the vocabulary. This initialization works well in supervised settings where a network can subsequently modify these vectors to capture certain label distributions.</p><p>In the second setting, we pre-train the word vec­tors with an unsupervised neural language model (Bengio et al., 2003; Collobert and Weston, 2008). These models jointly learn an embedding of words into a vector space and use these vectors to predict how likely a word occurs given its context. After learning via gradient ascent the word vectors cap­ture syntactic and semantic information from their co-occurrence statistics.</p><p>In both cases we can use the resulting matrix of word vectors L for subsequent tasks as follows. As­sume we are given a sentence as an ordered list of m words. Each word has an associated vocabulary index k into the embedding matrix which we use to retrieve the word's vector representation. Mathemat­ically, this look-up operation can be seen as a sim­ple projection layer where we use a binary vector b which is zero in all positions except at the kth index,</p><doubt alpha="50.0" length="16" tooSmall="False" monospace="0.0">xi =Lbk G Rn.(1)</doubt><p>In the remainder of this paper, we represent a sen­tence (or any n-gram) as an ordered list of these vectors (xi,..., xm). This word representation is better suited to autoencoders than the binary number representations used in previous related autoencoder models such as the recursive autoassociative mem­ory (RAAM) model (Pollack, 1990; Voegtlin and Dominey, 2005) or recurrent neural networks (El-man, 1991) since sigmoid units are inherently con­tinuous. Pollack circumvented this problem by hav­ing vocabularies with only a handful of words and by manually defining a threshold to binarize the re­sulting vectors.</p><page local="3" global="153"/><doubt alpha="66.7" length="12" tooSmall="False" monospace="0.0">(popp](oooo)</doubt><doubt alpha="32.0" length="25" tooSmall="False" monospace="0.0">(p&amp;)ys=f(W(1»[x1;y2] + b)</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">(oooo)</doubt><doubt alpha="37.5" length="24" tooSmall="False" monospace="0.0">^fcy2=f(W(1)[x2;yi] + b)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">x1x2</doubt><doubt alpha="61.5" length="13" tooSmall="False" monospace="0.0">(oooo) (oqoo)</doubt><doubt alpha="38.1" length="21" tooSmall="False" monospace="0.0">yi=f(W(1)[xs;x4] + b)</doubt><doubt alpha="0.0" length="10" tooSmall="False" monospace="0.0">••••(••••)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">x3x4</doubt><p>Figure 2: Illustration of an application of a recursive au­toencoder to a binary tree. The nodes which are not filled are only used to compute reconstruction errors. A stan­dard autoencoder (in box) is re-used at each node of the tree.</p></subsection><subsection number="2.2" title="Traditional Recursive Autoencoders"><p>The goal of autoencoders is to learn a representation of their inputs. In this section we describe how to obtain a reduced dimensional vector representation for sentences.</p><p>In the past autoencoders have only been used in setting where the tree structure was given a-priori. We review this setting before continuing with our model which does not require a given tree structure. Fig. 2 shows an instance of a recursive autoencoder (RAE) applied to a given tree. Assume we are given a list of word vectors x = (x1,..., xm) as described in the previous section as well as a binary tree struc­ture for this input in the form of branching triplets of parents with children: <i>(p — </i>c1c2). Each child can be either an input word vector x<i>i </i>or a nontermi­nal node in the tree. For the example in Fig. 2, we have the following triplets: — x3x4), (y2 — <i>x2y1), (y1 — x1y2)). </i>In order to be able to apply the same neural network to each pair of children, the hidden representations y<i>i </i>have to have the same di­mensionality as the x<i>i</i>'s.</p><p>Given this tree structure, we can now compute the parent representations. The first parent vector y1 is computed from the children <i>(c1,c2) = </i>(x3, x4):</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">p</doubt><doubt alpha="23.8" length="21" tooSmall="False" monospace="0.0">f (W(1)[C1;C2]+b(1)),</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><p>wise activation function such as tanh to the result­ing vector. One way of assessing how well this n-dimensional vector represents its children is to try to reconstruct the children in a reconstruction layer:</p><p>[c1; C'2.</p><p>W (2)p + b(2).</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(3)</doubt><p>During training, the goal is to minimize the recon­struction errors of this input pair. For each pair, we compute the Euclidean distance between the original input and its reconstruction:</p><doubt alpha="25.0" length="16" tooSmall="False" monospace="0.0">|[c1;c2]- [c1;c2</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><p>This model of a standard autoencoder is boxed in Fig. 2. Now that we have defined how an autoen­coder can be used to compute an n-dimensional vec­tor representation (p) of two n-dimensional children (c1, c2), we can describe how such a network can be used for the rest of the tree.</p><p>Essentially, the same steps repeat. Now that y1 is given, we can use Eq. 2 to compute y2 by setting the children to be (c1; c2) = (x2,y1). Again, after computing the intermediate parent vector y2, we can assess how well this vector capture the content of the children by computing the reconstruction error as in Eq. 4. The process repeat until the full tree is constructed and we have a reconstruction error at each nonterminal node. This model is similar to the RAAM model (Pollack, 1990) which also requires a fixed tree structure.</p></subsection><subsection number="2.3" title="Unsupervised Recursive Autoencoder for Structure Prediction"><p>Now, assume there is no tree structure given for the input vectors in x. The goal of our structure-prediction RAE is to minimize the reconstruction er­ror of all vector pairs of children in a tree. We de­fine A(x) as the set of all possible trees that can be built from an input sentence x. Further, let T(y) be a function that returns the triplets of a tree indexed by s of all the non-terminal nodes in a tree. Using the reconstruction error of Eq. 4, we compute where we multiplied a matrix of parameters w(1) g Rnx2n by the concatenation of the two children. After adding a bias term we applied an element-</p><doubt alpha="52.9" length="34" tooSmall="False" monospace="0.0">RAEe(x) = argmin ^ Erec([c1;C2U(5)</doubt><p>We now describe a greedy approximation that con­structs such a tree.</p><page local="4" global="154"/><p><b>Greedy Unsupervised RAE. </b>For a sentence with m words, we apply the autoencoder recursively. It takes the first pair of neighboring vectors, defines them as potential children of a phrase (c1; c2) = (x1; x2), concatenates them and gives them as in­put to the autoencoder. For each word pair, we save the potential parent node p and the resulting recon­struction error.</p><p>After computing the score for the first pair, the network is shifted by one position and takes as input vectors (c1; c2) = (x2, x3) and again computes apo­tential parent node and a score. This process repeats until it hits the last pair of words in the sentence: (c1;c2) = (xTO_1,xTO). Next, it selects the pair which had the lowest reconstruction error (Erec) and its parent representation p will represent this phrase and replace both children in the sentence word list. For instance, consider the sequence (x1; x2, x3, x4) and assume the lowest Erec was obtained by the pair (x3, x4). After the first pass, the new sequence then consists of (x1;x2 ,P(3;4)). The process repeats and treats the new vector P(3)4) like any other input vec­tor. For instance, subsequent states could be either:</p><p>(x1,P(2,(3,4))) or (P(1,2),P(3,4)). Both states would then finish with a deterministic choice of collapsing the remaining two states into one parent to obtain (P(1,(2,(3,4)))) or (P((1,2))(3,4))) respectively. The tree is then recovered by unfolding the collapsing deci­sions.</p><p>The resulting tree structure captures as much of the single-word information as possible (in order to allow reconstructing the word vectors) but does not necessarily follow standard syntactic constraints. We also experimented with a method that finds bet­ter solutions to Eq. 5 based on CKY-like beam search algorithms (Socher et al., 2010; Socher et al., 2011) but the performance is similar and the greedy version is much faster.</p><p><b>Weighted Reconstruction. </b>One problem with simply using the reconstruction error of both chil­dren equally as describe in Eq. 4 is that each child could represent a different number of previously collapsed words and is hence of bigger importance for the overall meaning reconstruction of the sen­tence. For instance in the case of (x1,p(2 (3 4))) one would like to give more importance to recon­structing p than x1. We capture this desideratum by adjusting the reconstruction error. Let n1; n2 be the number of words underneath a current poten­tial child, we re-define the reconstruction error to be</p><doubt alpha="35.3" length="17" tooSmall="False" monospace="0.0">Erec([C1;C2];0) =</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">ri1</doubt><doubt alpha="0.0" length="7" tooSmall="False" monospace="0.0">«1 + «2</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">|c1</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">+</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">«2</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">|c2</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">c21</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(6)</doubt><p><b>Length Normalization. </b>One of the goals of RAEs is to induce semantic vector representations that allow us to compare n-grams of different lengths. The RAE tries to lower reconstruction error of not only the bigrams but also of nodes higher in the tree. Unfortunately, since the RAE computes the hidden representations it then tries to reconstruct, it can just lower reconstruction error by making the hidden layer very small in magnitude. To prevent such undesirable behavior, we modify the hidden layer such that the resulting parent representation al­ways has length one, after computing p as in Eq. 2, we simply set: p = ^.</p></subsection><subsection number="2.4" title="Semi-Supervised Recursive Autoencoders"><p>So far, the RAE was completely unsupervised and induced general representations that capture the se­mantics of multi-word phrases.In this section, we extend RAEs to a semi-supervised setting in order to predict a sentence- or phrase-level target distribu­tion t.<footnote anchor="1"/></p><p>One of the main advantages of the RAE is that each node of the tree built by the RAE has associ­ated with it a distributed vector representation (the parent vector p) which could also be seen as fea­tures describing that phrase. We can leverage this representation by adding on top of each parent node a simple softmax layer to predict class distributions:</p><doubt alpha="46.7" length="30" tooSmall="False" monospace="0.0">d(p; 0) = softmax(W1abe1p).(7)</doubt><p>Assuming there are K labels, d <i>G </i>RK is a K-dimensional multinomial distribution and Sk=1 dk = 1. Fig. 3 shows such a semi-supervised RAE unit. Let tk be the kth element of the multino­mial target label distribution t for one entry. The softmax layer's outputs are interpreted as condi­tional probabilities dk = p(k| [c1; c2]), hence the cross-entropy error is log dk (p; 0).</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">K</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">EcE(p,t; 0)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(8)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">k=1</doubt><footnote label="1">For the binary label classification case, the distribution is of the form [1, 0] for class 1 and [0,1] for class 2.</footnote><page local="5" global="155"/><p>Reconstruction error       Cross-entropy error</p><p><b><u>MMM») M</u></b><b><u>.....</u></b></p><p>Figure 3: Illustration of an RAE unit at a nonterminal tree node. Red nodes show the supervised <i>softmax </i>layer for label distribution prediction.</p><p>Using this cross-entropy error for the label and the reconstruction error from Eq. 6, the final semi-supervised RAE objective over (sentences,label) pairs (x, <i>t) </i>in a corpus becomes where we have an error for each entry in the training set that is the sum over the error at the nodes of the tree that is constructed by the greedy RAE:</p><doubt alpha="21.2" length="33" tooSmall="False" monospace="0.0">J  =   NNEE(x,t; 0) + ^||0||2,(9)</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(x,t)</doubt><p>E(x,t; 0)   = J]      E([ci; <i>C</i><i>2]s</i><i>,V</i><i>s,</i><i> </i>t, 0).</p><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">s€T(RAEg(x))</doubt><p>The error at each nonterminal node is the weighted sum of reconstruction and cross-entropy errors, E([ci; C2]s,Ps,t,0) = aEreC([ci; C2]s; 0) + (1 - <i>a)E</i><i>cE</i><i>(P</i><i>s</i><i>,t; 0).</i><i></i></p><p>The hyperparameter a weighs reconstruction and cross-entropy error. When minimizing the cross-entropy error of this softmax layer, the error will backpropagate and influence both the RAE param­eters and the word representations. Initially, words such as <i>good </i>and bad have very similar representa­tions. This is also the case for Brown clusters and other methods that use only cooccurrence statistics in a small window around each word. When learn­ing with positive/negative sentiment, the word em-beddings get modified and capture less syntactic and more sentiment information.</p><p>In order to predict the sentiment distribution of a sentence with this model, we use the learned vector representation of the top tree node and train a simple logistic regression classifier.</p></subsection></section><section number="3" title="Learning"><doubt alpha="64.6" length="99" tooSmall="False" monospace="0.0">Let0=(W(1),b(1), W(2),b(1), Wlabel,L)be the set of our model parameters, then the gradient becomes:</doubt><p>To compute this gradient, we first greedily construct all trees and then derivatives for these trees are com­puted efficiently via backpropagation through struc­ture (Goller and Küchler, 1996). Because the algo­rithm is greedy and the derivatives of the supervised cross-entropy error also modify the matrix W this objective is not necessarily continuous and a step in the gradient descent direction may not nec­essarily decrease the objective. However, we found that L-BFGS run over the complete training data (batch mode) to minimize the objective works well in practice, and that convergence is smooth, with the algorithm typically finding a good solution quickly.</p></section><section number="4" title="Experiments"><p>We first describe the new experience project (EP) dataset, results of standard classification tasks on this dataset and how to predict its sentiment label distributions. We then show results on other com­monly used datasets and conclude with an analysis of the important parameters of the model.</p><p>In all experiments involving our model, we repre­sent words using 100-dimensional word vectors. We explore the two settings mentioned in Sec. 2.1. We compare performance on standard datasets when us­ing randomly initialized word vectors (random word init.) or word vectors trained by the model of Col-lobert and Weston (2008) and provided by Turian et al. (2010).<footnote anchor="2"/> These vectors were trained on an unlabeled corpus of the English Wikipedia. Note that alternatives such as Brown clusters are not suit­able since they do not capture sentiment information <i>(good </i>and <i>bad </i>are usually in the same cluster) and cannot be modified via backpropagation.</p><footnote label="2">http://metaoptimize.com/projects/ wordreprs/</footnote><page local="6" global="156"/><doubt alpha="52.1" length="48" tooSmall="False" monospace="0.0">Corpus   K   Instances    Distr.(+/-)    Avg|W |</doubt><p>tion over interconnected response categories. This is in contrast to most other datasets (including multi-aspect rating) where several distinct aspects are rated independently but on the same scale. The topics range from generic happy statements, daily clumsi­ness reports, love, loneliness, to relationship abuse and suicidal notes. As is evident from the total num­ber of label votes, the most common user reaction is one of empathy and an ability to relate to the au­thors experience. However, some stories describe horrible scenarios that are not common and hence receive more offers of condolence. In the following sections we show some examples ofstories with pre­dicted and true distributions but refrain from listing the most horrible experiences.</p><p>For all experiments on the EP dataset, we split the data into train (49%), development (21%) and test data (30%).</p><subsection number="4.2" title="EP: Predicting the Label with Most Votes"><p>The first task for our evaluation on the EP dataset is to simply predict the single class that receives the most votes. In order to compare our novel joint phrase representation and classifier learning frame­work to traditional methods, we use the following baselines:</p><p><b>Random </b>Since there are five classes, this gives 20% accuracy.</p><p><b>Most Frequent </b>Selecting the class which most fre­quently has the most votes (the class <i>I under­stand).</i></p><p><b>Baseline 1: Binary BoW </b>This baseline uses logis­tic regression on binary bag-of-word represen­tations that are 1 if a word is present and 0 oth­erwise.</p><p><b>Baseline 2: Features </b>This model is similar to tra­ditional approaches to sentiment classification in that it uses many hand-engineered resources. We first used a spell-checker and Wordnet to map words and their misspellings to synsets to reduce the total number of words. We then re­placed sentiment words with a sentiment cat­egory identifier using the sentiment lexica of the Harvard Inquirer (Stone, 1966) and LIWC (Pennebaker et al., 2007). Lastly, we used tf-idf weighting on the bag-of-word representations and trained an SVM.</p><p>Table 1: Statistics on the differentdatasets. K is the num­ber of classes. Distr. is the distribution of the different classes (in the case of 2, the positive/negative classes, for EP the rounded distribution of total votes in each class). | W | is the average number of words per instance. We use EP&gt; 4, a subset of entries with at least 4 votes.</p></subsection><subsection number="4.1" title="EP Dataset: The Experience Project"><p>The confessions section of the experience project website<footnote anchor="3"/> lets people anonymously write short per­sonal stories or "confessions". Once a story is on the site, each user can give a single vote to one of five label categories (with our interpretation): 1   Sorry, Hugs: User offers condolences to author.</p><p>2. You Rock: Indicating approval, congratulations.</p><p>3. Teehee: User found the anecdote amusing.</p><p>4. I Understand: Show of empathy.</p><p>5. Wow, Just Wow: Expression of surprise,shock. The EP dataset has 31,676 confession entries, a to­tal number of 74,859 votes for the 5 labels above, the average number of votes per entry is 2.4 (with a vari­ance of 33). For the five categories, the numbers of votes are [14, 816; 13, 325; 10, 073; 30, 844; 5, 801]. Since an entry with less than 4 votes is not very well identified, we train and test only on entries with at least 4 total votes. There are 6,129 total such entries. The distribution over total votes in the 5 classes is similar: [0.22; 0.2; 0.11; 0.37; 0.1]. The average length of entries is 129 words. Some entries con­tain multiple sentences. In these cases, we average the predicted label distributions from the sentences. Table 1 shows statistics of this and other commonly used sentiment datasets (which we compare on in later experiments). Table 2 shows example entries as well as gold and predicted label distributions as described in the next sections.</p><p>Compared to other datasets, the EP dataset con­tains a wider range of human emotions that goes far beyond positive/negative product or movie reviews. Each item is labeled with a multinomial distribu-<page local="7" global="157"/></p><footnote label="3">http://www.experienceproject.com/ confessions.php</footnote><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MPQA</p></td><td class="cell"><p>2</p></td><td class="cell"><p>10,624</p></td><td class="cell"><p>0.31/0.69</p></td><td class="cell"><p>3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MR</p></td><td class="cell"><p>2</p></td><td class="cell"><p>10,662</p></td><td class="cell"><p>0.5/0.5</p></td><td class="cell"><p>22</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>EP</p></td><td class="cell"><p>5</p></td><td class="cell"><p>31,675</p></td><td class="cell"><p>.2/.2/.1/.4/.1</p></td><td class="cell"><p>113</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>EP&gt; 4</p></td><td class="cell"><p>5</p></td><td class="cell"><p>6,129</p></td><td class="cell"><p>.2/.2/.1/.4/.1</p></td><td class="cell"><p>129</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Table 2: Example EP confessions from the test data with KL divergence between our predicted distribution (light blue, left bar on each of the 5 classes) and ground truth distribution (red bar and numbers underneath), number of votes. The 5 classes are [Sorry, Hugs ;You Rock; Teehee;I Understand;Wow, Just Wow]. Even when the KL divergence is higher, our model makes reasonable alternative label choices. Some entries are shortened.</p><p><b>Baseline 3: Word Vectors </b>We can ignore the RAE tree structure and only train softmax layers di­rectly on the pre-trained words in order to influ­ence the word vectors. This is followed by an SVM trained on the average of the word vec­tors.</p><p>We also experimented with latent Dirichlet alloca­tion (Blei et al., 2003) but performance was very low.</p><p>Table 3 shows the results for predicting the class with the most votes. Even the approach that is based on sentiment lexica and other resources is outper­formed by our model by almost 3%, showing that for tasks involving complex broad-range human sen­timent, the often used sentiment lexica lack in cover­age and traditional bag-of-words representations are not powerful enough.</p></subsection><subsection number="4.3" title="EP: Predicting Sentiment Distributions"><p>We now turn to evaluating our distribution-prediction approach. In both this and the previous</p><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">Method</doubt><p>Accuracy maximum label task, we backprop using the gold multinomial distribution as a target. Since we max­imize likelihood and because we want to predict a distribution that is closest to the distribution of labels that people would assign to a story, we evaluate us­ing KL divergence: KL(g||p) = £i <i>g</i><i>i </i>log(gi/pi), where g is the gold distribution and p is the predicted one. We report the average KL divergence, where a smaller value indicates better predictive power. To get an idea of the values of KL divergence, predict-<page local="8" global="158"/></p><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">Random 20.0</doubt><doubt alpha="66.7" length="18" tooSmall="False" monospace="0.0">Most Frequent 38.1</doubt><doubt alpha="63.0" length="27" tooSmall="False" monospace="0.0">Baseline 1: Binary BoW 46.4</doubt><doubt alpha="64.0" length="25" tooSmall="False" monospace="0.0">Baseline 2: Features 47.0</doubt><doubt alpha="65.5" length="29" tooSmall="False" monospace="0.0">Baseline 3: Word Vectors 45.5</doubt><doubt alpha="60.0" length="20" tooSmall="False" monospace="0.0">RAE (our method)50.1</doubt><table caption="Table 3: Accuracy of predicting the class with most votes."></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>KL</p></td><td class="cell"><p>Predicted&amp;Gok</p></td><td class="cell"><p>V.</p></td><td class="cell"><p>Entry (Shortened if it ends with ...)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.03</p></td><td class="cell"><p>......II,</p><p>.16.16.16.33.16</p></td><td class="cell"><p>6</p></td><td class="cell"><p>I reguarly shoplift. I got caught once and went to jail, but I've found that this was not a deterrent. I don't buy groceries, I don't buy school supplies for my kids, I don't buy gifts for my kids, we don't pay for movies, and I dont buy most incidentals for the house (cleaning supplies, toothpaste, etc.)...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.03</p></td><td class="cell"><p>II ....II..</p><p>.38 .04 .06 .35 .14</p></td><td class="cell"><p>165</p></td><td class="cell"><p>i am a very succesfull buissnes man.i make good money but i have been addicted to crack for 13 years.i moved 1 hour away from my dealers 10 years ago to stop using now i dont use daily but once a week usally friday nights. i used to use 1 or 2 hundred a day now i use 4 or 5 hundred on a friday.my problem is i am a funcational addict...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.05</p></td><td class="cell"><p><b>Il </b>il 1. <b>II ..</b></p><p>.14 .28 .14 .28 .14</p></td><td class="cell"><p>7</p></td><td class="cell"><p>Hi there, Im a guy that loves a girl, the same old bloody story... I met her a while ago, while studying, she Is so perfect, so mature and yet so lonely, I get to know her and she get ahold of me, by opening her life to me and so did I with her, she has been the first person, male or female that has ever made that bond with me,...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.07</p></td><td class="cell"><p>Ii II..</p><p>.27.18 .00.45.09</p></td><td class="cell"><p>11</p></td><td class="cell"><p>be kissing you right now. i should be wrapped in your arms in the dark, but instead i've ruined everything. i've piled bricks to make a wall where there never should have been one. i feel an ache that i shouldn't feel because i've never had you close enough. we've never touched, but i still feel as though a part of me is missing. ...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.05</p></td><td class="cell"><p><b>.</b><b> </b><b>.</b><b> </b><b>II</b><b> </b><b>.</b></p></td><td class="cell"><p>23</p></td><td class="cell"><p>Dear Love, I just want to say that I am looking for you. Tonight I felt the urge to write, and I am becoming more and more frustrated that I have not found you yet. I'm also tired of spending so much heart on an old dream. ...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.05</p></td><td class="cell"><p>, II</p></td><td class="cell"><p>5</p></td><td class="cell"><p>I wish I knew somone to talk to here.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.06</p></td><td class="cell"><p>II. ..II.</p></td><td class="cell"><p>24</p></td><td class="cell"><p>I loved her but I screwed it up. Now she's moved on. I'll never have her again. I don't know if I'll ever stop thinking about her.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.06</p></td><td class="cell"><p><b>1   </b>. II</p></td><td class="cell"><p>5</p></td><td class="cell"><p>i am 13 years old and i hate my father he is alwas geting drunk and do's not care about how it affects me or my sisters i want to care but the truthis i dont care if he dies</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.13</p></td><td class="cell"><p>ill.</p></td><td class="cell"><p>6</p></td><td class="cell"><p>well i think hairy women are attractive</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.35</p></td><td class="cell"><p>Mi</p></td><td class="cell"><p>5</p></td><td class="cell"><p>As soon as I put clothings on I will go down to DQ and get a thin mint blizzard. I need it. It'll make my soul feel a bit better :)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.36</p></td><td class="cell"><p>.....1</p></td><td class="cell"><p>6</p></td><td class="cell"><p>I am a 45 year old divoced woman, and I havent been on a date or had any significant relationship in 12 years...yes, 12 yrs. the sad thing is, Im not some dried up old granny who is no longer interested in men, I just can't meet men. (before you judge, no Im not terribly picky!) What is wrong with me?</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.63</p></td><td class="cell"><p></p></td><td class="cell"><p>6</p></td><td class="cell"><p>When i was in kindergarden i used to lock myself in the closet and eat all the candy. Then the teacher found out it was one of us and made us go two days without freetime. It might be a little late now, but sorry guys it was me haha</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.92</p></td><td class="cell"><p>II</p></td><td class="cell"><p>4</p></td><td class="cell"><p>My paper is due in less than 24 hours and I'm still dancing round my room!</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.8</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.7</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.6</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.83</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.81</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.72</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.73</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.70</doubt><p>Avg.Distr.   BoW   Features Word Vec. RAE</p><p>Figure 4: Average KL-divergence between gold and pre­dicted sentiment distributions (lower is better).</p><p>ing random distributions gives a an average of 1.2 in KL divergence, predicting simply the average distri­bution in the training data give 0.83. Fig. 4 shows that our RAE-based model outperforms the other baselines. Table 2 shows EP example entries with predicted and gold distributions, as well as numbers of votes.</p></subsection><subsection number="4.4" title="Binary Polarity Classification"><p>In order to compare our approach to other meth­ods we also show results on commonly used sen­timent datasets: movie reviews<footnote anchor="4"/> (MR) (Pang and 2005).We give statistical information on these and the EP corpus in Table 1.</p><doubt alpha="60.0" length="45" tooSmall="False" monospace="0.0">Lee, 2005) and opinions5(MPQA) (Wiebe et al.,</doubt><p>We compare to the state-of-the-art system of (Nakagawa et al., 2010), a dependency tree based classification method that uses CRFs with hidden variables. We use the same training and testing regi­men (10-fold cross validation) as well as their base­lines: majority phrase voting using sentiment and reversal lexica; rule-based reversal using a depen­dency tree; Bag-of-Features and their full Tree-CRF model. As shown in Table 4, our algorithm outper­forms their approach on both datasets. For the movie review (MR) data set, we do not use any hand-designed lexica. An error analysis on the MPQA dataset showed several cases of single words which never occurred in the training set. Correctly classify­ing these instances can only be the result of having them in the original sentiment lexicon. Hence, for the experiment on MPQA we added the same sen­timent lexicon that (Nakagawa et al., 2010) used in their system to our training set. This improved ac­curacy from 86.0 to 86.4.Using the pre-trained word vectors boosts performance by less than 1% com-</p><footnote label="4">www.cs.cornell.edu/people/pabo/ movie-review-data/</footnote><footnote label="5">www.cs.pitt.edu/mpqa/</footnote><doubt alpha="0.0" length="24" tooSmall="False" monospace="0.0">0.87 0.86 0.85 0.84 0.83</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.2</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.4</doubt><p>Figure 5: Accuracy on the development split of the MR polarity dataset for different weightings of reconstruction error and supervised cross-entropy error: err = aErec + (1 - <i>a)E</i><b><i>CE</i></b>.</p><p>pared to randomly initialized word vectors (setting: random word init). This shows that our method can work well even in settings with little training data. We visualize the semantic vectors that the recursive autoencoder learns by listing n-grams that give the highest probability for each polarity. Table 5 shows such n-grams for different lengths when the RAE is trained on the movie review polarity dataset.</p><p>On a 4-core machine, training time for the smaller corpora such as the movie reviews takes around 3 hours and for the larger EP corpus around 12 hours until convergence. Testing of hundreds of movie re­views takes only a few seconds.</p></subsection><subsection number="4.5" title="Reconstruction vs. Classification Error"><p>In this experiment, we show how the hyperparame­ter a influences accuracy on the development set of one of the cross-validation splits of the MR dataset. This parameter essentially trade-off the supervised and unsupervised parts of the objective. Fig. 5 shows that a larger focus on the supervised objective is im­portant but that a weight of a = 0.2 for the recon­struction error prevents overfitting and achieves the highest performance.</p><table caption="Table 4: Accuracy of sentiment classification on movie review polarity (MR) and the MPQA dataset." class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Method</p></td><td class="cell"><p>MR</p></td><td class="cell"><p>MPQA</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Voting with two lexica</p></td><td class="cell"><p>63.1</p></td><td class="cell"><p>81.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Rule-based reversal on trees</p></td><td class="cell"><p>62.9</p></td><td class="cell"><p>82.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Bag of features with reversal</p></td><td class="cell"><p>76.4</p></td><td class="cell"><p>84.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Tree-CRF (Nakagawa et al,'10)</p></td><td class="cell"><p>77.3</p></td><td class="cell"><p>86.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RAE (random word init.)</p></td><td class="cell"><p>76.8</p></td><td class="cell"><p>85.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RAE (our method)</p></td><td class="cell"><p><b>77.7</b></p></td><td class="cell"><p><b>86.4</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="9" global="159"/><p>Table 5: Examples of n-grams (n = 1,2,3, 5, 8) from the test data of the movie polarity dataset for which our model predicts the most positive and most negative responses.</p></subsection></section><section number="5" title="Related Work"><subsection number="5.1" title="Autoencoders and Deep Learning"><p>Autoencoders are neural networks that learn a re­duced dimensional representation of fixed-size in­puts such as image patches or bag-of-word repre­sentations of text documents. They can be used to efficiently learn feature encodings which are useful for classification. Recently, Mirowski et al. (2010) learn dynamic autoencoders for documents in a bag-of-words format which, like ours, combine super­vised and reconstruction objectives.</p><p>The idea of applying an autoencoder in a recursive setting was introduced by Pollack (1990). Pollack's recursive auto-associative memories (RAAMs) are similar to ours in that they are a connectionst, feed­forward model. However, RAAMs learn vector representations only for fixed recursive data struc­tures, whereas our RAE builds this recursive data structure. More recently, (Voegtlin and Dominey, 2005) introduced a linear modification to RAAMs that is able to better generalize to novel combina­tions of previously seen constituents. One of the major shortcomings of previous applications of re­cursive autoencoders to natural language sentences was their binary word representation as discussed in Sec. 2.1.</p><p>Recently, (Socher et al., 2010; Socher et al., 2011) introduced a max-margin framework based on recur­sive neural networks (RNNs) for labeled structure prediction. Their models are applicable to natural language and computer vision tasks such as parsing or object detection. The current work is related in that it uses a recursive deep learning model. How­ever, RNNs require labeled tree structures and use a supervised score at each node. Instead, RAEs learn hierarchical structures that are trying to capture as much of the the original word vectors as possible. The learned structures are not necessarily syntacti­cally plausible but can capture more of the semantic content of the word vectors. Other recent deep learn­ing methods for sentiment analysis include (Maas et al., 2011).</p></subsection><subsection number="5.2" title="Sentiment Analysis"><p>Pang et al. (2002) were one of the first to experiment with sentiment classification. They show that sim­ple bag-of-words approaches based on Naive Bayes, MaxEnt models or SVMs are often insufficient for predicting sentiment of documents even though they work well for general topic-based document classi­fication. Even adding specific negation words, bi-grams or part-of-speech information to these mod­els did not add significant improvements. Other document-level sentiment work includes (Turney, and Lee, 2004). For further references, see (Pang and Lee, 2008).</p><doubt alpha="45.1" length="51" tooSmall="False" monospace="0.0">2002; Dave et al., 2003; Beineke et al., 2004; Pang</doubt><p>Instead of document level sentiment classifica­tion, (Wilson et al., 2005) analyze the contextual polarity of phrases and incorporate many well de­signed features including dependency trees. They also show improvements by first distinguishing between neutral and polar sentences.<page local="10" global="160"/> Our model natu­rally incorporates the recursive interaction between context and polarity words in sentences in a unified framework while simultaneously learning the neces­sary features to make accurate predictions. Other ap­proaches for sentence-level sentiment detection in­clude (Yu and Hatzivassiloglou, 2003; Grefenstette et al., 2004; Ikeda et al., 2008).</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>n</p></td><td class="cell"><p>Most negative n-grams</p></td><td class="cell"><p>Most positive n-grams</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1</p></td><td class="cell"><p>bad; boring; dull; flat; pointless; tv; neither; pretentious; badly; worst; lame; mediocre; lack; routine; loud; bore; barely; stupid; tired; poorly; suffers; heavy;nor; choppy; superficial</p></td><td class="cell"><p>touching; enjoyable; powerful; warm; moving; culture; flaws; provides; engrossing; wonderful; beautiful; quiet; socio-political; thoughtful; portrait; refreshingly; chilling; rich; beautifully; solid;</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>2</p></td><td class="cell"><p>how bad; by bad; dull .; for bad; to bad; boring .; , dull; are bad; that bad; boring ,;, flat; pointless.; badly by; ontv; so routine; lack the; mediocre .; a generic; stupid ,; abysmally pathetic</p></td><td class="cell"><p>the beautiful; moving,; thoughtful and; , inventive; solid and; a beautiful; a beautifully; and hilarious; with dazzling; provides the; provides.; and inventive; as powerful; moving and; a moving; a powerful</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3</p></td><td class="cell"><p>. too bad; exactly how bad; and never dull; shot but dull; is more boring; to the dull; dull, UNK; it is bad; or just plain; by turns pretentious; manipulative and contrived; bag of stale; is a bad; the whole mildly; contrived pastiche of; from this choppy; stale mate­rial.</p></td><td class="cell"><p>funny and touching; a small gem; with a moving; cuts, fast; , fine music; smart and taut; culture into a; romantic , riveting; ... a solid; beautifully acted .; , gradually reveals; with the chilling; cast of solid; has a solid; spare yet audacious; ... a polished; both the beauty;</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5</p></td><td class="cell"><p>boring than anything else.; a major waste ... generic; nothing i hadn't already; ,UNK plotting;superficial; problem ? no laughs.; ,just horribly mediocre .; dull, UNK feel.; there's nothing exactly wrong; movie is about a boring; essentially a collection of bits</p></td><td class="cell"><p>reminded us that a feel-good; engrossing, seldom UNK,; between realistic characters showing honest; a solid piece of journalistic; easily the most thoughtful fictional; cute, funny, heartwarming; with wry humor and genuine; engrossing and ultimately tragic.;</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>8</p></td><td class="cell"><p>loud, silly, stupid and pointless.; dull, dumb and derivative horror film.; UNK's film, a boring, pretentious; this film biggest problem ? no laughs.; film in the series looks and feels tired; do draw easy chuckles but lead nowhere.; stupid, infantile, redundant, sloppy</p></td><td class="cell"><p>shot in rich , shadowy black-and-white , devils an escapist con­fection that 's pure entertainment .; , deeply absorbing piece that works as a; ... one of the most ingenious and entertaining; film is a riveting , brisk delight .; bringing richer meaning to the story 's;</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Most previous work is centered around a given sentiment lexicon or building one via heuristics (Kim and Hovy, 2007; Esuli and Sebastiani, 2007), manual annotation (Das and Chen, 2001) or machine learning techniques (Turney, 2002). In contrast, we do not require an initial or constructed sentiment lex­icon of positive and negative words. In fact, when training our approach on documents or sentences, it jointly learns such lexica for both single words and n-grams (see Table 5). (Mao and Lebanon, 2007) propose isotonic conditional random fields and dif­ferentiate between local, sentence-level and global, document-level sentiment.</p><p>The work of (Polanyi and Zaenen, 2006; Choi and Cardie, 2008) focuses on manually constructing sev­eral lexica and rules for both polar words and re­lated content-word negators, such as "prevent can­cer", where <i>prevent </i>reverses the negative polarity of <i>cancer. </i>Like our approach they capture composi­tional semantics. However, our model does so with­out manually constructing any rules or lexica.</p><p>Recently, (Velikovich et al., 2010) showed how to use a seed lexicon and a graph propagation frame­work to learn a larger sentiment lexicon that also in­cludes polar multi-word phrases such as "once in a life time". While our method can also learn multi­word phrases it does not require a seed set or a large web graph. (Nakagawa et al., 2010) introduced an approach based on CRFs with hidden variables with very good performance. We compare to their state-of-the-art system. We outperform them on the stan­dard corpora that we tested on without requiring external systems such as POS taggers, dependency parsers and sentiment lexica. Our approach jointly learns the necessary features and tree structure.</p><p>In multi-aspect rating (Snyder and Barzilay, 2007) one finds several distinct aspects such as food or ser­vice in a restaurant and then rates them on a fixed linear scale such as 1-5 stars, where all aspects could obtain just 1 star or all aspects could obtain 5 stars independently. In contrast, in our method a single aspect (a complex reaction to a human experience) is predicted not in terms of a fixed scale but in terms of a <i>multinomial distribution </i>over several intercon­nected, sometimes mutually exclusive emotions. A single story cannot simultaneously obtain a strong reaction in different emotional responses (by virtue of having to sum to one).</p></subsection></section><section number="6" title="Conclusion"><p>We presented a novel algorithm that can accurately predict sentence-level sentiment distributions. With­out using any hand-engineered resources such as sentiment lexica, parsers or sentiment shifting rules, our model achieves state-of-the-art performance on commonly used sentiment datasets. Furthermore, we introduce a new dataset that contains distribu­tions over a broad range of human emotions. Our evaluation shows that our model can more accu­rately predict these distributions than other models.</p></section><section title="Acknowledgments"><p>We gratefully acknowledge the support of the Defense Advanced Research Projects Agency (DARPA) Machine Reading Program under Air Force Research Laboratory (AFRL) prime contract no. FA8750-09-C-0181. Any opinions, findings, and conclusion or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the view of DARPA, AFRL, or the US government. This work was also supported in part by the DARPA Deep Learning program under contract number FA8650-10-C-7020.</p><p>We thank Chris Potts for help with the EP data set, Ray­mond Hsu, Bozhi See, and Alan Wu for letting us use their system as a baseline and Jiquan Ngiam, Quoc Le, Gabor Angeli and Andrew Maas for their feedback.</p></section><references><p>P. Beineke, T. Hastie, C. D. Manning, and S. Vaithyanathan. 2004. Exploring sentiment summarization. In <i>Proceedings of the AAAI Spring Symposium on Exploring Attitude and Affect in Text: Theories and Applications.</i></p><p>Y. Bengio, R. Ducharme, P. Vincent, and C. Janvin. 2003. A neural probabilistic language model. <i>Journal ofMa-chine Learning Research, </i>3:1137-1155.</p><doubt alpha="54.0" length="50" tooSmall="False" monospace="0.0">D. M. Blei, A.Y.Ng, and M. I. Jordan. 2003. Latent</doubt><p>dirichlet allocation. <i>Journal ofMachine Learning Re­search., </i>3:993-1022.</p><page local="11" global="161"/><p>Y. Choi and C. Cardie. 2008. Learning with composi­tional semantics as structural inference for subsenten-tial sentiment analysis. In <i>EMNLP.</i></p><p>R. Collobert and J. Weston. 2008. A unified archi­tecture for natural language processing: deep neural networks with multitask learning. In <i>Proceedings of ICML, </i>pages 160-167.</p><p>S. Das and M. Chen. 2001. Yahoo! for Amazon: Ex­tracting market sentiment from stock message boards. In <i>Proceedings of the Asia Pacific Finance Association Annual Conference (APFA).</i></p><p>K. Dave, S. Lawrence, and D. M. Pennock. 2003. Min­ing the peanut gallery: Opinion extraction and seman­tic classification of product reviews. In <i>Proceedings of </i>WWW, pages 519-528.</p><p>X. Ding, B. Liu, and P. S. Yu. 2008. A holistic lexicon-based approach to opinion mining. In <i>Proceedings of the Conference on Web Search and Web Data Mining (WSDM).</i></p><p>J. L. Elman. 1991. Distributed representations, simple recurrent networks, and grammatical structure. <i>Ma­chine Learning, </i>7(2-3):195-225.</p><p>A. Esuli and F. Sebastiani. 2007. Pageranking word­net synsets: An application to opinion mining. In <i>Proceedings ofthe Association for Computational Lin­guistics (ACL).</i></p><p>C. Goller and A. Kuchler. 1996. Learning task-dependent distributed representations by backpropaga-tion through structure. In <i>Proceedings ofthe Interna­tional Conference on Neural Networks (ICNN-96).</i></p><p>G. Grefenstette, Y. Qu, J. G. Shanahan, and D. A. Evans. 2004. Coupling niche browsers and affect analysis for an opinion mining application. In <i>Proceedings of Recherche d'Information Assistée par Ordinateur (RIAO).</i></p><p>D. Ikeda, H. Takamura, L. Ratinov, and M. Okumura. 2008. Learning to shift the polarity of words for senti­ment classification. In <i>IJCNLP.</i></p><p>S. Kim and E. Hovy. 2007. Crystal: Analyzing predic­tive opinions on the web. In <i>EMNLP-CoNLL.</i></p><p>A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts. 2011. Learning accurate, compact, and interpretable tree annotation. In <i>Proceedings ofACL.</i></p><p>Y. Mao and G. Lebanon. 2007. Isotonic Conditional Random Fields and Local Sentiment Flow. In <i>NIPS.</i></p><p>P. Mirowski, M. Ranzato, and Y. LeCun. 2010. Dynamic auto-encoders for semantic indexing. In <i>Proceedings of the NIPS 2010 Workshop on Deep Learning.</i></p><p>T. Nakagawa, K. Inui, and S. Kurohashi. 2010. Depen­dency tree-based sentiment classification using CRFs with hidden variables. In <i>NAACL, </i>HLT.</p><p>B. Pang and L. Lee. 2004. A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. In <i>ACL.</i></p><p>B. Pang and L. Lee. 2005. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In ACL, pages 115-124.</p><p>B. Pang and L. Lee. 2008. Opinion mining and senti­ment analysis. <i>Foundations and Trends in Information Retrieval, </i>2(1-2):1-135.</p><p>B. Pang, L. Lee, and S. Vaithyanathan. 2002. Thumbs up? Sentiment classification using machine learning techniques. In <i>EMNLP.</i></p><p>J. W. Pennebaker, R.J. Booth, and M. E. Francis. 2007. Linguistic inquiry and word count: Liwc2007 opera­tors manual. University of Texas.</p><p>L. Polanyi and A. Zaenen. 2006. Contextual valence shifters.</p><p>J. B. Pollack. 1990. Recursive distributed representa­tions. <i>Artificial Intelligence, </i>46:77-105, November.</p><p>C. Potts. 2010. On the negativity of negation. In David Lutz and Nan Li, editors, <i>Proceedings ofSemantics and Linguistic Theory 20. </i>CLC Publications, Ithaca,</p><p>NY.</p><p>B. Snyder and R. Barzilay. 2007. Multiple aspect rank­ing using the Good Grief algorithm. In <i>HLT-NAACL.</i></p><p>R. Socher, C. D. Manning, and A. Y. Ng. 2010. Learning continuous phrase representations and syntactic pars­ing with recursive neural networks. In <i>Proceedings of the NIPS-2010 Deep Learning and Unsupervised Fea­ture Learning Workshop.</i></p><p>R. Socher, C. C. Lin, A. Y. Ng, and C. D. Manning.</p><p>2011. Parsing Natural Scenes and Natural Language with Recursive Neural Networks. In <i>ICML.</i></p><p>P. J. Stone. 1966. <i>The General Inquirer: A Computer Approach to Content Analysis. </i>The MIT Press.</p><p>J. Turian, L. Ratinov, and Y. Bengio. 2010. Word rep­resentations: a simple and general method for semi-supervised learning.  In <i>Proceedings ofACL, </i>pages 384-394.</p><p>P. Turney. 2002. Thumbs up or thumbs down? Seman­tic orientation applied to unsupervised classification of reviews. In <i>ACL.</i></p><p>L. Velikovich, S. Blair-Goldensohn, K. Hannan, and R. McDonald. 2010. The viability of web-derived po­larity lexicons. In <i>NAACL, </i>HLT.</p><p>T. Voegtlin and P. Dominey. 2005. Linear Recursive Dis­tributed Representations. <i>Neural Networks, </i>18(7).</p><p>J.Wiebe,T.Wilson,andC.Cardie. 2005. Annotatingex­pressions of opinions and emotions in language. <i>Lan­guage Resources and Evaluation, </i>39.</p><p>T. Wilson, J. Wiebe, and P. Hoffmann. 2005. Recogniz­ing contextual polarity in phrase-level sentiment anal­ysis. In <i>HLT/EMNLP.</i></p><p>H. Yu and V. Hatzivassiloglou. 2003. Towards answer­ing opinion questions: Separating facts from opinions and identifying the polarity of opinion sentences. In <i>EMNLP.</i><i></i></p></references></body></article>