Aspect-Oriented Opinion Alignment Network for Aspect-Based Sentiment Classification

Xueyi Liu, Rui Hou, Yanglei Gan, Da Luo, Changlin Li, Xiaojun Shi, Qiao Liu

TL;DR

This paper introduces the Aspect-oriented Opinion Alignment Network (AOAN) to tackle the challenge of semantic mismatch in aspect-based sentiment classification, where opinion words might be distant or ambiguously linked to their target aspect. AOAN uses a novel "neighboring span enhanced module" and a "multi-perspective attention module" to better align opinion words with aspects, achieving state-of-the-art results on benchmark datasets.

What Problem Does This Paper Address?

Aspect-Based Sentiment Classification (ABSC) aims to determine the sentiment (positive, negative, neutral) expressed towards a specific aspect within a sentence. While attention mechanisms have improved context understanding, a significant challenge remains: semantic mismatch. This occurs when opinion words that determine the sentiment of an aspect are not accurately linked, especially in sentences with multiple aspects or when opinion words are far from the aspect they modify. For instance, in "The food was very good, though I occasionally wondered about freshness of raw vegetables," "food" is positive, but "raw vegetables" is negative. A simple attention mechanism might struggle to correctly associate "very good" with "food" and "though" (implying negativity) with "raw vegetables." This paper addresses this by proposing a method to explicitly capture and align these crucial opinion-aspect relationships.

Methods

The proposed Aspect-oriented Opinion Alignment Network (AOAN) has two core novel components:

  • Neighboring Span Enhanced Module: This module addresses the semantic mismatch by considering various "neighboring spans" of words around the target aspect. Instead of just looking at immediate neighbors or the entire sentence, it creates multiple representations of the context, each focusing on different ranges of words surrounding the aspect. This allows the model to capture a more nuanced understanding of how words at varying distances relate to the aspect.
  • Multi-Perspective Attention Module: Building on the enhanced representations from the first module, this component uses a multi-head attention mechanism. It allows the model to attend to the contextual information from different "perspectives" (derived from the neighboring spans) in parallel. This helps in extracting a more comprehensive and accurate sentiment representation for the aspect, mitigating the issue of missing or misaligned opinion words. The model also leverages a BERT encoder for robust initial sentence and aspect representations.

Datasets

The authors evaluated their model on three standard benchmark datasets for aspect-based sentiment classification:

  • Restaurant Dataset: From SemEval-2014 Task 4.
  • Laptop Dataset: From SemEval-2014 Task 4.
  • Twitter Dataset: A dataset of Twitter posts.

These datasets contain sentences annotated with specific aspects and their corresponding sentiment polarities (positive, negative, neutral).

Key Insights and Ideas

  • The Importance of Span Granularity: The paper highlights that simply looking at the entire sentence or immediate neighbors isn't enough. Considering multiple, defined "neighboring spans" around an aspect is crucial for capturing relevant opinion words, especially when they are distant.
  • Multi-Perspective Attention for Robustness: By allowing attention to operate from multiple contextual perspectives simultaneously, the model becomes more robust to noise and better at identifying the true sentiment-bearing words for a given aspect.
  • Abstract Understanding is Key: The authors found that using an "abstract understanding representation" (derived from the CLS token in BERT) as the query in the attention mechanism is vital for effectively aligning opinion words with aspects.
  • Syntactic Information Not Always Necessary: The AOAN model achieves state-of-the-art results without relying on complex syntactic parsing, suggesting that a well-designed attention mechanism focusing on contextual spans can be highly effective.

Key Results

The AOAN model achieved state-of-the-art performance on all three benchmark datasets, demonstrating significant improvements in F1-scores:

  • Laptop Dataset: F1-score of 79.09%
  • Restaurant Dataset: F1-score of 81.19%
  • Twitter Dataset: F1-score of 76.54%

The paper also shows that AOAN significantly outperforms other semantic-based baselines (like RAM, PBAN, AEN-BERT, AOIARN) and even syntactic-based models (like BERT4GCN, T-GCN, DualGCN, SSEGCN) without needing syntactic information. Ablation studies confirmed the effectiveness of both the neighboring span enhanced module and the multi-perspective attention module. Visualizations further illustrated how AOAN effectively focuses attention on relevant opinion words compared to a baseline model.

Limitations and Future Work

  • Sentence Length Impact: While AOAN performs well, the paper notes that longer sentences can still pose challenges due to increased potential for irrelevant words. The model shows improved performance on longer sentences compared to some baselines, but this remains an area for further refinement.
  • Ablation Study Nuances: The ablation study on "AOAN-Maxpool" showed a significant drop in performance, suggesting that global average pooling is more effective than max pooling for combining multi-perspective sentiment representations. This implies that an even distribution of contributions from different perspectives is beneficial.
  • Future Directions: The authors suggest that their approach of capturing contextual associations through neighboring spans and multi-perspective attention can be extended to other NLP tasks that require fine-grained understanding of relationships between entities and their modifiers.

Summary updated

BibTeX
@inproceedings{liu2023aspect,
  author = {Xueyi Liu and Rui Hou and Yanglei Gan and Da Luo and Changlin Li and Xiaojun Shi and Qiao Liu},
  title = {{Aspect-Oriented Opinion Alignment Network for Aspect-Based Sentiment Classification}},
  booktitle = {ECAI},
  year = {2023},
  url = {https://openreview.net/forum?id=0Ru8yNmIBG},
}

Loading related content...

Figure