Linked Adapters: Linking Past and Future to Present for Effective Continual Learning
Preprint
Abstract
Continual learning allows the system to learn and adapt to new tasks while retaining the knowledge acquired from previous tasks. However, deep learning models suffer from catastrophic forgetting of knowledge learned from earlier tasks while learning a new task. Moreover, retraining large models like transformers from scratch for every new task is costly. An effective approach to address continual learning is to use a large pre-trained model with task-specific adapters to adapt to the new tasks. Though this approach can mitigate catastrophic forgetting, they fail to transfer knowledge across tasks as each task is learning adapters separately. To address this, we propose a novel approach Linked Adapters that allows knowledge transfer through a weighted attention mechanism to other task-specific adapters. Linked adapters use a multi-layer perceptron (MLP) to model the attention weights, which overcomes the challenge of backward knowledge transfer in continual learning in addition to modeling the forward knowledge transfer. During inference, our proposed approach effectively leverages knowledge transfer through MLP-based attention weights across all the lateral task adapters. Through numerous experiments conducted on diverse image classification datasets, we effectively demonstrated the improvement in performance on the continual learning tasks using Linked Adapters.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- CODA-Prompt: COntinual Decomposed Attention-Based Prompting for Rehearsal-Free Continual Learning2023
- DualPrompt: Complementary Prompting for Rehearsal-Free Continual Learning2022
- DyTox: Transformers for Continual Learning with DYnamic TOken eXpansion2022
- Continual Learning with Transformers for Image Classification2022
- Continual lifelong learning with neural networks: A reviewNeural Networks, 2019
- Efficient Parametrization of Multi-domain Deep Neural Networks2018
- iCaRL: Incremental Classifier and Representation Learning2017
- Overcoming catastrophic forgetting in neural networksProceedings of the National Academy of Sciences of the United States of America, 2017
- Consciousness CLEARS the mindNeural Networks, 2007
- Catastrophic Interference in Connectionist Networks: The Sequential Learning Problem1989