A Pairing Enhancement Approach for Aspect Sentiment Triplet Extraction

Fan Yang, Mian Zhang, Gongzhen Hu, Xiabing Zhou

Abstract

Aspect Sentiment Triplet Extraction (ASTE) aims to extract the triplet of an aspect term, an opinion term, and their corresponding sentiment polarity from review texts. Due to the complexity of natural language and the presence of multiple aspect and opinion terms in single sentences, current models often struggle with "pairing confusion"—mismatching an aspect term with an opinion term that does not describe it. To address this, we propose a pairing enhancement approach for ASTE that incorporates contrastive learning during the training stage. By injecting aspect-opinion pairing knowledge into the triplet extraction model, our approach achieves state-of-the-art performance on four standard ASTE datasets (14lap, 14res, 15res, and 16res). Ablation studies further verify the advantage of contrastive learning over alternative pairing enhancement methods.

Introduction

In modern sentiment analysis, identifying the general sentiment of a review is often insufficient for business intelligence or consumer insights. Researchers instead focus on Aspect-Based Sentiment Analysis (ABSA), specifically the task of Aspect Sentiment Triplet Extraction (ASTE). ASTE requires the model to identify three specific components: the aspect term (the target being discussed), the opinion term (the descriptor used), and the sentiment polarity (positive, negative, or neutral).

While generative models like T5 have shown promise in this area, they frequently encounter structural failures in complex sentences. For example, in the sentence, "The prawns were fresh, but the batter had a slight crispiness," a model might correctly identify all terms but incorrectly pair "prawns" with "crispiness." This "pairing confusion" limits the reliability of generative extraction methods.

Methodology

Generative Backbone

The proposed framework utilizes the Text-to-Text Transfer Transformer (T5) as its generative backbone. T5 treats the extraction task as a sequence-to-sequence problem, encoding the input sentence and decoding it into a structured format. The researchers evaluated two formats: an "annotation style" (e.g., [aspect | opinion | sentiment]) and an "extraction style" (a list of tuples).

Semantic Anchoring via BERT

To provide the model with a conceptual understanding of what constitutes a valid pair, the authors utilize a separate BERT model to encode text descriptions. By creating "pair descriptions" and "unpair descriptions," the framework establishes semantic anchors in the vector space. These anchors serve as reference points for the model to understand the relationship between aspects and opinions.

Pair Contrastive Learning

The core innovation of this research is the Pair Contrastive Learning objective. During training, the model extracts dense embeddings for the aspect and opinion terms. A contrastive loss function is then applied to:

  1. Pull together the embeddings of true aspect-opinion pairs and the "pair" description anchor.
  2. Push away mismatched pairs from the "pair" description, moving them instead toward the "unpair" description anchor.

This "push-pull" dynamic organizes the model's internal representation, making it significantly easier for the decoder to generate correct relationships during the final extraction phase.

Experimental Results

The approach was evaluated on the ASTE-Data-V2 benchmark, which includes laptop reviews (14lap) and restaurant reviews (14res, 15res, 16res) from the SemEval challenges.

Performance Gains

The model demonstrated superior performance compared to strong baselines such as GAS (Generative Aspect-based Sentiment analysis) and BART-ABSA:

  • Extraction Style: The model achieved F1 score increases of up to 1.28% over previous state-of-the-art methods.
  • Annotation Style: The improvements were more pronounced in this format, with F1 score jumps as high as 7.19% on the 14lap dataset.

Feature Separability

Visualization of word embeddings using t-SNE confirmed the effectiveness of the contrastive objective. Before the enhancement, true and false pairs were often clustered together, leading to decoding errors. After applying the pairing enhancement, the embeddings for true and false pairs formed distinct, clear clusters, illustrating that the model had successfully learned the underlying relational logic.

Discussion and Future Work

Ablation studies compared contrastive learning against simpler methods, such as using a basic linear layer to predict pairs. The results showed that the contrastive approach is essential for handling the nuances of complex sentences.

However, some limitations remain. The researchers noted that while the model is excellent at pairing, it occasionally struggles with boundary detection—precisely identifying the start and end of multi-word terms (e.g., extracting "roll" instead of "tuna roll"). Future work will focus on improving boundary accuracy and extending the framework to handle quadruplet extraction, which adds "aspect category" to the triplet format.

Summary updated

Abstract

Aspect Sentiment Triplet Extraction (ASTE) aims to extract the triplet of an aspect term, an opinion term, and their corresponding sentiment polarity from the review texts. Due to the complexity of language and the existence of multiple aspect terms and opinion terms in a single sentence, current models often confuse the connections between an aspect term and the opinion term describing it. To address this issue, we propose a pairing enhancement approach for ASTE, which incorporates contrastive learning during the training stage to inject aspect-opinion pairing knowledge into the triplet extraction model. Experimental results demonstrate that our approach performs well on four ASTE datasets (i.e., 14lap, 14res, 15res and 16res) compared to several related classical and state-of-the-art triplet extraction methods. Moreover, ablation studies conduct an analysis and verify the advantage of contrastive learning over other pairing enhancement approaches.
BibTeX
@inproceedings{yang2023pairing,
  author = {Fan Yang and Mian Zhang and Gongzhen Hu and Xiabing Zhou},
  title = {{A Pairing Enhancement Approach for Aspect Sentiment Triplet Extraction}},
  booktitle = {KSEM},
  year = {2023},
  url = {https://openreview.net/forum?id=JQSxZrDaeb},
}
Figure