Memory Efficient Continual Learning with Transformers
Preprint
Abstract
In many real-world scenarios, data to train machine learning models becomes available over time. Unfortunately, these models struggle to continually learn new concepts without forgetting what has been learnt in the past. This phenomenon is known as catastrophic forgetting and it is difficult to prevent due to practical constraints. For instance, the amount of data that can be stored or the computational resources that can be used might be limited. Moreover, applications increasingly rely on large pre-trained neural networks, such as pre-trained Transformers, since the resources or data might not be available in sufficiently large quantities to practitioners to train the model from scratch. In this paper, we devise a method to incrementally train a model on a sequence of tasks using pre-trained Transformers and extending them with Adapters. Different than the existing approaches, our method is able to scale to a large number of tasks without significant overhead and allows sharing information across tasks. On both image and text classification tasks, we empirically demonstrate that our method maintains a good predictive performance without retraining the model or increasing the number of model parameters over time. The resulting model is also significantly faster at inference time compared to Adapter-based state-of-the-art methods.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- DyTox: Transformers for Continual Learning with DYnamic TOken eXpansion2022
- What to Pre-Train on? Efficient Intermediate Task Selection2021
- Incremental Few-shot Text Classification with Multi-round New Classes: Formulation, Dataset and System2021
- Efficient Meta Lifelong-Learning with Limited Memory2020
- Exploring and Predicting Transferability across NLP Tasks2020
- MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfer2020
- Lifelong Language Knowledge Distillation2020
- Continual learning of context-dependent processing in neural networksNature Machine Intelligence, 2019
- Learning without ForgettingIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Catastrophic Interference in Connectionist Networks: The Sequential Learning Problem1989