Context Aware Contrastive Opinion Summarization

. Model-based approaches for context-sensitive contrastive summarization depend on hand-crafted features for producing a summary. Deriving these hand-crafted features using machine learning algorithms is computationally expensive. This paper presents a deep learning approach to provide an end-to-end solution for context-sensitive contrastive summarization. A hierarchical attention model referred to as Contex-tual Sentiment LSTM (CSLSTM) is proposed to automatically learn the representations of context, feature and opinion words present in review documents of each entity. The resultant document context vector is a high-level representation of the document. It is used as a feature for context-sensitive classiﬁcation and summarization. Given a set of summaries from positive class and a negative class of two entities, the summaries which have high contrastive score are identiﬁed and presented as context-sensitive contrastive summaries. Experimental results on restaurant dataset show that the proposed model achieves better performance than the baseline models.


Introduction
Accumulating opinions from review documents is termed opinion summarization.There are two types of opinion summarization techniques: extraction-and abstraction-based summarization.A summary is developed by selecting certain prominent input sentences in extraction-based techniques.Abstractive summarization techniques produce novel summaries by rephrasing sentences which are rather abstractive in nature.A feature-based summarization is an abstractionbased method that presents the opinion distribution of each feature separately and helps users to make better decisions.
Though different summarization techniques have been proposed, there is still a need for summarizing different opinions about a particular feature of different products.Contrastive opinion summarization methods produce a summary consisting of a set of contrastive sentence pairs by choosing the most representative and comparable sentences from two sets of positively and negatively opinionated sentences.Such a summary helps users easily interpret contrastive opinions about a product or service.Most of the present works on contrastive summarization select contrastive sentences only based on the explicit opinion words present.The context information is also necessary to understand the implicit opinion present in the sentences.For example, the sentence "city gas mileage is horrible", does not convey a negative sentiment always.It conveys that for city traffic, mileage is not good.It would be helpful for the users if the context (reason) is also considered while producing summaries.
Context refers to the circumstances in terms of which an event or entity can be fully understood.Text data is associated with rich context information.Meaning of an unknown word can be guessed by looking at the context words surrounding that word [8].Deriving these context words using a machine learning algorithm is computationally expensive [3,7].Model-based approaches rely on hand-crafted features produced by machine learning algorithm for producing a contrastive summary.In this work, an end-to-end deep learning framework is proposed for the problem of context-sensitive contrastive opinion summarization.

Related work
The emergence of deep neural networks has motivated the researchers to model the abstractive summarization task using different network architectures.A sequence-to-sequence attention model [17] generates a short summary conditioned on the input sentence.A novel convolutional attention-based decoder [5] generates a summary by focusing on the appropriate input words while preserving the meaning of the sentence.A Feature-rich encoder [15] captures linguistic features in addition to the word embeddings of the input document.To address the problem of out-of-vocabulary words, pointer-generator model was used by the decoder.A general single-document summarization framework [4] applies attention directly to select sentences or words similar to pointer networks for producing a summary.A read-again mechanism based model [26] computes the representation of each word by taking into account the entire sentence not just considering the history of words before the target word.A hierarchical document encoder and an attention-based extractor model [11] incorporated the latent structure information of summaries to improve the quality of summaries generated using abstractive summarization.A selective encoding model [28] selects the encoded information using selective gate from encoder to improve encoding effectiveness and control the information flow to the decoder.A graph-based attention neural model [20] discovers the salient information of a document.In addition to the saliency problem, fluency, non-redundancy and information correctness are addressed using a unified framework.A hierarchical model [12] improves text summarization using significant supervision by the sentiment classifier.The summarizer captures the sentiment orientation of the text thus improving the coherence of the generated summary.
An end -to-end framework [27] integrates the sentence selection strategy with the scoring model to predict the importance of sentence based on the previously selected sentences.The keywords extracted from the text using an extractive model is encoded using a Key Information Guide Network (KIGN) [10].These keywords guides the decoder in summary generation.Thus the method combines the advantage of extractive and abstractive summarization.A multi-layered attentional peephole convolution LSTM network [16] automatically generates summary from a long text.Instead of traditional LSTM, convolution LSTM was used which allows access to the content of previous memory cell through a peephole connection.An LSTM-CNN based model [19] produces abstractive text summarization by taking semantic phrases rather than words as input.The model was able to produce natural sentences as output summary.Most of the existing techniques for summary generation differ in network structure, inference mechanism, and decoding method.In this paper, a neural network model has been proposed for improving the contrastive summary generation process by selecting and encoding essential keywords.

