Datasets	The three benchmarking datasets include movie reviews from IMDB, restaurant reviews from Yelp13 and Yelp14 developed by Tang tang2015document. All datasets are tokenized using the Stanford NLP tool  . Table TABREF11 lists statistics of the datasets including the number of classes, number of documents, average length of sentences, the average number of documents per user, and the average number of documents per product. Since postings in social networks by both users and products follow the long tail distribution  , we only show the distribution of total number of posts for different products. For example, #p(0-50) means the number of products which have reviews between the size of 0 to 50. We split train/development/test sets at the rate of 8:1:1 following the same setting in  ,  . The best configuration by the development dataset is used for the test set to obtain the final result.

Performance Evaluation	Four sets of experiments are conducted. The first experiment compares DUPMN with other sentiment analysis methods. The second experiment evaluates the effectiveness of different hop size INLINEFORM0 of memory network. The third experiment evaluates the effectiveness of UMN and PMN in different datasets. The fourth set of experiment examines the effect of memory size INLINEFORM1 on the performance of DUPMN. Performance measures include Accuracy (ACC), Root-Mean-Square-Error (RMSE), and Mean Absolute Error (MAE) for our model. For other baseline methods in Group 2 and Group 3, their reported results are used. We also show the p-value by comparing the result of 10 random tests for both our model and the state-of-the-art model in the t-test . Table TABREF12 shows the result of the first experiment. DUPMN uses one hop (the best performer) with INLINEFORM0 being set at 100, a commonly used memory size for memory networks. Generally speaking, Group 2 performs better than Group 1.

Case Analysis	The review text below is for a sci-fi movie which has the golden label 10 (most positive). However, if it is read as an isolated piece of text, identifying its sentiment is difficult. The LSTM+LA model gives it the rating of 1 (most negative), perhaps because on the surface, there are many negative words like unacceptable, criticize and sucks even though the reviewer is praising the movie. Since our user memory can learn that the reviewer is a fan of sci-fi movies, our DUPMN model indeed gives the correct rating of 10. okay, there are two types of movie lovers: ... they expect to see a Titanic every time they go to the cinema ... this movie sucks? ... it is definitely better than other sci-fi ..... the audio and visual effects are simply terrific and Travolta's performance is brilliant-funny and interesting. what people expect from sci-fi is beyond me ... the rating for Battlefield Earth is below 2.5, which is unacceptable for a movie with such craftsmanship. Scary movie, possibly the worst of all time - ..., has a 6!

Experiment and Result Analysis	Performance evaluations are conducted on three datasets and DUPMN is compared with a set of commonly used baseline methods including the state-of-the-art LSTM based method  ,  .

Figure FIGREF28 shows the result of the evaluation for 1 hop configuration with memory size starting at 1 with 10 points at each increment until size of 75, the increment set to 25 from 75 to 200 to cover most postings. Results show that when memory size increases from 10 to 100, the performance of DUPMN steadily increases. Once it goes beyond 100, DUPMN is no longer sensitive to memory size. This is related to the distribution of document frequency rated by user/product in Table TABREF11 as the average is around 50. With long tail distribution, after 75, not many new documents will be included in the context. To improve algorithm efficiency without much compromise on performance, INLINEFORM1 can be any value that doubles the average. So, values between 100-200 in our algorithm should be quite sufficient.

Best results are marked in bold; second best are underlined in the table The second set of experiments evaluates the effectiveness of DUPMN using different number of hops INLINEFORM0 . Table TABREF26 shows the evaluation results. The number in the brackets after each model name indicates the number of hops used. Two conclusions can be obtained from Table TABREF26 . We find that more hops do not bring benefit. In all the three models, the single hop model obtains the best performance. Unlike video and image information, written text is grammatically structured and contains abstract information such that multiple hops may introduce more information distortion. Another reason may be due to over-fitting by the additional hops. Comparing the performance of DUPMN-U and DUPMN-P in Table TABREF26 , it also shows that user memory and product memory indeed provide different kinds of information and thus their usefulness are different in different datasets. For the movie review dataset, IMDB, which is more subjective, results show that user profile information using DUPMN-U outperforms DUPMN-P as there is a 1.3% gain compared to that of DUPMN-P.

