PhraseRNN: Phrase Recursive Neural Network for Aspect-based Sentiment Analysis

Thien Hai Nguyen, Kiyoaki ShiraiEMNLP 2015

Introduction

Aspect-Based Sentiment Analysis (ABSA) is the task of identifying the sentiment expressed toward specific "aspects" within a sentence. For example, in the sentence "The food was delicious, but the service was slow," a system must identify "food" as positive and "service" as negative.

Existing deep learning approaches, such as Recursive Neural Networks (RNNs), typically rely on dependency trees to model word relationships. However, dependency trees alone often fail to capture the full syntactic context of a phrase, while constituent trees can be overly complex for mapping direct word-to-word relations. PhraseRNN addresses this gap by proposing a hybrid structure that leverages the strengths of both tree types to better isolate sentiment relevant to a specific target aspect.

Methodology

The PhraseRNN model operates in three main stages to create a richer representation of target aspects:

1. Building a Phrase Dependency Tree

The process begins by extracting basic phrases (NP, VP, PP) from a constituent tree. The model then "collapses" a standard dependency tree into a phrase-level dependency tree, where each node represents a phrase rather than a single word.

2. Target-Dependent Binarization

To make the tree processable by an RNN, the structure is converted into a binary tree centered on the target aspect. This ensures that the final "root" representation is specifically tuned to the aspect being analyzed.

The transformation process from a standard dependency tree to a target-dependent binary phrase dependency tree.

3. Dual Composition and Adaptive Weighting

Unlike previous models that use a single set of weights, PhraseRNN uses two distinct sets of composition functions:

  • Inner-phrase functions ($G$): Used to merge words into a phrase representation.
  • Outer-phrase functions ($H$): Used to merge phrases with one another.

The model uses external features—such as Part-of-Speech (POS) tags, constituent labels (e.g., 'NP'), and dependency relation types—to dynamically weight which composition function is most appropriate for a given node.

Experimental Setup

The model was evaluated using the SemEval 2014 Task 4 dataset, which contains over 3,000 English restaurant reviews. Each aspect is annotated as "positive," "negative," or "neutral." The authors used 300-dimensional pre-trained word2vec vectors from the Google News dataset for word embeddings.

Key Results

PhraseRNN was compared against standard RNNs and the adaptive AdaRNN model. The hybrid syntactic approach demonstrated significant performance gains across multiple metrics.

Performance comparison of PhraseRNN variants against baseline models.
  • Overall Performance: PhraseRNN-3 (using multiple functions for both inner and outer phrases) achieved an accuracy of 66.20%, a significant jump over the standard RNN (60.85%) and AdaRNN (60.42%).
  • F-measure: The model showed a dramatic improvement in F-measure, reaching 62.21% compared to the RNN's 54.21%.
  • Handling Complexity: In sentences with multiple aspects and conflicting sentiments, PhraseRNN correctly identified nearly 10% more aspects than the baseline RNN, successfully avoiding "sentiment leakage."

Conclusion

PhraseRNN demonstrates that neither dependency nor constituent trees are sufficient on their own for high-precision ABSA. By nesting dependency relations within a phrase-based hierarchy and using distinct composition logic for internal and external phrase structures, the model gains a clearer view of the target aspect's context. While the model relies on the accuracy of underlying parsers, its ability to handle complex, multi-aspect sentences marks a significant advancement in sentiment analysis.

Summary updated

BibTeX
@inproceedings{nguyen2015phrasernn,
  author = {Thien Hai Nguyen and Kiyoaki Shirai},
  title = {{PhraseRNN: Phrase Recursive Neural Network for Aspect-based Sentiment Analysis}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1298},
}
Figure