Proposed framework
The proposed context-sensitive contrastive summary model is a sequence-tosequence model with attention and a pointer-generator mechanism.The input of the proposed model is documents of entities taken for comparison.These are a sequence of words passed to an attentive encoder, Contextual Sentiment LSTM Encoder.The encoders outputs are then passed to an attentive decoder which generates a summary using pointer-generator mechanism.The document summaries are then passed to a multi-layer perceptron which computes a contrastive score.The summaries which have high contrastive score are then presented as contrastive summaries.The architecture of the proposed context-sensitive contrastive summary model is shown in Figure 1.The components and variables in the figure are explained in detail in the forthcoming section.

Contextual Sentiment LSTM Encoder
An attention-based Long short-term memory (LSTM) model takes a sequence of words as input and produces a probability distribution quantifying the importance of the target word in each position of the input sequence.An attentive network, the Sentic LSTM was proposed in [13] which adds common sense knowledge concepts from the Senticnet through the recall gate to control information flow in the network based on the target.A Coupled Multi-layer Attention network for the automatic co-extraction of feature and opinion words was proposed in [22].The authors furnished an end-to-end solution by providing a couple of attention with a tensor operator in each layer of the network.The proposed Contextual Sentiment LSTM model is a hierarchical attention model which automatically learns the representation of context, feature and  It consists of a word encoder, a word attention, a sentence encoder, and a sentence attention layer.Word embeddings are given as input to the word encoder in order to avoid the assignment of random weights to the input words during training.The dependency-based word embeddings proposed in [9] is used to generate word embeddings corresponding to the input words.Dependencybased word embeddings are generated based on dependency relation between words and hence best suitable for the problem of opinion summarization.
The word encoder transforms the dependency-based word embeddings into a sequence of hidden outputs.Multi-factor attention is built on top of the hidden outputs: feature words attention, opinion words attention and context words attention.Each attention takes as input the hidden outputs found at the position of the feature, opinion or context words and computes an attention weight over these words by finding the similarity between the hidden vectors and vectors from knowledge bases using a bilinear operator.A sentence context vector is generated by aggregating the context vectors of feature, opinion and context words produced using attention mechanism.
The document encoder transforms the sentence vectors into a sequence of hidden outputs.A document context vector is generated using sentence level attention.The document context vector captures the important information present in the input document.

Context-sensitive contrastive summary model
Given a review document, a Skip-Gram model generates dependency-based word embeddings for each word in the document.The dependency-based word embeddings are given as input to the bi-directional LSTM.The sequence of hidden outputs is produced by concatenation of both the forward and backward hidden outputs.The information flow at the current time step is controlled by input, output and forget gates of the LSTM cell as given by Eq. (1-6) where i t , f t , o t and c t are the input gate, forget gate, output gate and memory cell respectively.W i , W f and W o are the weight matrices, b i , b f , b o and b c are the bias for the input gate, forget gate, output gate and memory cell respectively, and w t is the word vector for the current word.The sequence of hidden outputs produced is denoted by H = { h 1 , h 2 ,...,h N }, where each hidden element is a concatenation of both the forward and backward hidden outputs.

Word attention
It is essential to learn the embedding vector for each feature, opinion and context word present in a sentence for the problem of context-sensitive summarization.
Hence three attentions: Feature attention, opinion attention and context attention are explored.
The ConceptNetNumberbatch embeddings proposed in [20] is used to guide the network to attend to the feature words present in a document for feature attention.The AffectiveSpace embeddings proposed in [2] is used as a source of attention for opinion words.The context hints gathered from different user surveys are utilized to build attention source vector for context words.
The sentence context vector is acquired by fusing together the vectors of feature, opinion and context.The context vector captures the most important features of a sentence with respect to feature, opinion and context words.

