[Paper Review] Achieving Forgetting Prevention and Knowledge Transfer in Continual Learning
The paper introduces CTR, a continual learning plug-in architecture for BERT that uses capsules and transfer routing to prevent catastrophic forgetting and enable knowledge transfer across NLP tasks in Task-CL settings. It shows CTR outperforms strong baselines on several datasets while using a single pair of CL-plugins inserted into BERT.
Continual learning (CL) learns a sequence of tasks incrementally with the goal of achieving two main objectives: overcoming catastrophic forgetting (CF) and encouraging knowledge transfer (KT) across tasks. However, most existing techniques focus only on overcoming CF and have no mechanism to encourage KT, and thus do not do well in KT. Although several papers have tried to deal with both CF and KT, our experiments show that they suffer from serious CF when the tasks do not have much shared knowledge. Another observation is that most current CL methods do not use pre-trained models, but it has been shown that such models can significantly improve the end task performance. For example, in natural language processing, fine-tuning a BERT-like pre-trained language model is one of the most effective approaches. However, for CL, this approach suffers from serious CF. An interesting question is how to make the best use of pre-trained models for CL. This paper proposes a novel model called CTR to solve these problems. Our experimental results demonstrate the effectiveness of CTR
Motivation & Objective
- Motivate and address catastrophic forgetting (CF) in Task-CL settings for NLP tasks.
- Enable forward and backward knowledge transfer across related tasks while learning a sequence of tasks.
- Leverage pre-trained models (BERT) effectively in continual learning without fine-tuning them for every task.
- Develop a plug-in CL architecture (CTR) that works with a single pair of CL-plugins inserted into BERT.
- Demonstrate state-of-the-art performance against strong baselines on multiple NLP tasks and datasets.
Proposed method
- Insert two CL-plugins into BERT at transformer layers to avoid fine-tuning the base model while benefiting from transfer learning.
- Each CL-plugin contains a knowledge sharing module (KSM) and a task specific module (TSM) with a skip connection.
- KSM uses a task capsule layer, transfer capsule layer, and transfer routing to identify and transfer shareable knowledge via a transfer routing mechanism.
- TSM protects task-specific knowledge using differentiable masks to prevent forgetting across tasks.
- CL-plugin uses a Capsule Network (CapsNet) style architecture with a transfer routing process to select transferable features from previous tasks.
Experimental results
Research questions
- RQ1Can CTR prevent catastrophic forgetting when learning a sequence of NLP tasks (Task-CL) with minimal fine-tuning of a pre-trained model?
- RQ2Does CTR improve knowledge transfer across tasks with varying degrees of shared knowledge, compared to existing CL methods?
- RQ3What is the impact of inserting CL-plugins in different locations of BERT on continual learning performance?
- RQ4How does CTR perform relative to strong baselines on datasets spanning document sentiment classification, aspect sentiment classification, and generic text classification?
- RQ5Is a single pair of CL-plugins sufficient to achieve both forgetting prevention and knowledge transfer across diverse NLP tasks?
Key findings
- CTR outperforms all baselines across ASC, DSC (small and full data), and 20News tasks in both accuracy and Macro-F1 averaged over sequences.
- Compared to fine-tuned BERT and Adapter-BERT baselines, CTR achieves superior forgetting avoidance and knowledge transfer.
- Transfer routing with the CL-plugin provides substantial gains over dynamic routing in prior knowledge-transfer methods, reducing the need for hyper-parameter tuning.
- CTR’s performance approaches the multitask learning (MTL) upper bound, indicating effective knowledge sharing while mitigating CF.
- CTR demonstrates strong memory protection via task masks, enabling backward transfer among similar tasks and robust forward transfer to new tasks.
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.