This is because Group 1 uses a traditional SVM with feature engineering  and Group 2 uses more advanced deep learning methods proven to be effective by recent studies  ,  . However, some feature engineering methods are no worse than some deep learning methods. For example, the TextFeature model outperforms SSWE by a significant margin. When comparing Group 2 and Group 3 methods, we can see that user profiles and product information can improve performance as most of the methods in Group 3 perform better than methods in Group 2. This is more obvious in the IMDB dataset which naturally contains more subjectivity. In the IMDB dataset, almost all models with user and product information outperform the text-only models in Group 2 except LSTM+CBA  . However, the two LSTM models in Group 2 which include local attention mechanism do show that attention base methods can outperform methods using user profile and product information. In fact, the LSTM+CBA model using attention mechanism based on cognition grounded eye-tracking data in Group 2 outperforms quite a number of methods in Group 3.

Dual Memory Network Model for Biased Product Review Classification	In sentiment analysis (SA) of product reviews, both user and product information are proven to be useful. Current tasks handle user profile and product information in a unified model which may not be able to learn salient features of users and products effectively. In this work, we propose a dual user and product memory network (DUPMN) model to learn user profiles and product reviews using separate memory networks. Then, the two representations are used jointly for sentiment prediction. The use of separate models aims to capture user profiles and product information more effectively. Compared to state-of-the-art unified prediction models, the evaluations on three benchmark datasets, IMDB, Yelp13, and Yelp14, show that our dual learning model gives performance gain of 0.6%, 1.2%, and 0.9%, respectively. The improvements are also deemed very significant measured by p-values.

However, on restaurant reviews in Yelp datasets, DUPMN-P performs better than DUPMN-U indicating product information is more valuable. To further examine the effects of UMN and PMN on sentiment classification, we observe the difference of optimized values of the constant weights INLINEFORM0 and INLINEFORM1 between the UMN and the PMN given in Formula EQREF9 . The difference in their values indicates the relative importance of the two networks. The optimized weights given in Table TABREF27 on the three datasets show that user profile has a higher weight than product information in IMDB because movie review is more related to personal preferences whereas product information has a higher weight in the two restaurant review datasets. This result is consistent with the evaluation in Table TABREF26 on DUPMN-U and DUPMN-P. Most social network data follows the long tail distribution. If the memory size to represent the data is too small, some context information will be lost. On the other hand, too large memory size which requires more resources in computation and storage may not introduce much benefit. Thus, the fourth set of experiments evaluates the effect of dimension size INLINEFORM0 in the DUPMN memory networks.

Neural Network Models	In recent years, deep learning has greatly improved the performance of sentiment analysis. Commonly used models include Convolutional Neural Networks (CNNs)  , Recursive Neural Network (ReNNs)  , and Recurrent Neural Networks (RNNs)  . RNN naturally benefits sentiment classification because of its ability to capture sequential information in text. However, standard RNNs suffer from the so-called gradient vanishing problem  where gradients may grow or decay exponentially over long sequences. LSTM models are adopted to solve the gradient vanishing problem. An LSTM model provides a gated mechanism to keep the long-term memory. Each LSTM layer is generally followed by mean pooling and the output is fed into the next layer. Experiments in datasets which contain sentences and long documents demonstrate that LSTM model outperforms the traditional RNNs  ,  . Attention mechanism is also added to LSTM models to highlight important segments at both sentence level and document level. Attention models can be built from text in local context  , user/production information  ,  and other information such as cognition grounded eye tracking data  .

