Abstract
In lifelong learning, data are used to improve performance not only on the current task, but also on previously encountered, and as yet unencountered tasks. In contrast, classical machine learning which starts from a blank slate, or tabula rasa, uses data only for the single task at hand. While typical transfer learning algorithms can improve performance on future tasks, their performance on prior tasks degrades upon learning new tasks (called forgetting). The goal of lifelong learning should be to not only improve performance on future tasks (forward transfer) but also to improve performance on past tasks (backward transfer) with any new data. Our key insight is that we can synergistically ensemble representations that were learned independently on disparate tasks to enable both forward and backward transfer. We demonstrate this insight with two algorithms: representation ensembles of (1) trees and (2) networks. Both algorithms demonstrate forward and backward transfer in a variety of simulated and benchmark data scenarios, including tabular, image, spoken, and adversarial tasks.
Introduction: Moving Beyond "Not Forgetting"
In classical machine learning, models usually start from a "blank slate" and are optimized for a single task. When trained on a sequence of different tasks, these models suffer from catastrophic forgetting: learning a new task causes the model to abruptly lose its ability to perform previous tasks. While many lifelong learning researchers focus on simply mitigating this forgetting, we argue that the bar is set too low. In biological systems, learning a new skill often improves our proficiency in old ones. We propose a framework for "progressive learning" where every new piece of data has the potential to improve performance across the entire lifespan of the agent.
The Progressive Learning Framework
We propose a modular architecture for hypotheses ($h$) composed of three distinct parts:
- Transformers ($u$): These map raw input into an internal representation space (e.g., leaf nodes of a decision tree or the penultimate layer of a neural network).
- Voters ($v$): These map those representations into posterior distributions (class probabilities).
- Deciders ($w$): These aggregate the votes to make a final prediction.
The core innovation is ensembling representations. Instead of just using the representation learned for Task A to solve Task A, the system uses the transformers from all encountered tasks. When a new task arrives, the system learns a new transformer for it, but it also "re-votes" on all previous tasks using this new representation. This generalizes ensembling independently learned representations and complements ensembling dependent representations.
Algorithms: Lifelong Forests and Networks
We implement this framework via two specific algorithms:
- Lifelong Forests (L2F): Based on ensembling decision forests where each tree serves as a transformer.
- Lifelong Networks (L2N): Based on ensembling deep neural networks (specifically using a LeNet backbone) where the penultimate layers serve as transformers and k-Nearest Neighbors act as voters.
Empirical Evaluation and Results
We evaluated our approach across several domains, including simulated Gaussian XOR/N-XOR tasks and vision benchmarks like CIFAR 10x10 (CIFAR-100 split into 10 sequential tasks). To measure success, we define Transfer Efficiency (TE) as the ratio of the error of a single-task learner to the error of our progressive learner. A TE > 1 indicates that the model is successfully leveraging knowledge across tasks.
Key Findings
- Backward Transfer: Unlike reference algorithms (such as EWC or Prog-NN), L2F and L2N consistently achieved TE > 1 for previous tasks. As shown in the XOR/N-XOR experiments, the generalization error on the first task (XOR) actually decreases after the model begins learning the second task (N-XOR).
- Forward Transfer: The models also demonstrated the ability to learn new tasks more efficiently by recruiting representations from previous tasks.
- Graceful Forgetting: In adversarial settings where new data is intentionally confusing, the model exhibits "graceful forgetting." Performance on old tasks may dip slightly but does not collapse, as the decider learns to weigh noisy new representations less heavily for those specific tasks.
Conclusion
By ensembling representations rather than just learners, progressive learning allows AI systems to mimic the way biological systems build upon a lifetime of experience. This approach achieves both forward and backward knowledge transfer in quasilinear space and time. Future work will focus on dynamically determining when to build new representations versus recruiting existing ones to further optimize the trade-off between performance and computational cost.
Summary updated