Abstract
Standard artificial neural networks suffer from the well-known issue of catastrophic forgetting, making continual or lifelong learning difficult for machine learning. In recent years, numerous methods have been proposed for continual learning, but due to differences in evaluation protocols it is difficult to directly compare their performance. To enable more structured comparisons, we describe three continual learning scenarios based on whether at test time task identity is provided and—in case it is not—whether it must be inferred. Any sequence of well-defined tasks can be performed according to each scenario. Using the split and permuted MNIST task protocols, for each scenario we carry out an extensive comparison of recently proposed continual learning methods. We demonstrate substantial differences between the three scenarios in terms of difficulty and in terms of how efficient different methods are. In particular, when task identity must be inferred (i.e., class incremental learning), we find that regularization-based approaches (e.g., elastic weight consolidation) fail and that replaying representations of previous experiences seems required for solving this scenario.
Introduction
Artificial neural networks are notoriously prone to catastrophic forgetting: the abrupt loss of previously acquired knowledge upon learning new information. While many algorithms have been proposed to mitigate this, the lack of standardized evaluation protocols has made it difficult to compare their true efficacy. This research addresses this "chaos of forgetting" by establishing a framework of three distinct scenarios for continual learning, providing a clear lens through which to evaluate state-of-the-art methods.
The Three Scenarios of Continual Learning
The authors categorize continual learning into three scenarios of increasing difficulty, defined by the availability and requirement of task identity:
- Task-Incremental Learning (Task-IL): The model is explicitly told which task it is performing at test time. This allows for "multi-headed" architectures where specific output units are dedicated to each task.
- Domain-Incremental Learning (Domain-IL): Task identity is not provided at test time, but the model only needs to solve the current task (e.g., binary classification) without needing to identify the specific domain or context.
- Class-Incremental Learning (Class-IL): The most challenging scenario. The model must solve the task and simultaneously infer the task identity (e.g., distinguishing between digits from the current task and all previous tasks).
Experimental Benchmarks
To evaluate these scenarios, the study utilizes two classic benchmarks adapted for sequential learning:
- Split MNIST: The standard 0-9 digits are split into five sequential pairs (e.g., 0 vs 1, then 2 vs 3). Split MNIST Task 1 Source, p. 3
- Permuted MNIST: The network learns to classify all ten digits, but input pixels are randomly shuffled differently for each new task, creating distinct "domains." Permuted MNIST Task 10 Source, p. 4
Key Insights and Results
The benchmarking of various strategies—including regularization (EWC, SI), replay (DGR, iCaRL), and task-specific components (XdG)—revealed critical findings regarding the influence of task identity and the effectiveness of different algorithmic approaches:
Task Identity is the Dealbreaker
The availability of task identity at test time is the single most influential factor in an algorithm's success. A method that performs exceptionally in Task-IL might be entirely ineffective in Class-IL. For instance, on Split MNIST, almost all methods achieved >98% accuracy in the Task-IL setting.
The Failure of Regularization
Popular regularization methods like Elastic Weight Consolidation (EWC) and Synaptic Intelligence (SI) are favored for their efficiency and lack of data storage requirements. However, these methods completely fail in Class-IL settings, with performance collapsing to near-chance levels (~20% accuracy on Split MNIST).
Replay is Currently Essential
For the most challenging Class-IL scenario, only "replay-based" methods—which either store real exemplars or use generative models to "dream" up old data—maintained high performance. Generative Replay (DGR) and iCaRL, for example, maintained >90% accuracy where others failed.
Conclusion
While replay-based strategies currently lead the field, their scalability remains an open question. Generating high-quality pseudo-data for simple digits like MNIST is straightforward, but doing so for complex, high-resolution datasets like ImageNet is significantly harder. Future research may need to explore hybrid approaches that combine the efficiency of regularization with the robustness of experience replay to achieve truly lifelong learning.
Summary updated