Aspect-based Sentiment Analysis (ABSA) aims to determine the sentiment polarity towards an aspect. Because of the expensive and limited labelled data, the pretraining strategy has become the de-facto standard for ABSA. However, there always exists severe domain shift between the pretraining and downstream ABSA datasets, hindering the effective knowledge transfer when directly finetuning and making the downstream task performs sub-optimal. To mitigate such domain shift, we introduce a unified alignment pretraining framework into the vanilla pretrain-finetune pipeline with both instance- and knowledge-level alignments. Specifically, we first devise a novel coarse-to-fine retrieval sampling approach to select target domain-related instances from the large-scale pretraining dataset, thus aligning the instances between pretraining and target domains (First Stage). Then, we introduce a knowledge guidance-based strategy to further bridge the domain gap at the knowledge level. In practice, we formulate the model pretrained on the sampled instances into a knowledge guidance model and a learner model, respectively. On the target dataset, we design an on-the-fly teacher-student joint fine-tuning approach to progressively transfer the knowledge from the knowledge guidance model to the learner model (Second Stage). Thereby, the learner model can maintain more domain-invariant knowledge when learning new knowledge from the target dataset. In the Third Stage, the learner model is finetuned to better adapt its learned knowledge to the target dataset. Extensive experiments and analyses on several ABSA benchmarks demonstrate the effectiveness and universality of our proposed pretraining framework. Our source code and models are publicly available at https://github.com/WHU-ZQH/UIKA.
翻译:方面级情感分析(ABSA)旨在判断文本中特定方面的情感极性。由于标注数据昂贵且有限,预训练策略已成为ABSA的事实标准。然而,预训练数据集与下游ABSA数据集之间始终存在严重的领域偏移,导致直接微调时知识迁移效率低下,进而使下游任务表现欠佳。为缓解此类领域偏移,我们在标准预训练-微调流水线中引入了一种包含实例级和知识级对齐的统一对齐预训练框架。具体而言,我们首先提出一种新颖的由粗到细的检索采样方法,从大规模预训练数据集中选取与目标领域相关的实例,从而实现预训练与目标领域间实例的对齐(第一阶段)。接着,我们引入一种基于知识引导的策略,从知识层面进一步弥合领域鸿沟。实践中,我们将基于采样实例预训练的模型分别构建为知识引导模型和学习者模型。针对目标数据集,我们设计了一种在线师生联合微调方法,逐步将知识引导模型中的知识迁移至学习者模型(第二阶段)。这样,学习者在从目标数据集学习新知识时,能保留更多领域不变知识。在第三阶段,我们微调学习者模型,使其学到的知识能更好地适配目标数据集。在多个ABSA基准上的大量实验与分析表明,我们提出的预训练框架具有有效性与普适性。源代码和模型已公开在 https://github.com/WHU-ZQH/UIKA。