Introduction
Aspect-Based Sentiment Analysis (ABSA) is a critical task in natural language processing that aims to extract fine-grained sentiment information from text. Unlike general sentiment analysis, ABSA identifies specific aspect terms (e.g., "drinks"), associated opinion terms (e.g., "well made"), and the sentiment polarity (e.g., "positive") directed at those aspects. Historically, the field has fragmented into seven distinct subtasks, ranging from simple Aspect Term Extraction (AE) to complex Triplet Extraction. This fragmentation led to a "divergence" problem, where specialized architectures were required for different subtasks depending on their input requirements and output formats.
Problem Formulation
The seven subtasks of ABSA vary in complexity and the type of information they require. For instance, Aspect-level Sentiment Classification (ALSC) requires the aspect term as input, whereas Triplet Extraction requires the model to identify aspects, opinions, and sentiments simultaneously.
To address this, the authors propose a unified framework that treats all ABSA subtasks as a sequence-to-sequence generation problem.
Methodology
The core of the proposed framework is a unified generative formulation. Instead of employing complex tagging schemas or task-specific decoders, the model generates a sequence of indices that represent the desired output.
Index-based Target Sequences
The model utilizes two types of indices:
- Pointer Indexes: These represent the start and end positions of terms (aspects or opinions) within the original input sentence.
- Class Indexes: These represent sentiment polarities (Positive, Negative, Neutral) as "virtual tokens" appended to the end of the sentence's index range.
Architecture
The framework leverages BART, a pre-trained sequence-to-sequence transformer. The encoder processes the input sentence, while the decoder generates the sequence of pointers and sentiment tokens. A pointer mechanism is used where the decoder's hidden state is compared against the encoder's hidden states via a dot-product to select the most likely index.
Experimental Setup
The model was evaluated on four standard ABSA datasets from the SemEval Challenges:
- D17 (14res, 14lap, 15res): Annotated for aspect/opinion terms and sentiment.
- D19 (14res, 14lap, 15res, 16res): Focused on Aspect-oriented Opinion Extraction (AOE).
- D20a & D20b: Refined versions for Triplet Extraction.
Results and Discussion
The proposed framework achieved state-of-the-art (SOTA) results across multiple benchmarks. Notably, on the D20b dataset for Triplet Extraction, the model improved recall by 7 to 13 points compared to previous methods. Despite using a BART-Base backbone (139M parameters), it outperformed several BERT-Large based models (340M parameters), demonstrating the efficiency of the generative approach.
The authors observed that the model is robust to beam search variations, with F1 scores remaining stable across different beam sizes. Furthermore, while generative models can theoretically produce invalid sequences, the invalid rate for this framework was remarkably low (under 3%), indicating that the BART model effectively learns the required output structure.
Conclusion
This work demonstrates that a unified generative framework can effectively solve diverse ABSA subtasks without task-specific modifications. By redefining extraction and classification as a sequence generation problem, the authors bridge the gap between fragmented ABSA tasks and set a new standard for performance and architectural simplicity in the field.
Summary updated