Abstract
Aspect-Based Sentiment Analysis (ABSA) is a fine-grained task that identifies sentiment polarities for specific aspects within a text. A significant challenge in ABSA is the domain shift between large-scale general pretraining datasets and small, domain-specific target datasets. This paper presents UIKA (Unified Instance and Knowledge Alignment), a novel three-stage pretraining framework designed to mitigate this gap. By integrating coarse-to-fine instance retrieval with a teacher-student knowledge transfer mechanism, UIKA ensures that models retain general sentiment knowledge while effectively adapting to target domains. Our evaluation across six benchmark datasets shows that UIKA achieves state-of-the-art performance and provides consistent improvements over standard pretraining methods.
Introduction
While traditional sentiment analysis provides a global view of a text's polarity, Aspect-Based Sentiment Analysis (ABSA) offers granular insights by identifying sentiment for specific entities (e.g., "food" vs. "service" in a restaurant review). However, the effectiveness of ABSA models is often hampered by domain shift. Models pretrained on massive, general-purpose datasets (like Amazon or Yelp reviews) frequently struggle when applied to specialized domains (like technical laptop reviews) due to differences in vocabulary, syntax, and sentiment expression. This "forgetting" of general knowledge or failure to adapt to domain nuances limits the transferability of pretrained representations.
The UIKA Framework
The proposed UIKA framework addresses domain shift through a unified alignment strategy executed in three stages:
Stage 1: Instance Alignment
To reduce the gap at the instance level, UIKA employs a Coarse-to-Fine Retrieval Sampling strategy. Instead of using the entire source corpus, it selects the most relevant sentences for the target domain. This is achieved by first using BM25 for keyword-based filtering, followed by semantic embedding similarity to identify the top-K most relevant instances. Furthermore, a "Pseudo-Aspect Extraction" method is used to convert these general sentences into aspect-level data suitable for ABSA pretraining.
Stage 2: Knowledge Alignment
To prevent catastrophic forgetting during domain adaptation, UIKA utilizes a teacher-student learning paradigm. A Knowledge Guidance model (the teacher) is trained on the target data, while a Learner model (the student) is updated using an Exponential Moving Average (EMA) of the teacher's weights. This "slow learner" approach allows the student to maintain domain-invariant knowledge while gradually absorbing domain-specific insights.
Stage 3: Target Task Fine-tuning
In the final stage, the Learner model is fine-tuned on the specific target dataset to maximize performance on the end task, leveraging the aligned representations developed in the previous stages.
Experimental Evaluation
The researchers evaluated UIKA using large-scale review datasets from Amazon and Yelp for source pretraining. The framework was tested against six standard ABSA benchmarks: Laptop14, Restaurant14, Twitter, Restaurant15, Restaurant16, and MAMS. These datasets represent a diverse range of domains and sentiment complexities.
Results and Discussion
UIKA demonstrated superior performance across nearly all benchmarks, establishing new state-of-the-art (SOTA) results. For example, on the Laptop14 dataset, UIKA achieved an accuracy of 83.21% when using a BERT-based backbone.
Key findings include:
- Data Quality over Quantity: The success of the coarse-to-fine sampling indicates that pretraining on a smaller, highly relevant subset is more effective than using a massive, noisy dataset.
- EMA Stability: The EMA-based knowledge alignment proved crucial for maintaining general sentiment patterns that are typically lost during aggressive fine-tuning.
- Model Agnostic: UIKA acts as a versatile "plugin," improving performance across various architectures, including CNNs, LSTMs, and Graph Convolutional Networks (GCNs).
Conclusion
UIKA effectively bridges the domain gap in ABSA by aligning both instances and knowledge between source and target domains. While the current implementation relies on a simple NLTK-based aspect extractor, future work will explore integrating deep-learning-based extractors to further refine the pretraining data. Additionally, the framework's potential for cross-lingual ABSA remains a promising avenue for research.
Summary updated