Deep Context- and Relation-Aware Learning for Aspect-based Sentiment Analysis

Shinhyeok Oh, Dongyub Lee, Taesun Whang, IlNam Park, Gaeun Seo, EungGyun Kim, Harksoo Kim

Abstract

Aspect-Based Sentiment Analysis (ABSA) is crucial for understanding nuanced opinions in text. However, existing models often struggle with contextual nuances and the complex relationships between multiple aspect-opinion pairs. This paper introduces the Deep Contextualized Relation-Aware Network (DCRAN), which leverages a transformer-decoder for information propagation and two novel self-supervised auxiliary tasks—Type-Specific Masked Term Discrimination and Pairwise Relations Discrimination—to enhance relational reasoning. Experimental results on benchmark datasets demonstrate that DCRAN achieves state-of-the-art performance, particularly in complex multi-aspect scenarios.

Introduction

Aspect-Based Sentiment Analysis (ABSA) identifies specific "aspects" in a text (e.g., "service" or "food") and determines the sentiment expressed toward each. Unlike general sentiment analysis, which might label an entire review as "positive," ABSA recognizes that a single review can contain conflicting sentiments for different features.

Example of ABSA task identifying aspect-opinion pairs in a sentence.

Current unified ABSA models face two primary challenges:

  1. Literalism: Models often rely on literal word meanings rather than deep context. For instance, in the phrase "I've had better Japanese food," a model might focus on the word "better" and incorrectly predict a positive sentiment, missing the contextual implication of disappointment.
  2. Relation Blindness: Identifying which opinion term corresponds to which aspect is difficult, especially in sentences with multiple pairs (e.g., "The sushi was great, but the staff was rude"). Existing models often fail to explicitly model these interactive relations.

The DCRAN Framework

The Deep Contextualized Relation-Aware Network (DCRAN) addresses these issues through a multi-stage architecture built on a shared encoder, such as BERT or ELECTRA.

Overview of the DCRAN architecture (a) and the self-supervised auxiliary tasks (b).

Aspect and Opinion Propagation

DCRAN moves beyond simple linear layers by employing a transformer-decoder module. This module uses cross-attention to "propagate" information between extracted aspect terms, opinion terms, and the global context. This allows the model to iteratively refine its representations by "re-reading" the sentence with a specific focus on the identified targets.

Self-Supervised Auxiliary Tasks

To sharpen the model's relational reasoning, the authors introduce two novel self-supervised auxiliary training tasks:

  • Type-Specific Masked Term Discrimination (TSMTD): The model is tasked with predicting whether a masked word is an aspect, an opinion, or neither.
  • Pairwise Relations Discrimination (PRD): The model is shown two terms and must determine if they form a valid aspect-opinion pair. This forces the model to learn the underlying structural "links" within a sentence.

Experimental Evaluation

The model was evaluated on three widely used benchmarks from the SemEval challenges: LAP14 (laptop reviews), REST14 (restaurant reviews), and REST15 (restaurant reviews). These datasets include labels for Aspect Term Extraction (ATE), Opinion Term Extraction (OTE), and Aspect-based Sentiment Classification (ASC).

Key Results

DCRAN-ELECTRA achieved significant state-of-the-art (SOTA) improvements across all benchmarks in the primary ABSA-F1 metric:

  • LAP14: 5.5% absolute improvement.
  • REST14: 4.4% absolute improvement.
  • REST15: 7.6% absolute improvement.

The model's strength is most evident in sentences containing multiple aspects. On the REST15 dataset, DCRAN improved sentence-level accuracy for multi-aspect cases by nearly 4% compared to versions without the self-supervised strategies. Qualitative case studies confirmed that DCRAN correctly identifies negative sentiment in sarcastic or comparative sentences where previous models failed.

Discussion and Conclusion

The success of DCRAN highlights that sentiment is often a property of a relationship rather than just an individual word. By using a decoder for contextual refinement and self-supervision as a structural guide, the model effectively captures complex linguistic nuances. While the transformer-decoder adds computational complexity, the gains in accuracy—especially for multi-aspect reviews—provide a robust path forward for complex information extraction tasks like "Aspect-Category-Opinion-Sentiment" (ACOS) quadruple extraction.

Summary updated

BibTeX
@inproceedings{oh2021deep,
  author = {Shinhyeok Oh and Dongyub Lee and Taesun Whang and IlNam Park and Gaeun Seo and EungGyun Kim and Harksoo Kim},
  title = {{Deep Context- and Relation-Aware Learning for Aspect-based Sentiment Analysis}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.63},
}
Figure