Abstract
Traditional approaches to Aspect-Based Sentiment Analysis (ABSA) treat the problem as a classification task, often creating a gap between pre-trained model objectives and downstream tasks. This paper explores reframing ABSA—specifically Aspect Category Detection (ACD) and Aspect Category Sentiment Analysis (ACSA)—as a natural language generation problem. By utilizing a sequence-to-sequence framework with the BART model, the proposed method achieves state-of-the-art results and demonstrates remarkable robustness in low-resource and zero-shot scenarios.
Introduction
Sentiment analysis has evolved from simple document-level polarity detection to more granular Aspect-Based Sentiment Analysis (ABSA). ABSA typically involves two subtasks: Aspect Category Detection (ACD), which identifies the discussed categories (e.g., "service", "price"), and Aspect Category Sentiment Analysis (ACSA), which determines the sentiment toward those categories.
Conventional methods append a classification layer to pre-trained models like BERT. However, researchers argue this is "indirect," as it introduces randomly initialized parameters and forces the model into a non-natural format, failing to fully leverage the linguistic knowledge acquired during pre-training.
Methodology: ABSA as Text Generation
The authors propose casting ACD and ACSA as sequence-to-sequence (seq2seq) generation tasks. Instead of predicting a discrete label, the model (specifically BART) is prompted to generate a natural language sentence based on a template.
For example, in ACSA, the model is tasked with completing the sentence: "The sentiment polarity of [category] is [polarity]." This approach aligns the task with the "denoising" or "text reconstruction" objectives used during the model's initial pre-training, bridging the gap between pre-training and fine-tuning.
A Joint Model was also developed to handle both detection and sentiment analysis simultaneously. If a category is absent, the model generates a sentence indicating no sentiment is present for that category.
Experimental Setup and Datasets
The method was evaluated on several benchmark datasets:
- Sentence-Level: SemEval-2014 (Rest14), Rest14-hard, and MAMS (Multi-Aspect Multi-Sentiment).
- Document-Level: TripAdvisor and BeerAdvocate.
These datasets provide a rigorous testing ground for handling multiple aspects within single sentences and long-form reviews.
Key Results
The generative approach demonstrated significant improvements over classification-based baselines:
- State-of-the-Art Performance: On the MAMS dataset, the BART-based generation method achieved 83.13% accuracy, outperforming top BERT classifiers by nearly 2%.
- Few-Shot Learning: The model showed exceptional performance with minimal data. With only 10 training examples per category, it reached 82.01% accuracy on Rest14, whereas a standard BERT classifier managed only 38.57%.
- Zero-Shot Transfer: The generative framework maintained higher performance when transferred across different domains (e.g., from restaurants to general reviews) compared to traditional classifiers.
Discussion and Limitations
The success of this approach stems from treating pre-trained models as "sentence completers," playing to their inherent strengths. It also proves more robust at identifying implicit aspects (e.g., "The bill was huge" implying "price").
However, some challenges remain:
- Template Sensitivity: Performance varies based on the specific phrasing of the templates, requiring careful "prompt engineering."
- Inference Latency: Token-by-token generation in decoders is inherently slower than a single-pass classification head.
- Manual Design: Templates are currently hand-crafted; future work may involve automated prompt tuning.
Conclusion
Reframing ABSA as a text generation task significantly narrows the gap between pre-training and task-specific fine-tuning. This paradigm shift not only improves accuracy but also provides a powerful tool for sentiment analysis in data-scarce environments.
Summary updated