Introduction	Written text is often meant to express sentiments of individuals. Recognizing the underlying sentiment expressed in the text is essential to understand the full meaning of the text. The SA community is increasingly interested in using natural language processing (NLP) techniques as well as sentiment theories to identify sentiment expressions in the text. Recently, deep learning based methods have taken over feature engineering approaches to gain further performance improvement in SA. Typical neural network models include Convolutional Neural Network (CNN)  , Recursive auto-encoders  , Long-Short Term Memory (LSTM)  , and many more. Attention-based models are introduced to highlight important words and sentences in a piece of text. Different attention models are built using information embedded in the text including users, products and text in local context  ,  ,  ,  . In order to incorporate other aspects of knowledge, Qian et al. qian2016linguistically developed a model to employ additional linguistic resources to benefit sentiment classification. Long et al.long2017cognition and Mishra et al.mishra2016leveraging proposed cognition-based attention models learned from cognition grounded eye-tracking data. Most text-based SA is modeled as sentiment classification tasks.

Incorporating User and Product Information	Both user profile and product information have crucial effects on sentiment polarities. Tang et al. tang2015learning proposed a model by incorporating user and product information into a CNN network for document level sentiment classification. User ids and product names are included as features in a unified document vector using the vector space model such that document vectors capture important global clues include individual preferences and product information. Nevertheless, this method suffers from high model complexity and only word-level preference is considered rather than information at the semantic level  . Gui et al. gui2016intersubjectivity introduce an inter-subjectivity network to link users to the terms they used as well as the polarities of the terms. The network aims to learn writer embeddings which are subsequently incorporated into a CNN network for sentiment analysis. Chen et al. chen2016neural propose a model to incorporate user and product information into an LSTM with attention mechanism. This model is reported to produce the state-of-the-art results in the three benchmark datasets (IMDB, Yelp13, and Yelp14). Dou dou2017capturing also proposes a deep memory network to integrate user profile and product information in a unified model.

LSTM models with attention mechanism are currently the state-of-the-art models in document sentiment analysis tasks  ,  . Memory networks are designed to handle larger context for a collection of documents. Memory networks introduce inference components combined with a so called long-term memory component  . The long-term memory component is a large external memory to represent data as a collection. This collective information can contain local context  or external knowledge base  . It can also be used to represent the context of users and products globally  . Dou uses dou2017capturing a memory network model in document level sentiment analysis and makes comparable result to the state-of-the-art model  .

Acknowledgments	The work is partially supported by the research grants from Hong Kong Polytechnic University (PolyU RTVU) and GRF grant (CERG PolyU 15211/14E, PolyU 152006/16E).

Related Work	Related work includes neural network models and the use of user/product information in sentiment analysis.

Results show that leveraging user profile and product information separately can be more effective for sentiment predictions. The rest of this paper is organized as follows. Section SECREF2 gives related work, especially memory network models. Section SECREF3 introduces our proposed DUPMN model. Section SECREF4 gives the evaluation compared to state-of-the-art methods on three datasets. Section SECREF5 concludes this paper and gives some future directions in sentiment analysis models to consider individual bias.

The DUPMN Model	We propose a DUPMN model. Firstly, document representation is learned by a hierarchical LSTM network to obtain both sentence-level representation and document level representation  . A memory network model is then trained using dual memory networks, one for training user profiles and the other for training product reviews. Both of them are joined together to predict sentiment for documents.

Therefore, sentiment prediction of a product should give dual consideration to individual users as well as all reviews as a collection. In this paper, we address the aforementioned issue by proposing to learn user profiles and product review information separately before making a joint prediction on sentiment classification. In the proposed Dual User and Product Memory Network (DUPMN) model, we first build a hierarchical LSTM  model to generate document representations. Then a user memory network (UMN) and a product memory network (PMN) are separately built based on document representation of user comments and product reviews. Finally, sentiment prediction is learned from a dual model. To validate the effectiveness of our proposed model, evaluations are conducted on three benchmarking review datasets from IMDB and Yelp data challenge (including Yelp13 and Yelp14)  . Experimental results show that our algorithm can outperform baseline methods by large margins. Compared to the state-of-the-art method, DUPMN made 0.6%, 1.2%, and 0.9% increase in accuracy with p-values 0.007, 0.004, and 0.001 in the three benchmark datasets respectively.

However, the model only achieves a comparable result to the state-of-the-art attention based LSTM  .

The loss function is defined by the cross entropy between the prediction from INLINEFORM1 and the ground truth labels.

