Skip to main content
QUICK REVIEW

[Paper Review] Improving Review Representations with User Attention and Product Attention for Sentiment Classification

Zhen Wu, Xinyu Dai|arXiv (Cornell University)|Jan 24, 2018
Sentiment Analysis and Opinion MiningComputer Science28 references39 citations
TL;DR

This paper proposes HUAPA, a novel neural network framework that separately models user preference and product characteristics using dedicated user and product attention mechanisms within hierarchical LSTMs. By learning distinct representations for user sentiment and product attributes, and combining them via a weighted loss strategy, the model achieves state-of-the-art performance on IMDB and Yelp datasets, outperforming existing methods in sentiment classification.

ABSTRACT

Neural network methods have achieved great success in reviews sentiment classification. Recently, some works achieved improvement by incorporating user and product information to generate a review representation. However, in reviews, we observe that some words or sentences show strong user's preference, and some others tend to indicate product's characteristic. The two kinds of information play different roles in determining the sentiment label of a review. Therefore, it is not reasonable to encode user and product information together into one representation. In this paper, we propose a novel framework to encode user and product information. Firstly, we apply two individual hierarchical neural networks to generate two representations, with user attention or with product attention. Then, we design a combined strategy to make full use of the two representations for training and final prediction. The experimental results show that our model obviously outperforms other state-of-the-art methods on IMDB and Yelp datasets. Through the visualization of attention over words related to user or product, we validate our observation mentioned above.

Motivation & Objective

  • To address the limitation of existing models that conflate user and product information into a single representation, which fails to capture their distinct roles in sentiment determination.
  • To investigate whether user preference and product characteristics play different roles in determining review sentiment, based on observed linguistic patterns in reviews.
  • To improve review representation learning by explicitly modeling user and product perspectives through separate attention mechanisms.
  • To design a combined training strategy that enhances representation learning by leveraging both user and product attention views.
  • To validate the interpretability and effectiveness of the model through attention visualization and empirical evaluation on benchmark datasets.

Proposed method

  • The model employs two separate hierarchical Long Short-Term Memory (LSTM) networks: one with user attention and one with product attention, to encode review text from distinct perspectives.
  • User attention focuses on words expressing personal sentiment or preference (e.g., 'love', 'disappointed'), while product attention highlights descriptive terms related to product features (e.g., 'modern', 'cool').
  • The model uses a combined loss function with three components: a main classification loss, and two auxiliary losses for user and product attention representations.
  • The auxiliary losses ($loss_2$ and $loss_3$) are weighted by learnable parameters ($\lambda_2$, $\lambda_3$) to balance the contribution of each view during training.
  • Final prediction is made by concatenating the two context vectors from user and product attention networks and passing them through a classifier.
  • The framework is trained end-to-end using a weighted combination of losses to jointly optimize for sentiment classification and representation quality from both views.

Experimental results

Research questions

  • RQ1Do user preferences and product characteristics play distinct roles in determining the sentiment of a review, and is it beneficial to model them separately?
  • RQ2Can separate attention mechanisms for user and product perspectives improve sentiment classification performance compared to joint modeling?
  • RQ3How effective is the proposed combined loss strategy in enhancing representation learning from both user and product views?
  • RQ4Can attention visualization confirm that the model correctly identifies sentiment-related words (user) and feature-related words (product)?
  • RQ5Does the model achieve consistent and significant improvements over state-of-the-art methods on standard sentiment classification benchmarks?

Key findings

  • The HUAPA model achieves state-of-the-art performance on both the IMDB and Yelp datasets, outperforming existing methods in sentiment classification.
  • The ablation study shows that both user attention and product attention individually improve performance over a baseline model without attention, validating the effectiveness of each component.
  • User attention contributes more significantly to performance than product attention, likely because sentiment ratings are ultimately user-driven.
  • The full HUAPA model with all three loss components ($loss_1$, $loss_2$, $loss_3$) achieves the best performance, demonstrating the benefit of the combined training strategy.
  • Visualization of attention weights confirms that the model correctly identifies user-centric words (e.g., 'love') and product-centric words (e.g., 'cool', 'modern') with high attention scores.
  • The model successfully captures inconsistent sentiment patterns, such as a positive product description ('good') paired with negative user sentiment ('disappointed'), and makes correct predictions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.