Joint Learning for Targeted Sentiment Analysis

Dehong Ma, Sujian Li, Houfeng Wang

Abstract

Targeted Sentiment Analysis (TSA) requires identifying entities and their corresponding sentiment within a sentence. This paper proposes the Hierarchical Multi-layer Bidirectional Gated Recurrent Unit (HMBi-GRU), a model that jointly learns target extraction and sentiment classification. By leveraging character-level features and an explicit dependency between target boundaries and sentiment labels, the proposed model achieves state-of-the-art performance on English and Spanish social media datasets.

Introduction

Targeted Sentiment Analysis (TSA) is a complex task that involves identifying what is being discussed (target extraction) and the sentiment expressed toward it (sentiment classification). For instance, in the sentence "ESPN poll says Michael Jordan is the greatest," a system must correctly identify "ESPN" as Neutral and "Michael Jordan" as Positive.

Existing neural approaches often suffer from two main limitations:

  1. Feature Extraction: Reliance on word embeddings alone misses sub-word information like capitalization or suffixes, which are critical for identifying entities in noisy social media text.
  2. Task Dependency: Target boundaries and sentiment spans are inherently linked. Most models fail to explicitly model the dependency where the sentiment classifier "knows" the boundaries identified by the target extractor.

Methods

The proposed HMBi-GRU architecture addresses these gaps through a hierarchical approach and a joint learning strategy.

The HMBi-GRU architecture showing character-level and word-level layers with joint label prediction.

The model consists of three primary stages:

  1. Character-Level Layer: A Bi-GRU processes individual characters to capture morphological features like capitalization and suffixes, aiding in the handling of Out-of-Vocabulary (OOV) words.
  2. Word-Level Layer: Character-level features are concatenated with word embeddings and processed by a multi-layer Bi-GRU to capture long-range dependencies.
  3. Joint Prediction with Label Influence: The model predicts target labels first. These predictions are then used as input for the sentiment classifier, ensuring the model respects entity boundaries.
  4. CRF Transition Matrix: A transition matrix models dependencies between adjacent labels to ensure valid output sequences (e.g., preventing an "Inside" label from following an "Outside" label).

Datasets

Evaluation was conducted on two open-domain datasets from Mitchell et al. (2013):

  • English Tweets: 2,350 sentences with 3,288 targets.
  • Spanish Tweets: 5,145 sentences with 6,658 targets. These datasets present significant challenges due to the informal, ungrammatical nature of social media text and the high frequency of OOV words.

Results and Discussion

The HMBi-GRU model (denoted as "OURS") significantly outperforms several baselines, including discrete-feature CRFs and standard neural models.

Performance comparison of HMBi-GRU against various baselines on English and Spanish datasets.

Key Insights

  • Boundary Dependency: By making sentiment prediction dependent on target prediction, the model reduces misalignment errors where sentiment is only partially assigned to a target span.
  • Hierarchical Synergy: Character-level features effectively replace manual feature engineering, allowing the network to learn relevant patterns for entity recognition automatically.
  • Ablation Study: Removing the target-to-sentiment dependency ("No-Target" version) resulted in a performance drop, confirming that joint learning is vital for TSA success.

Conclusion

The HMBi-GRU model demonstrates the effectiveness of joint learning and hierarchical feature extraction for Targeted Sentiment Analysis. While the model faces challenges such as potential error propagation from the target layer to the sentiment layer and increased computational complexity, it sets a new benchmark for the task on multilingual social media data. Future work may explore integrating Transformer-based architectures into this joint-learning framework.

Summary updated

BibTeX
@inproceedings{ma2018joint,
  author = {Dehong Ma and Sujian Li and Houfeng Wang},
  title = {{Joint Learning for Targeted Sentiment Analysis}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1504},
}
Figure