[Paper Review] CLASSIC: Continual and Contrastive Learning of Aspect Sentiment Classification Tasks
This paper proposes CLASSIC, a novel continual and contrastive learning framework for aspect sentiment classification in the domain incremental learning (DIL) setting, where no task identity is required during inference. By leveraging adapter-based BERT fine-tuning, contrastive knowledge distillation, and task masks, CLASSIC effectively transfers shared knowledge across domains and mitigates catastrophic forgetting, achieving state-of-the-art performance with 90.22% accuracy and 85.12% Macro-F1 on a 19-task benchmark.
This paper studies continual learning (CL) of a sequence of aspect sentiment classification(ASC) tasks in a particular CL setting called domain incremental learning (DIL). Each task is from a different domain or product. The DIL setting is particularly suited to ASC because in testing the system needs not know the task/domain to which the test data belongs. To our knowledge, this setting has not been studied before for ASC. This paper proposes a novel model called CLASSIC. The key novelty is a contrastive continual learning method that enables both knowledge transfer across tasks and knowledge distillation from old tasks to the new task, which eliminates the need for task ids in testing. Experimental results show the high effectiveness of CLASSIC.
Motivation & Objective
- To address the challenge of continual aspect sentiment classification (ASC) in the domain incremental learning (DIL) setting, where task identities are unknown at test time.
- To overcome catastrophic forgetting in sequential ASC tasks while enabling knowledge transfer across domains.
- To eliminate the need for task identifiers during inference by training a single unified model capable of handling all previous and new tasks.
- To develop a contrastive learning method that supports both forward and backward knowledge transfer across tasks.
Proposed method
- Adopt adapter-based BERT fine-tuning to preserve pre-trained BERT parameters while allowing task-specific adaptation, reducing catastrophic forgetting.
- Introduce a novel contrastive continual learning method that aligns representations across tasks to transfer shareable knowledge.
- Apply contrastive ensemble distillation to transfer knowledge from all previous tasks to the current model, enabling the final model to classify all tasks without task IDs.
- Use learnable task masks to isolate and protect task-specific knowledge, minimizing interference and forgetting.
- Train the model end-to-end with a contrastive loss that encourages similar samples from different tasks to have similar representations.
- Integrate knowledge distillation from previous task models into the current model to preserve performance on old tasks.
Experimental results
Research questions
- RQ1Can a continual learning framework effectively transfer shared knowledge across diverse domains in aspect sentiment classification without requiring task identities during inference?
- RQ2How can catastrophic forgetting be mitigated in continual aspect sentiment classification when using BERT-based models?
- RQ3To what extent does contrastive learning enhance knowledge transfer and model generalization across sequential ASC tasks in the DIL setting?
- RQ4Does the proposed method outperform existing continual learning baselines in terms of accuracy and robustness on sequential ASC tasks?
- RQ5Can a single unified model trained via contrastive knowledge distillation and adapter fine-tuning achieve high performance across all previous and new tasks without task-specific head selection?
Key findings
- CLASSIC achieves 90.22% accuracy and 85.12% Macro-F1 on a 19-task domain incremental learning benchmark, significantly outperforming all state-of-the-art baselines.
- The ablation study confirms that each component—contrastive knowledge sharing, contrastive supervised learning, and contrastive ensemble distillation—contributes meaningfully to performance, with the full model yielding the best results.
- Forward transfer is effective, as shown by the improvement from CLASSIC(forward) to CLASSIC, and backward transfer further enhances performance, indicating successful knowledge retention.
- CLASSIC outperforms BERT fine-tuning, Adapter-BERT, LAMOL, KAN, and HAT even when the latter two are augmented with entropy-based task identification, proving its superiority in the DIL setting.
- The model maintains strong performance across all tasks, with no degradation on earlier tasks, demonstrating effective mitigation of catastrophic forgetting.
- The contrastive learning components significantly improve generalization, as evidenced by the consistent gains in Macro-F1 across all tasks, especially in imbalanced settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.