Sentence attention
Sentence level attention guides the network to attend the most important sentences in a document that serve as clues for sentiment classification.A sentence attention weight is calculated by introducing a sentence attention source vector.

Context-Sensitive Sentiment Classification
The document context vector is fed into a unidirectional LSTM which converts it into a vector whose length is equivalent to the quantity of classes {positive, negative}.The softmax layer changes the vector to a conditional probability distribution.

Context-Sensitive Summary Generation
For constructing a context-sensitive summary of the input document a unidirectional LSTM is used as a decoder.The hidden state of the decoder is updated using the document context vector and the previous decoder state.
The pointer-generator network proposed in [18] is adopted on top of LSTM for generating summaries.The pointer-generator network generates summary by copying important words from the input document via pointing and generating words from a fixed vocabulary.At each time step, the generator selects and outputs an important word from a distribution of words computed through a softmax layer.The pointer network directly copies a word based on attention mechanism from the input document to the output summary.

Context-Sensitive Contrastive Summary Generation
Given a set of summaries from two entities, the summaries which have high contrastive score are identified and presented as contrastive summaries.To compute contrastive score, the element-wise product of summary vectors is given as input to a Multi-layer perceptron.

Experimental results
Experiments are conducted on SemEval 2014 task 4 restaurant reviews dataset in [14].The restaurant dataset consists of 1,125,457 documents with a vocabulary size of 476,191.Since the restaurant dataset is large, a sample of 50,000 documents is taken for experimentation to reduce the training time of the model.The sentences are annotated with feature, opinion and context labels for word attention as given in Table 1.For context-sensitive sentiment classification, the feature words are annotated with their corresponding polarities as shown in Table 2.The statistics of the datasets used for context-sensitive summary generation is shown in Table 3.Initially, sentences are tokenized using sentiment-aware tokenizer and words that occur less than 100 times are filtered.All the word vectors are initialized by Dependency-based word embeddings in [9].The dimension of word embeddings is set to 300.The dependency-based word embeddings capture arbitrary contexts based on dependency relation between words which helps the proposed CSLSTM model to learn better weights.The dependency-based word embeddings are converted into hidden representations through CSLSTM model implemented with Theano library stated in [1].The number of hidden units is set to 50.For training, a batch size of 30 samples was used.AdaGrad optimizer is used for minimizing the training loss with a learning rate of 0.01.

Context-Sensitive Sentiment Classification using Soft-Max Classifier
The sentiment classifier takes the feature, opinion and context words identified using CSLSTM as input and determines the polarity of each feature word.From the sample sentence shown in Figure 3, it can be seen that the classifier detects a multi-word phrase "delivery times" as a feature with the help of feature attention source "service" and determines its polarity as "positive" based on context "city" detected using context attention source.The classifier predicts the correct polarity of a feature even if the sentence is long and has a complicated structure.

Context-Sensitive Summary Generation Using Pointer-Generator Network
For the pointer-generator network, the generator vocabulary size is set to 20k based on most attended words using an attention mechanism.A sample contextsensitive summary generated for restaurant dataset is shown in Table 4.It can be seen that the model repeats some of the phrases in the reference summary.
Rarely the model generates summary consisting of words that is not truthful with respect to the input document.
Table 4. Sample context-sensitive summary generated using pointer-generator network for restaurant dataset.
DocumentAll the appetizers and salads were fabulous, the steak was mouth watering and the pasta was delicious!!!The sweet lassi was excellent as was the lamb chettinad and the garlic naan but the rasamalai was forgettable.. Gold summaryFood was excellent with a wide range of choices and good services.It was a bit expensive though.
Context-sensitive summaryExcellent food with a wide range of choices and good services.

Summary Generation by Selecting Sentences Using Contrastive Score
The summaries that have high contrastive score are identified and chosen for a summary generation.Table 5 shows the sample contrastive summary pairs of Restaurant X and Restaurant Y.
6 Performance analysis of proposed context-sensitive summary method with existing methods The performance of the proposed method is evaluated in terms of F 1 score, accuracy and ROUGE metrics.Definitely not worth the price great place to dine for dinner place I would reconsider revisiting for dinner

