Effective LSTMs for Target-Dependent Sentiment Classification

Duyu Tang, Bing Qin, Xiaocheng Feng, Ting Liu

Introduction

Standard sentiment classification typically assigns a single polarity to an entire sentence. However, real-world text often contains multiple targets with differing sentiments. For instance, in the sentence "The picture quality is amazing but the battery life is too short," the sentiment is positive for "picture quality" but negative for "battery life." This task, known as target-dependent sentiment classification, requires models to capture the semantic relationship between a specific target and its context.

While standard Long Short-Term Memory (LSTM) networks excel at capturing global sentence semantics, they are often "target-blind." This paper introduces two novel architectures—Target-Dependent LSTM (TD-LSTM) and Target-Connection LSTM (TC-LSTM)—that explicitly incorporate target information to improve classification accuracy without requiring manual feature engineering or external syntactic parsers.

Proposed Methodology

The authors evaluate three LSTM-based approaches:

  1. Standard LSTM (Baseline): A sequential model that processes the entire sentence to output a single sentiment, ignoring specific targets.
  2. Target-Dependent LSTM (TD-LSTM): This model splits the context around the target. It employs a left-to-right LSTM for the preceding context and a right-to-left LSTM for the following context, both ending at the target word. The final hidden states are concatenated for classification.
  3. Target-Connection LSTM (TC-LSTM): An extension of TD-LSTM that further integrates target information. It represents the target as an averaged vector of its constituent word embeddings. This target vector is concatenated with the input embedding of every context word at each time step, forcing the model to evaluate context specifically in relation to the target.
The TC-LSTM architecture incorporates target information at every time step to better capture target-context relationships.

Experimental Setup

The models were evaluated on a benchmark Twitter dataset containing 6,248 training and 692 test sentences. The dataset is balanced with 25% positive, 25% negative, and 50% neutral labels. The authors also investigated the impact of different pre-trained word embeddings, finding that context-aware embeddings like GloVe significantly outperformed those trained purely on sentiment.

Key Results and Discussion

The experimental results demonstrate that target awareness is critical for this task. The TC-LSTM achieved state-of-the-art performance, reaching an accuracy of 71.5% and a Macro-F1 score of 0.695.

Performance comparison showing that TC-LSTM and TD-LSTM outperform standard LSTMs and feature-engineered baselines.

Key insights from the study include:

  • Superiority of Continuous Connection: Explicitly feeding the target representation into the LSTM at every step (TC-LSTM) allows the model to dynamically weigh context words based on their relevance to the target.
  • Competitive Performance without Lexicons: TC-LSTM outperformed heavily engineered SVMs that relied on external sentiment lexicons, proving the efficacy of purely data-driven neural models.
  • Computational Trade-offs: While TC-LSTM is the most accurate, it is more computationally intensive, taking significantly longer to train per iteration compared to the baseline and TD-LSTM.

Conclusion and Future Work

Despite its success, the model faces challenges with neutral sentiment classification, which accounted for over 85% of misclassified examples. Future work could involve integrating external sentiment lexicons directly into the TC-LSTM architecture to further enhance performance, particularly for ambiguous or neutral cases.

Summary updated

BibTeX
@inproceedings{tang2016effective,
  author = {Duyu Tang and Bing Qin and Xiaocheng Feng and Ting Liu},
  title = {{Effective LSTMs for Target-Dependent Sentiment Classification}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
}
Figure