[Paper Review] Aspect Level Sentiment Classification with Deep Memory Network
This paper proposes a deep memory network for aspect-level sentiment classification that explicitly models the importance of context words using multiple layers of content- and location-based attention over an external memory. The approach outperforms LSTM and attention-based LSTM models in both accuracy and speed, achieving performance comparable to state-of-the-art feature-based SVM systems on SemEval 2014 datasets.
We introduce a deep memory network for aspect level sentiment classification. Unlike feature-based SVM and sequential neural models such as LSTM, this approach explicitly captures the importance of each context word when inferring the sentiment polarity of an aspect. Such importance degree and text representation are calculated with multiple computational layers, each of which is a neural attention model over an external memory. Experiments on laptop and restaurant datasets demonstrate that our approach performs comparable to state-of-art feature based SVM system, and substantially better than LSTM and attention-based LSTM architectures. On both datasets we show that multiple computational layers could improve the performance. Moreover, our approach is also fast. The deep memory network with 9 layers is 15 times faster than LSTM with a CPU implementation.
Motivation & Objective
- To address the limitation of recurrent models like LSTM in explicitly identifying salient context words for aspect sentiment prediction.
- To develop a data-driven, computationally efficient method that captures the importance of each context word relative to a given aspect.
- To improve sentiment classification performance by leveraging multiple computational layers over an external memory with shared parameters.
- To enable end-to-end training using gradient descent without reliance on syntactic parsers or sentiment lexicons.
- To demonstrate that multi-hop attention mechanisms over memory can yield better representations than single-hop or sequential models.
Proposed method
- The model uses a stack of multiple computational layers, each implementing a content- and location-based attention mechanism over an external memory matrix.
- Each layer computes attention weights for context words based on their relevance to the aspect, using a query vector derived from the aspect and context representations.
- The attention mechanism computes a weighted sum of context vectors, where weights reflect both semantic relevance (content) and positional importance (location).
- The output of each layer is passed to the next, with shared parameters across layers, enabling hierarchical abstraction of context importance.
- The final layer’s output serves as the sentence representation for sentiment classification, with the entire network trained end-to-end via backpropagation using cross-entropy loss.
- The model does not require pre-trained word embeddings, syntactic parsing, or sentiment lexicons, relying solely on learned representations and attention.
Experimental results
Research questions
- RQ1Can a deep memory network with multiple attention layers explicitly model the importance of context words for aspect sentiment classification more effectively than recurrent models?
- RQ2Does the integration of both content and location information in attention mechanisms lead to better performance than content-only attention?
- RQ3How does the performance of the deep memory network compare to state-of-the-art feature-based SVM and sequence-based neural models like LSTM?
- RQ4Can multiple computational layers (hops) in the memory network improve classification accuracy compared to a single-layer approach?
- RQ5Is the proposed model significantly faster than standard LSTM-based architectures in practice?
Key findings
- The deep memory network achieves performance comparable to the state-of-the-art feature-based SVM system on both the laptop and restaurant datasets from SemEval 2014.
- The model outperforms both standard LSTM and attention-based LSTM architectures in terms of classification accuracy on both datasets.
- The deep memory network with 9 layers is 15 times faster than a CPU implementation of LSTM, demonstrating significant computational efficiency.
- The use of multiple computational layers (hops) leads to improved performance, confirming the benefit of hierarchical attention over external memory.
- Incorporating both content and location information in the attention mechanism yields better context weight learning and improved text representation compared to content-only attention.
- The model is effective without requiring external resources such as sentiment lexicons or syntactic parsers, relying only on end-to-end training with attention mechanisms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.