Task Definition	Let INLINEFORM0 be the set of review documents for classification, INLINEFORM1 be the set of users, and INLINEFORM2 be the set of products. For each document INLINEFORM3 ( INLINEFORM4 ), user INLINEFORM5 ( INLINEFORM6 ) is the writer of INLINEFORM7 on product INLINEFORM8 ( INLINEFORM9 ). Let INLINEFORM10 be all documents posted by INLINEFORM11 and INLINEFORM12 be all documents on INLINEFORM13 . INLINEFORM14 and INLINEFORM15 define the user context and the product context of INLINEFORM16 , respectively. For simplicity, we use INLINEFORM17 and INLINEFORM18 directly. The goal of a sentiment analysis task is to predict the sentiment label for each INLINEFORM19 .

Document Embedding	Since review documents for sentiment classification such as restaurant reviews and movie comments are normally very long, a proper method to embed the documents is needed to speed up the training process and achieve better accuracy. Inspired by the work of Chen  , a hierarchical LSTM network is used to obtain embedding representation of documents. The first LSTM layer is used to obtain sentence representation by the hidden state of an LSTM network. The same mechanism is also used for document level representation with sentence-level representation as input. User and product attentions are included in the network so that all salient features are included in document representation. For document INLINEFORM0 , its embedding is denoted as INLINEFORM1 . INLINEFORM2 is a vector representation with dimension size INLINEFORM3 . In principle, the embedding representation of user context of INLINEFORM4 , denoted by INLINEFORM5 , and product context INLINEFORM6 vary depending on INLINEFORM7 . For easy matrix calculation, we take INLINEFORM8 as our model parameter so that INLINEFORM9 and INLINEFORM10 are two fixed INLINEFORM11 matrices.

Memory Network Structure	Inspired by the successful use of memory networks in language modeling, question answering, and sentiment analysis  ,  ,  , we propose our DUPMN by extending a single memory network model to two memory networks to reflect different influences from users' perspective and products' perspective. The structure of the model is shown in Figure FIGREF6 with 3 hops as an example although in principle a memory network can have INLINEFORM0 computational hops. The DUPMN model has two separate memory networks: the UMN and the PMN. Each hop in a memory network includes an attention layer INLINEFORM0 and a linear addition INLINEFORM1 . Since the external memory INLINEFORM2 and INLINEFORM3 have the same structure, we use a generic notation INLINEFORM4 to denote them in the following explanations. Each document vector INLINEFORM5 is fed into the first hop of the two networks ( INLINEFORM6 = INLINEFORM7 ).

Each INLINEFORM8 ( k= 1 ...... K-1) passes through the attention layer using an attention mechanism defined by a softmax function to obtain the attention weights INLINEFORM9 for document INLINEFORM10 : DISPLAYFORM0  And to produce an attention weighted vector INLINEFORM0 by DISPLAYFORM0   INLINEFORM0 is then linearly added to INLINEFORM1 to produce the output of this hop as INLINEFORM2 . After completing the INLINEFORM0 th hop, the output INLINEFORM1 in UMN and INLINEFORM2 in PMN are joined together using a weighted mechanism to produce the output of DUPMN, INLINEFORM3 , is given below: DISPLAYFORM0  Two different weight vectors INLINEFORM0 and INLINEFORM1 in Formula EQREF9 can be trained for UMN and PMN. INLINEFORM2 and INLINEFORM3 are two constant weights to reflect the relative importance of user profile INLINEFORM4 and product information INLINEFORM5 . The parameters in the model including INLINEFORM6 , INLINEFORM7 , INLINEFORM8 and INLINEFORM9 . By minimizing the loss, those parameters can be optimized. Sentiment prediction is obtained through a INLINEFORM0 layer.

Another direction is to explore how knowledge-based information can be incorporated to further improve sentiment classification tasks.

