Introduction: The Stability-Plasticity Dilemma
Continual Learning (CL) aims to enable AI models to learn a sequence of tasks over time. However, this field faces a fundamental "stability-plasticity" dilemma. On one hand, models must remain stable to prevent Catastrophic Forgetting (CF), where new information overwrites previously acquired knowledge. On the other hand, they must remain plastic enough to acquire new skills and, ideally, benefit from Knowledge Transfer (KT)—leveraging old knowledge to learn new tasks more efficiently.
Most existing CL methods prioritize one over the other. Isolation-based methods prevent forgetting by locking parameters but block knowledge sharing. Conversely, sharing-based methods encourage transfer but often exacerbate forgetting. Furthermore, while pre-trained models like BERT provide a strong foundation for NLP, standard fine-tuning on sequential tasks leads to significant performance degradation on earlier tasks.
Proposed Method: CTR (Capsules and Transfer Routing)
To address these challenges, researchers proposed CTR, a novel architecture that integrates specialized "CL-plugins" into a frozen pre-trained BERT model. This approach avoids modifying the core weights of the language model, preserving its general capabilities while allowing for task-specific adaptation.
The CL-plugin consists of two primary components designed to balance sharing and protection:
- Knowledge Sharing Module (KSM): Utilizing a capsule network architecture, the KSM represents each task as a "capsule" (a vector of neurons). A novel Transfer Routing algorithm acts as a gatekeeper; it calculates the similarity between the current task and previous ones. If a previous task is relevant, the router establishes a connection, allowing the new task to borrow features from the old one. This mechanism uses a Gumbel-Softmax approach to make discrete, differentiable decisions about which knowledge to share.
- Task Specific Module (TSM): To prevent forgetting, the TSM employs task masks (hard attention). When a task is learned, the model identifies and "locks" the essential neurons. When subsequent tasks arrive, these masked neurons are shielded from updates, ensuring that the knowledge required for previous tasks remains intact.
Experimental Evaluation
The CTR model was evaluated across three diverse NLP benchmarks:
- Document Sentiment Classification (DSC): 10 product review datasets.
- Aspect Sentiment Classification (ASC): 19 datasets focused on fine-grained sentiment analysis.
- 20News: A text classification dataset split into 10 tasks, used to test performance on dissimilar tasks where forgetting is a high risk.
Key Results and Insights
CTR consistently outperformed 38 baseline methods, including EWC, HAT, and Adapter-BERT.
- State-of-the-Art Accuracy: On the ASC benchmark, CTR achieved 89.47% accuracy, vastly outperforming the "No Forgetting Handling" baseline (49.60%) and specialized CL models like HAT (80.83%). Its performance approached the theoretical upper bound of Multitask Learning (MTL).
- Zero Forgetting on Dissimilar Tasks: On the 20News dataset, CTR maintained a Forgetting Rate (FR) of nearly zero. This confirms that the masking mechanism effectively isolates task-specific knowledge when sharing is not beneficial.
- Backward Transfer: A significant advantage of CTR is its ability to facilitate backward transfer. Because the routing gates are differentiable, training on a new, similar task can refine shared features in a way that actually improves performance on previously learned tasks.
Conclusion and Future Work
CTR demonstrates that high-performance continual learning can be achieved by augmenting frozen pre-trained models with modular, task-aware plugins. By combining capsule-based transfer routing with hard-attention masking, the model effectively navigates the stability-plasticity trade-off.
Future research will focus on improving the efficiency of capsule operations, which currently involve large vectors that can slow training. Additionally, researchers aim to extend the architecture to "Class-CL" settings, where the model must infer the Task ID at test time, removing the current dependency on external task identification.
Summary updated