Abstract: Existing literature in Continual Learning (CL) has focused on overcoming catastrophic forgetting, the inability of the learner to recall how to perform tasks observed in the past. There are however other desirable properties of a CL system, such as the ability to transfer knowledge from previous tasks and to scale memory and compute sub-linearly with the number of tasks. Since most current benchmarks focus only on forgetting using short streams of tasks, we first propose a new suite of benchmarks to probe CL algorithms across these new axes. Finally, we introduce a new modular architecture, whose modules represent atomic skills that can be composed to perform a certain task. Learning a task reduces to figuring out which past modules to re-use, and which new modules to instantiate to solve the current task. Our learning algorithm leverages a task-driven prior over the exponential search space of all possible ways to combine modules, enabling efficient learning on long streams of tasks. Our experiments show that this modular architecture and learning algorithm perform competitively on widely used CL benchmarks while yielding superior performance on the more challenging benchmarks we introduce in this work.
Introduction
Continual Learning (CL) research has historically fixated on solving catastrophic forgetting—the tendency of neural networks to lose previously acquired knowledge when learning new tasks. However, a truly effective lifelong learner must do more than just retain information; it should actively transfer knowledge to learn new tasks faster and scale efficiently in terms of memory and compute.
The authors argue that standard benchmarks like Permuted MNIST are insufficient for evaluating these properties. They introduce the CTrL (Continual Transfer Learning) Benchmark and a novel architecture, MNTDP (Modular Networks with Task-Driven Prior), designed to learn reusable skills through module composition.
Methods: Modular Networks and Task-Driven Priors
Instead of a monolithic network, MNTDP employs a grid of neural modules (e.g., ResNet blocks). A task is solved by routing data through a specific path of modules. To prevent forgetting, modules used in previous tasks are frozen. For new tasks, the system can either reuse these frozen modules or instantiate new ones.
The primary challenge in modular architectures is the exponential growth of possible paths. MNTDP addresses this with a task-driven prior. When a new task arrives, the model identifies the most similar past task by evaluating data through existing feature extractors. It then restricts its architectural search to slight perturbations of that specific past task's path. The authors propose two search variants:
- MNTDP-S (Stochastic): Uses reinforcement learning (REINFORCE) to sample paths.
- MNTDP-D (Deterministic): Exhaustively trains all paths within the restricted search space in parallel.
The CTrL Benchmark
To better measure transfer and scalability, the authors introduced the CTrL benchmark, built from seven diverse vision datasets. It includes specific streams to isolate key CL properties:
- Direct Transfer and Knowledge Updating: Evaluated via $\mathcal{S}^-$ and $\mathcal{S}^+$ streams.
- Distribution Shifts: $\mathcal{S}^{in}$ and $\mathcal{S}^{out}$ test transfer when input or output distributions change.
- Scalability: $\mathcal{S}^{long}$ consists of a 100-task stream to test sample efficiency and memory growth over time.
Key Results
MNTDP-D demonstrates significant advantages on long-term task streams. On the 100-task $\mathcal{S}^{long}$ stream, it achieved an average accuracy of 75%, dramatically outperforming independent models (57%) and fixed-capacity methods like EWC (27%).
As shown in the radar charts, MNTDP-D provides a balanced performance profile. Notably, it achieved its high accuracy while using less than half the memory of the independent models baseline (102 MB vs 243 MB), proving that the task-driven prior successfully enables sub-linear scaling through module sharing.
Limitations and Conclusion
While MNTDP excels at scaling and output distribution shifts, it remains vulnerable to drastic input distribution shifts (as seen in the $\mathcal{S}^{in}$ stream) because its restricted search space assumes shared early layers. Additionally, while MNTDP-D is parallelizable, it is computationally expensive in terms of total FLOPs. Future work will focus on more flexible priors and exploring compositional task descriptors to further enhance transfer capabilities in lifelong learning systems.
Summary updated