Baseline Methods	In order to make a systematic comparison, three groups of baselines are used in the evaluation. Group 1 includes all commonly used feature sets mentioned in Chen et al. chen2016neural including Majority, Trigram, Text features (TextFeatures), and AveWordvec. All feature sets in Group 1 except Majority use the SVM classifier. Group 2 methods include the recently published sentiment analysis models which only use context information, including: SSWE  — An SVM model using sentiment specific word embedding. RNTN+RNN  — A Recursive Neural Tensor Network (RNTN) to represent sentences. CLSTM  — A Cached LSTM model to capture overall semantic information in long text. LSTM+LA  — A state-of-the-art LSTM using local context as attention mechanism at both sentence level and document level. LSTM+CBA  — A state-of-the-art LSTM model using cognition based data to build attention mechanism. Group 3 methods are recently published neural network models which incorporate user and product information, including: UPNN  — User and product information for sentiment classification at document level based on a CNN network.

UPDMN  — A deep memory network for document level sentiment classification by including user and product information in a unified model. Hop 1 gives the best result, and thus K=1 is used. InterSub  — A CNN model making use of user and product information. LSTM+UPA  — The state-of-the-art LSTM including both local context based attentions and user/product in the attention mechanism. For the DUPMN model, we also include two variations which use only one memory network. The first variation only includes user profiles in the memory network, denoted as DUPMN-U. The second variation only uses product information, denoted as DUPMN-P.

LSTM+CBA in Group 2 is only inferior to LSTM+UPA in Group 3 because of the additional user profile and production information used in LSTM+UPA. Most importantly, the DUPMN model with both user memory and product memory significantly outperforms all the baseline methods including the state-of-the-art LSTM+UPA model  . By using user profiles and product information in memory networks, DUPMN outperforms LSTM+UPA in all three datasets. In the IMDB dataset, our model makes 0.6 % improvement over LSTM+UPA in accuracy with INLINEFORM0 of 0.007. Our model also achieves lower RMSE value. In the Yelp review dataset, the improvement is even more significant. DUPMN achieves 1.2% improvement in accuracy in Yelp13 with INLINEFORM1 of 0.004 and 0.9% in Yelp14 with INLINEFORM2 of 0.001, and the lower RMSE obtained by DUPMN also indicates that the proposed model can predict review ratings more accurately.

maybe we should all be a little more subtle when we criticize movies... especially sci-fi.., since they have become an endangered genre ... give this movie the recognition it deserves.

Conclusion and Future Work	We propose a novel dual memory network model for sentiment predictions. We argue that user profile and product information are fundamentally different as user profiles reflect more on subjectivity whereas product information reflects more on salient features of products at aggregated level. Based on this hypothesis, two separate memory networks for user context and product context are built at the document level through a hierarchical learning model. The inclusion of an attention layer can further capture semantic information more effectively. Evaluation on three benchmark review datasets shows that the proposed DUPMN model outperforms the current state-of-the-art systems with significant improvements shown in p-value of 0.007, 0.004 and 0.001 respectively. We also show that single hop memory networks is the most effective model. Evaluation results show that user profile and product information are indeed different and have different effects on different datasets. In more subjective datasets such as IMDB, the inclusion of user profile information is more important. Whereas on more objective datasets such as Yelp data, collective information of restaurant plays a more important role in classification. Future works include two directions. One direction is to explore the contribution of user profiles and product information in aspects level sentiment analysis tasks.

In this work, SA is for product reviews. We use the term users to refer to writers of text, and products to refer to the targets of reviews in the text. A user profile is defined by the collection of reviews a user writes. Product information defined for a product is the collection of reviews for this product. Note that user profiles and product information are not independent of each other. That is one reason why previous works use unified models. By commonsense we know that review text written by a person may be subjective or biased towards his/her own preferences. Lenient users tend to give higher ratings than finicky ones even if they review the same products. Popular products do receive higher ratings than those unpopular ones because the aggregation of user reviews still shows the difference in opinion for different products. While users and products both play crucial roles in sentiment analysis, they are fundamentally different. Reviews written by a user can be affected by user preference which is more subjective whereas reviews for a product are useful only if they are from a collection of different reviewers, because we know individual reviews can be biased. The popularity of a product tends to reflect the general impression of a collection of users as an aggregated result.

Question: What statistical test is performed?
Answer: t-test