Abstract
Aspect-Based Sentiment Analysis (ABSA) aims to identify targets, aspects, and sentiments within text. However, existing approaches often treat these as separate tasks, failing to capture the dual-dependence between aspects and sentiments or handle implicit targets where the subject is not explicitly mentioned. This paper introduces the Target-Aspect-Sentiment Detection (TASD) task and proposes TAS-BERT, a unified model that jointly detects these three elements. TAS-BERT utilizes a BERT-based architecture with dual heads for classification and sequence labeling. Experimental results on SemEval benchmarks demonstrate that TAS-BERT achieves state-of-the-art performance, particularly in identifying implicit targets.
Introduction
In Natural Language Processing (NLP), Aspect-Based Sentiment Analysis (ABSA) provides a granular understanding of opinions by identifying the target (what is being discussed), the aspect (the category), and the sentiment (the polarity). Despite its utility, traditional ABSA faces two significant challenges:
- Dual Dependence: Sentiment polarity often depends on both the target and the aspect simultaneously. For instance, in the review "The seafood was good, but the prices were high," the sentiment "high" is negative specifically in the context of the "Food Prices" aspect.
- Implicit Targets: Many reviews contain "NULL" or implicit targets. A statement like "It was way too loud" implies the "Ambience" aspect but lacks an explicit noun target.
To address these, the authors propose the Target-Aspect-Sentiment Detection (TASD) task, which aims to extract (target, aspect, sentiment) triples directly.
Methodology: TAS-BERT
The proposed model, TAS-BERT, is built upon the BERT architecture. It transforms the TASD task into a series of sub-problems for every possible aspect-sentiment pair.
Input Representation
The model receives a concatenated sequence consisting of the original sentence, a candidate aspect (e.g., SERVICE#GENERAL), and a candidate sentiment (e.g., negative). This allows the model to contextualize the sentence within a specific aspect-sentiment frame.
Model Architecture
TAS-BERT employs a dual-head structure following the BERT encoder:
- Classification Head: A linear layer followed by a Softmax function determines if a target exists for the given aspect-sentiment pair (a "yes/no" binary classification).
- Sequence Labeling Head: A Conditional Random Field (CRF) or Softmax decoder identifies the span of the target words within the sentence if the classification head returns "yes".
By training on a combined loss function, the model learns to jointly optimize for both target existence and target extraction.
Experimental Setup and Results
The model was evaluated on the SemEval-2015 Task 12 and SemEval-2016 Task 5 restaurant datasets. These benchmarks are notable for having approximately 25% implicit targets, making them ideal for testing TAS-BERT's capabilities.
Performance
TAS-BERT achieved state-of-the-art results on the TASD task, reaching an F1 score of 65.89% on the SemEval-2016 dataset, a significant improvement over pipeline-based baselines. Notably, the model excelled in:
- Implicit Target Detection: The dual-head approach allows the model to correctly identify
NULLtargets when the classifier indicates a valid triple but the extractor finds no specific words. - Sub-task Robustness: TAS-BERT outperformed specialized models even on simpler tasks like Aspect Detection (AD) and Target Detection (TD).
Discussion and Conclusion
The success of TAS-BERT underscores the importance of joint detection. By feeding aspect and sentiment information directly into the encoder, the model captures the complex relationships necessary for accurate ABSA.
One identified limitation is "Error-4," where the model struggles with sentences containing multiple targets for the same aspect-sentiment pair (e.g., "The pizza and pasta were both great"). Future work will focus on refining data construction methods to resolve these overlaps and exploring more advanced decoding strategies.
Summary updated