A Span-level Bidirectional Network for Aspect Sentiment Triplet Extraction

Yuqi Chen, Keming Chen, Xian Sun, Zequn ZhangEMNLP 2022

Abstract

Aspect Sentiment Triplet Extraction (ASTE) is a critical subtask of Aspect-Based Sentiment Analysis that aims to identify aspect terms, their corresponding opinion terms, and the associated sentiment polarities. Traditional token-level tagging methods often suffer from cascading errors in multi-word entities. We present a Span-level Bidirectional Network (SBN) that addresses these challenges through bidirectional decoding (aspect-to-opinion and opinion-to-aspect) and a novel Similar Span Separation Loss ($J_{KL}$). Our model achieves state-of-the-art results on four benchmark datasets, demonstrating significant improvements in precision and robustness for complex linguistic structures.

Introduction

In Aspect-Based Sentiment Analysis (ABSA), understanding the specific target of a sentiment is as crucial as the sentiment itself. The ASTE task formalizes this by extracting triplets consisting of an Aspect Term (AT), an Opinion Term (OT), and Sentiment Polarity (SP). For example, in the sentence "The hot dogs are top notch," the triplet is <hot dogs, top notch, positive>.

Example of Aspect Sentiment Triplet Extraction (ASTE) showing bidirectional prediction paths.

Previous research primarily utilized token-level sequence labeling. However, these methods are prone to "cascading errors" when dealing with long, multi-token entities. While span-level models have emerged to mitigate this, they often struggle to distinguish between overlapping spans (e.g., "hot dogs" vs. "the hot dogs") and typically rely on unidirectional extraction, which may ignore the predictive power of opinion terms.

Methodology: The Span-level Bidirectional Network (SBN)

The proposed SBN architecture consists of three primary components designed to enhance span-level extraction.

The architecture of the Span-level Bidirectional Network (SBN), featuring bidirectional decoding and span separation.

1. Bidirectional Decoding

Unlike unidirectional models, SBN employs two decoders that share features but operate in opposite directions:

  • Aspect-to-Opinion (A→O): Identifies potential aspects and then searches for related opinions.
  • Opinion-to-Aspect (O→A): Identifies potential opinions and then searches for related aspects.

This dual-path approach captures complementary views of the sentence, ensuring that triplets triggered more clearly by an opinion are not missed.

2. Similar Span Separation Loss ($J_{KL}$)

To address the "overlapping span" problem, we introduce a loss function based on Kullback-Leibler (KL) divergence. This loss explicitly penalizes the model when the internal representations of overlapping spans (e.g., "hot dogs" and "dogs") are too similar in the latent space. By "pushing apart" these representations, the model more accurately selects the correct boundaries for entities.

3. Confidence-Based Inference

During inference, the model generates candidate triplets from both decoding directions. A confidence-score strategy is then applied to prune overlapping or contradictory triplets, ensuring a clean and precise final output. The system uses BERT for initial embeddings, which are aggregated into span representations via max-pooling.

Experimental Setup and Results

The SBN model was evaluated on four standard ASTE benchmarks: 14LAP (laptop reviews) and 14RES, 15RES, 16RES (restaurant reviews).

Performance Analysis

SBN established a new state-of-the-art for ASTE, outperforming previous models like Span-ASTE and B-MRC across all datasets. Key findings include:

  • F1-Score Improvement: An average increase of 2.3% in F1-score compared to previous benchmarks.
  • Precision and Robustness: The model showed a significant boost in precision, largely attributed to the span separation loss and bidirectional pruning.
  • Complexity Handling: SBN demonstrated superior performance on sentences with more than five triplets and multi-word entities, where token-tagging models typically fail.
  • Efficiency: Despite the $O(n^2)$ span enumeration, SBN is computationally more efficient (lower GFLOPs) than several recent competitors.

Conclusion

The Span-level Bidirectional Network (SBN) effectively addresses the limitations of traditional ASTE models. By incorporating bidirectional decoding and a novel span separation loss, SBN achieves superior accuracy and robustness. Future work will explore extending this bidirectional span logic to other relation extraction tasks and refining span length constraints.

Summary updated

BibTeX
@inproceedings{chen2022span,
  author = {Yuqi Chen and Keming Chen and Xian Sun and Zequn Zhang},
  title = {{A Span-level Bidirectional Network for Aspect Sentiment Triplet Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.289},
}
Figure