STAGE: Span Tagging and Greedy Inference Scheme for Aspect Sentiment Triplet Extraction

Shuo Liang, Wei Wei, Xian-Ling Mao, Yuanyuan Fu, Rui Fang, Dangyang Chen

Abstract

Aspect Sentiment Triplet Extraction (ASTE) aims to identify aspect terms, opinion terms, and their associated sentiment polarities. Traditional word-level tagging methods often fail when words play multiple roles or terms span several words. This paper introduces STAGE (Span TAgging and Greedy infErence), a framework that treats spans as the primary unit of analysis. By employing a 3D tagging scheme and a greedy inference strategy, STAGE effectively handles overlapping roles and multi-word terms, achieving state-of-the-art performance across multiple benchmarks.

Introduction

The goal of Aspect Sentiment Triplet Extraction (ASTE) is to extract triplets of (aspect, opinion, sentiment) from text. For instance, in the sentence "The hard drive is great," the target triplet is (hard drive, great, Positive).

Existing models predominantly rely on word-level tagging. However, this approach faces two significant challenges:

  1. Overlapping Roles: A single word may function as both an aspect and part of an opinion. For example, in "Love the stability of the Mac," "stability" is the aspect being evaluated and also conveys the positive quality.
  2. Multi-word Terms: Phrases like "operating system" are often fragmented by word-level models, losing their collective semantic integrity.

Methods: The STAGE Framework

To overcome these limitations, STAGE shifts the focus from individual words to spans (contiguous sequences of words).

3D Span Tagging

The core of STAGE is a 3D tagging scheme. For every possible span $(i, j)$ in a sentence, the model predicts three labels:

  • Aspect Role (A): Indicates if the span is a valid aspect term.
  • Opinion Role (O): Indicates if the span is a valid opinion term.
  • Sentiment Snippet (S): Indicates if the span contains a complete aspect-opinion pair and its sentiment (Positive, Negative, or Neutral).
3D Span Tagging grid for the sentence 'love the stability of mac software, easy to use'.

This multi-dimensional approach allows a span to be simultaneously identified as an aspect and an opinion, solving the overlapping role problem.

Span Representation and Inference

STAGE utilizes a BERT-based encoder to generate span representations. A span $(i, j)$ is represented by concatenating the vectors of its start word, end word, and the sum of all internal word vectors.

Following tagging, a Greedy Inference strategy is applied. For each identified "sentiment snippet," the model searches for the longest valid aspect and opinion terms within that snippet's boundaries. This ensures that the extracted triplets are internally consistent and respect term boundaries.

Key Results

STAGE was evaluated on four standard ASTE benchmarks: 14lap, 14res, 15res, and 16res.

Performance comparison of STAGE variants against state-of-the-art models across four benchmarks.

The results demonstrate that STAGE-3D consistently outperforms previous state-of-the-art models, such as BMRC and Span-ASTE, by an average of 2.22% in F1 score. The model exhibits particularly high precision, which the authors attribute to the mutual constraints imposed by the 3D tagging scheme. Furthermore, STAGE shows significant improvements in "Multi-word" scenarios, often outperforming baselines by 5-10% in F1 when terms span multiple words.

Conclusion

STAGE introduces a robust span-level approach to ASTE that effectively addresses the "multi-role" puzzle. By classifying spans directly and enforcing mutual constraints through 3D tagging, the model achieves superior accuracy and handles complex linguistic structures better than word-level alternatives. Future work will explore more advanced span fusion techniques and optimizations for processing longer documents.

Summary updated

BibTeX
@inproceedings{liang2023stage,
  author = {Shuo Liang and Wei Wei and Xian-Ling Mao and Yuanyuan Fu and Rui Fang and Dangyang Chen},
  title = {{STAGE: Span Tagging and Greedy Inference Scheme for Aspect Sentiment Triplet Extraction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26547},
}
Figure