A Unified One-Step Solution for Aspect Sentiment Quad Prediction

Junxian Zhou, Haiqin Yang, Yuxuan He, Hao Mou, Junbo Yang · OpenReview

Abstract

Aspect sentiment quad prediction (ASQP) is a challenging yet significant subtask in aspect-based sentiment analysis as it provides a complete aspect-level sentiment structure. However, existing ASQP datasets are usually small and low-density, hindering technical advancement. To expand the capacity, in this paper, we release two new datasets for ASQP, which contain the following characteristics: larger size, more words per sample, and higher density. With such datasets, we unveil the shortcomings of existing strong ASQP baselines and therefore propose a unified one-step solution for ASQP, namely One-ASQP, to detect the aspect categories and to identify the aspect-opinion-sentiment (AOS) triplets simultaneously. Our One-ASQP holds several unique advantages: (1) by separating ASQP into two subtasks and solving them independently and simultaneously, we can avoid error propagation in pipeline-based methods and overcome slow training and inference in generation-based methods; (2) by introducing sentiment-specific horns tagging schema in a token-pair-based two-dimensional matrix, we can exploit deeper interactions between sentiment elements and efficiently decode the AOS triplets; (3) we design a "[NULL]" token to help us effectively identify implicit aspects or opinions. Experiments on two benchmark datasets and our released two datasets demonstrate the advantages of our One-ASQP.

Introduction

In Aspect-Based Sentiment Analysis (ABSA), the ultimate goal is Aspect Sentiment Quad Prediction (ASQP). This task requires a model to extract four distinct elements for every sentiment expressed in a review: the Aspect Category ($c$), the Aspect Term ($a$), the Opinion Term ($o$), and the Sentiment Polarity ($s$). For example, in the sentence "The touch screen is great," the quad would be (Screen#General, touch screen, great, Positive).

Existing methodologies face a significant trade-off. Pipeline-based methods, which solve these tasks sequentially, often suffer from error propagation. Conversely, generation-based methods, which output the answer as a text sequence, are computationally expensive and slow during inference. Furthermore, the field has been limited by "low-density" datasets where sentences typically contain only one or two quads, failing to represent the complexity of real-world consumer feedback.

The One-ASQP Framework

To address these challenges, we propose One-ASQP, a unified model that treats ASQP as two parallel subtasks powered by a shared encoder (such as DeBERTaV3). This architecture allows for simultaneous prediction without the bottlenecks of sequential or generative approaches.

Overview of the One-ASQP architecture, illustrating the parallel subtasks and the 2D token-pair tagging matrix.

Parallel Subtasks

  1. Aspect Category Detection (ACD): A multi-class classifier identifies the presence of predefined categories within the text.
  2. Aspect-Opinion-Sentiment Co-extraction (AOSC): This core component utilizes a 2D token-pair matrix. Every word pair in a sentence corresponds to a cell in this grid. We employ a "horns tagging" schema to mark the boundaries of aspect-opinion pairs. Crucially, these tags are sentiment-specific (e.g., AB-OE-POS), enabling the model to extract the aspect, opinion, and sentiment in a single pass.

Handling Implicit Elements

To manage implicit aspects—where a category is implied but not explicitly named—we prepend a [NULL] token to the input. If the model identifies a relationship between an opinion and the [NULL] token within the 2D matrix, it effectively signals an implicit aspect.

High-Density Dataset Release

We introduce two new high-density datasets to better evaluate model performance in complex scenarios:

  • en-Phone: An English dataset of mobile phone reviews containing 7,115 samples.
  • zh-FoodBeverage: The first Chinese ASQP dataset, consisting of 9,570 samples.

These datasets are significantly denser than previous benchmarks. While standard datasets like Laptop-ACOS average 1.4 quads per sentence, our new datasets reach up to 2.6 quads, featuring longer sentences and more fine-grained categories.

Experimental Results

One-ASQP demonstrates superior performance across both standard and our newly released datasets. On the zh-FoodBeverage dataset, the "Large" version of One-ASQP achieved an F1 score of 58.51, significantly outperforming existing baselines.

Efficiency comparison showing training and inference times (in seconds) for One-ASQP versus baseline methods.

Beyond accuracy, One-ASQP offers a massive improvement in efficiency. By decoding the 2D grid in a single step rather than generating text token-by-token, the model is approximately 6x to 10x faster during inference than state-of-the-art generative models like Paraphrase or GEN-SCL-NAT. This speedup makes it far more viable for real-time industrial applications.

Conclusion

One-ASQP provides a robust, efficient solution for the complex task of aspect sentiment quad prediction. By utilizing a 2D tagging matrix and a shared encoder, the model avoids the pitfalls of pipeline error propagation and generative latency. Our release of high-density datasets further provides the community with the necessary tools to advance ABSA research in more realistic, complex environments.

Summary updated

Abstract

Aspect sentiment quad prediction (ASQP) is a challenging yet significant subtask in aspect-based sentiment analysis as it provides a complete aspect-level sentiment structure. However, existing ASQP datasets are usually small and low-density, hindering technical advancement. To expand the capacity, in this paper, we release two new datasets for ASQP, which contain the following characteristics: larger size, more words per sample, and higher density. With such datasets, we unveil the shortcomings of existing strong ASQP baselines and therefore propose a unified one-step solution for ASQP, namely One-ASQP, to detect the aspect categories and to identify the aspect-opinion-sentiment (AOS) triplets simultaneously. Our One-ASQP holds several unique advantages: (1) by separating ASQP into two subtasks and solving them independently and simultaneously, we can avoid error propagation in pipeline-based methods and overcome slow training and inference in generation-based methods; (2) by introducing sentiment-specific horns tagging schema in a token-pair-based two-dimensional matrix, we can exploit deeper interactions between sentiment elements and efficiently decode the AOS triplets; (3) we design ``[NULL]'' token can help us effectively identify the implicit aspects or opinions. Experiments on two benchmark datasets and our released two datasets demonstrate the advantages of our One-ASQP. The two new datasets are publicly released at \url{https://www.github.com/Datastory-CN/ASQP-Datasets}.
BibTeX
@misc{zhou2023unified,
  author = {Junxian Zhou and Haiqin Yang and Yuxuan He and Hao Mou and Junbo Yang},
  title = {{A Unified One-Step Solution for Aspect Sentiment Quad Prediction}},
  year = {2023},
  eprint = {2306.04152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04152},
}
Figure