A Bi-Directional LSTM-CNN Model with Attention for Aspect-Level Text Classification

Yonghua Zhu, Xun Gao, Weilin Zhang, Shenkai Liu, Yuanyuan ZhangFuture 2018 · DOI

TL;DR

This paper introduces AARCNN, a novel deep learning model for aspect-level sentiment analysis. By combining Bi-LSTM for sentence understanding, CNN for attention extraction, and aspect embeddings, AARCNN achieves state-of-the-art performance in classifying sentiment for specific aspects within text, outperforming previous methods.

What Problem Does This Paper Address?

The internet is awash with user-generated content, offering valuable insights into product and service opinions. However, a single sentence can express different sentiments towards various aspects. For example, a review might praise the "food quality" but criticize the "price." Simply assigning an overall sentiment to the entire sentence is insufficient and can be misleading. Aspect-Level Sentiment Analysis (ABSA) aims to address this by identifying specific aspects (e.g., "food," "service") and their corresponding sentiment polarity (positive, negative, neutral). Traditional methods often treat sentences as bags of words, ignoring the crucial sequential relationships between opinion words and aspects, or rely heavily on manual feature engineering, limiting their efficiency and accuracy.

Methods

The proposed AARCNN model integrates several key components:

  • Input Preprocessing: Sentences are first converted into word embeddings (using pre-trained GloVe) to represent words as dense vectors.
  • Memory Module (Bi-LSTM): A Bidirectional Long Short-Term Memory (Bi-LSTM) network is employed to capture the semantic meaning and long-range dependencies within the sentence. Bi-LSTM is chosen over standard LSTM to better handle sentences with reversed expressions or where the target and its descriptive words are separated by a significant distance.
  • Attention Discover Module (CNN): A Convolutional Neural Network (CNN) is used to extract an "attention signal." This signal is a vector that highlights the importance of each word in the sentence for sentiment analysis, mimicking how humans focus on key phrases. CNN's invariance feature is leveraged here.
  • Aspect Embedding: To incorporate target information, candidate aspects are transformed into weighted aspect embedding vectors. This involves combining the word embeddings of the target and aspect with an adjustment factor to control the model's focus.
  • Representation and Output Module: The attention-weighted sentence representation is combined with the aspect embeddings. Max-pooling is then applied to select the most relevant aspects, and a softmax layer predicts the sentiment polarity for each detected aspect.

Datasets

The experiments were conducted on two datasets from SemEval 2016 Task 5:

  • Restaurants: An English dataset containing positive, neutral, and negative sentiment polarities.
  • Cameras: A Chinese dataset containing positive and negative sentiment polarities.

The paper does not introduce new benchmarks but uses established datasets for evaluation.

Key Insights and Ideas

  • Synergy of Attention and Aspect Information: The paper strongly advocates for the combined use of attention mechanisms and aspect information. They argue that while each can improve ABSA individually, their integration leads to significantly better performance.
  • Handling Reversed Expressions with Bi-LSTM: The choice of Bi-LSTM over standard LSTM proved crucial for accurately capturing sentiment in sentences with non-standard word order or distant aspect-description relationships. This is highlighted in their analysis of long sentences.
  • CNN for Attention Extraction: Using CNN for attention signal extraction is an effective approach, leveraging its ability to capture local patterns and its translation invariance.
  • Idioms and Misinterpretation: The authors point out that attention mechanisms can help prevent models from misinterpreting idiomatic expressions, which might otherwise lead to incorrect aspect-sentiment assignments (e.g., misinterpreting "leaves a bad taste" as a literal taste issue rather than a negative experience).

Key Results

  • State-of-the-Art Performance: AARCNN achieved the best performance among all tested methods on both the Restaurants and Cameras datasets, outperforming baselines like LSTM, TD-LSTM, AT-LSTM, AT-CNN, and RCNN-LSTM in terms of accuracy and F1-score.
  • Accuracy Gains: On the Restaurants dataset, AARCNN achieved an accuracy of 79.04% and an F1-score of 84.00%. For the Cameras dataset, it reached 86.75% accuracy and 89.80% F1-score.
  • Bi-LSTM Improvement: The Bi-LSTM variant of their model showed a slight but consistent improvement (around 0.3%) over a standard LSTM version, particularly on sentences with reversed expressions.
  • Computational Cost: While achieving superior performance, the AARCNN model incurs approximately twice the training time compared to a single LSTM network.

Limitations and Future Work

  • Computational Cost: The authors acknowledge that their model is computationally more expensive than simpler methods due to the integration of Bi-LSTM and CNN.
  • Future Work: The paper suggests that further exploration of how attention mechanisms and aspect information can be integrated more effectively could lead to even greater improvements in ABSA. They also implicitly suggest that optimizing the computational efficiency of their model would be beneficial.

Summary updated

Abstract

The prevalence that people share their opinions on the products and services in their daily lives on the Internet has generated a large quantity of comment data, which contain great business value. As for comment sentences, they often contain several comment aspects and the sentiment on these aspects are different, which makes it meaningless to give an overall sentiment polarity of the sentence. In this paper, we introduce Attention-based Aspect-level Recurrent Convolutional Neural Network (AARCNN) to analyze the remarks at aspect-level. The model integrates attention mechanism and target information analysis, which enables the model to concentrate on the important parts of the sentence and to make full use of the target information. The model uses bidirectional LSTM (Bi-LSTM) to build the memory of the sentence, and then CNN is applied to extracting attention from memory to get the attentive sentence representation. The model uses aspect embedding to analyze the target information of the representation and finally the model outputs the sentiment polarity through a softmax layer. The model was tested on multi-language datasets, and demonstrated that it has better performance than conventional deep learning methods.
BibTeX
@inproceedings{zhu2018bi,
  author = {Yonghua Zhu and Xun Gao and Weilin Zhang and Shenkai Liu and Yuanyuan Zhang},
  title = {{A Bi-Directional LSTM-CNN Model with Attention for Aspect-Level Text Classification}},
  booktitle = {Future},
  year = {2018},
  doi = {10.3390/fi10120116},
}
Figure