A Joint Model for Aspect-Category Sentiment Analysis with Shared Sentiment Prediction Layer

Yuncong Li, Zhe Yang, Cunxiang Yin, Xu Pan, Lunan Cui, Qiang Huang, Ting Wei

Abstract

Aspect-category sentiment analysis (ACSA) aims to predict the aspect categories mentioned in texts and their corresponding sentiment polarities. Some joint models have been proposed to address this task. Given a text, these joint models detect all the aspect categories mentioned in the text and predict the sentiment polarities toward them at once. Although these joint models obtain promising performances, they train separate parameters for each aspect category and therefore suffer from data deficiency of some aspect categories. To solve this problem, we propose a novel joint model which contains a shared sentiment prediction layer. The shared sentiment prediction layer transfers sentiment knowledge between aspect categories and alleviates the problem caused by data deficiency. Experiments conducted on SemEval-2016 Datasets demonstrate the effectiveness of our model.

Introduction

Aspect-Category Sentiment Analysis (ACSA) is a critical task in natural language processing that involves identifying both the specific aspect categories discussed in a text (e.g., FOOD#QUALITY or LAPTOP#PRICE) and the sentiment polarity expressed toward each. While early research utilized two-stage pipelines—first detecting aspects and then classifying sentiment—these methods are prone to error propagation.

To mitigate this, joint models were developed to perform detection and classification simultaneously. However, existing joint architectures typically allocate separate parameters for each aspect category. This approach struggles with "long-tail" categories that appear infrequently in training data, leading to significant under-fitting. This paper addresses this data deficiency by introducing a shared sentiment prediction layer.

Methodology

The proposed joint model consists of six primary modules designed to capture both task-specific and shared features:

  1. Embedding & Bi-LSTM Layers: These layers process the input text to generate dense word representations and capture long-range contextual dependencies.
  2. Aspect Attention Layer: This module generates representations specifically tailored for Aspect Category Detection (ACD).
  3. Aspect Category Prediction Layer: A binary classification layer that determines the presence of specific aspects.
  4. Sentiment Attention Layer: Leveraging the output of the aspect attention, this layer focuses on sentiment-bearing words within the text.
  5. Shared Sentiment Prediction Layer: The core innovation of this work. Instead of category-specific classifiers, the model employs a shared Multi-Layer Perceptron (MLP) and Softmax layer across all aspects.
The overall architecture of the proposed joint model featuring the shared sentiment prediction layer.

By sharing parameters, the model can transfer sentiment knowledge between categories. For instance, it learns that words like "surprised" or "excellent" generally indicate positive sentiment, whether applied to a laptop's performance or its price.

Experimental Setup

The model was evaluated using four public datasets from the SemEval-2016 Task 5: CH-CAME-SB1 (digital cameras), CH-PHNS-SB1 (mobile phones), EN-REST-SB2 (restaurants), and EN-LAPT-SB2 (laptops). These datasets are characterized by a high degree of data imbalance. Many aspect categories have very few training samples, which underscores the necessity of a parameter-sharing approach to overcome data scarcity.

Results and Discussion

The proposed model demonstrates superior performance across most metrics compared to state-of-the-art baselines like End-to-end LSTM and AS-Capsules.

ACSA Performance

In the joint ACSA task, the model achieved significantly higher micro-averaged F1-scores. On the EN-LAPT-SB2 dataset, which is particularly affected by data deficiency, the model reached an F1-score of 50.05%, outperforming the next best baseline (37.94%) by a substantial margin.

Performance comparison of the proposed model against baselines on the ACSA task (F1-score).

Sentiment Classification and Knowledge Transfer

The shared sentiment prediction layer acts as a powerful regularizer. By forcing the model to use universal weights for sentiment prediction, it prevents overfitting to noise in small samples. This is evidenced by the Sentiment Classification (SC) results: on the CH-PHNS-SB1 dataset, the model improved accuracy by over 16% compared to a variant without parameter sharing ("- w/o Share"). Interestingly, on the EN-REST-SB2 dataset, which has more abundant data per category, the non-shared version performed slightly better, suggesting that category-specific nuances can be captured when data is sufficient.

Conclusion

This paper presents a novel joint model for ACSA that leverages a shared sentiment prediction layer to address data deficiency. By enabling knowledge transfer across aspect categories, the model achieves significant performance gains, especially on sparse datasets. Future research will focus on developing adaptive sharing mechanisms, such as gating, to selectively transfer knowledge and minimize potential negative transfer in cases where sentiment expressions are highly category-specific.

Summary updated

BibTeX
@inproceedings{li2019joint,
  author = {Yuncong Li and Zhe Yang and Cunxiang Yin and Xu Pan and Lunan Cui and Qiang Huang and Ting Wei},
  title = {{A Joint Model for Aspect-Category Sentiment Analysis with Shared Sentiment Prediction Layer}},
  booktitle = {CNCL},
  year = {2019},
}
Figure