Word Attention
The attention results of the proposed CSLSTM model is compared with two existing methods, RNCRF [23] and CMLA [22].Attention in RNCRF model is based on pre-extracted syntactic relations.The CMLA model uses multi-layer attentions with tensors to learn the interaction between features and opinions.
F 1 score F 1 score is used to measure the accuracy of attention.It is based on the precision and recall score of the test dataset.It is represented by Eq.( 16): A comparison of F 1 scores of word attention by CSLSTM and existing methods for restaurant dataset is shown in Table 6.The RNCRF and CMLA models attend only to the feature and opinion words in a sentence.The CSLSTM model attends to the context words in addition to feature and opinion words.The proposed model outperforms existing models as the model attends to important words based on attention sources.

Context-Sensitive Sentiment Classification
The sentiment classification results are compared with two existing methods, Sentic LSTM [13]and ATAE-LSTM [24].The Sentic-LSTM model replaces the encoder with a knowledge embedded LSTM for filtering data that does not coordinate with ideas in the knowledge base.ATAE-LSTM model incorporates feature embeddings into the representation of a sentence.
Accuracy Accuracy is the ratio of the correctly classified sentences to the total number of sentences in the dataset.It is represented by Equation ( 17): Figure 4 illustrates the comparison of the accuracy of sentiment classification by proposed CSLSTM with existing methods for restaurant dataset with respect to sentence length.The ATAE-LSTM performs better than the Sentic LSTM as it captures impor- tant information pertaining to a given feature for sentiment classification.The Sentic LSTM performs slightly lower level than the ATAE-LSTM, as knowledge base ideas may at times delude the network to manage words irrelevant to features.The CSLSTM network achieves the best performance of all, as it discriminates information in response to given feature, opinion and context inputs.

Context-Sensitive Summary Generation
The summary generated using the proposed CSLSTM model is compared with two existing models, MARS model [25] and pointer-generator model [18].MARS is a sentiment-aware abstractive summarization system which leverages on textcategorization to improve the performance of summarization.Pointer-generator model introduces coverage based network to avoid repetition of phrases in the summary.

ROUGE
The results of summarization are evaluated using three different metrics provided by ROUGE.In addition to the two metrics ROUGE-1 and ROUGE-2, ROUGE-L is taken as the third metric for evaluation.ROUGE-1 : The number of unigrams in common between human summary and model summary.ROUGE-2 : Captures bigram overlap, thus measuring the readability of summaries.ROUGE-L : The longest common sequence between the reference summary and model summary.
Table 5 shows the comparison of ROU GE F 1−score of the summary produced by CSLSTM and existing methods.The attention of important phrases in the document by the proposed CSLSTM model results in great ROU GE −1 F 1−Score of around 36 in restaurant dataset.The proposed model also achieves a high ROU GE − L F 1−Score compared to existing models.

Summary
The proposed attentive neural network architecture improves the performance of context-sensitive contrastive summarization using attention mechanism.Different from existing works, the proposed architecture includes multi-factor attention mechanism into the encoder-decoder used for summary generation.The three kinds of attention (i.e., feature attention, opinion attention, and context attention) selectively attend to the significant information when decoding summaries.The context vector obtained by encoding feature, opinion and context information is classified using a softmax classifier.Experimental results show that the classifiers incorporating context-sensitive information outperform the state-of-the-art models in terms of classification accuracy.The summary generated using the attention of a few important phrases in the document achieved a good rouge score than existing methods.

Fig. 2 .
Fig. 2. Attention mechanism of the proposed Contextual Sentiment LSTM Model

Fig. 4 .
Fig. 4. Comparison of accuracy of sentiment classification by proposed CSLSTM with existing methods for restaurant dataset with respect to sentence length.

Table 1 .
Dataset description for word attention.

Table 2 .
Feature distribution per sentiment class.

Table 3 .
Statistics of the dataset for a context-sensitive summary generation.

Table 5 .
Sample contrastive summary pairs of Restaurant X and Restaurant Y.

Table 6 .
Comparison of F1 score of word attention by CSLSTM with existing models for restaurant dataset.

Table 7 .
Comparison of ROU GEF 1−score of summarization by CSLSTM with existing models for restaurant dataset.