Simple Lifelong Learning Machines

Joshua T. Vogelstein, Jayanta Dey, Hayden S. Helm, Will LeVine, Ronak Mehta, Ali Geisa, Haoyin Xu, Gido M. van de Ven, Chenyu Gao, Weiwei Yang, Bryan Tower, Jonathan Larson, Christopher M. White, Carey E. Priebe, White, Christopher M., Priebe, Carey E.

Abstract

In lifelong learning, data are used to improve performance not only on the present task, but also on past and future (unencountered) tasks. While typical transfer learning algorithms can improve performance on future tasks, their performance on prior tasks degrades upon learning new tasks (called forgetting). Many recent approaches for continual or lifelong learning have attempted to maintain performance on old tasks given new tasks. But striving to avoid forgetting sets the goal unnecessarily low. The goal of lifelong learning should be to use data to improve performance on both future tasks (forward transfer) and past tasks (backward transfer). In this paper, we show that a simple approach — representation ensembling — demonstrates both forward and backward transfer in a variety of simulated and benchmark data scenarios, including tabular, vision (CIFAR-100, 5-dataset, Split Mini-Imagenet, and Food1k), and speech (spoken digit), in contrast to various reference algorithms, which typically failed to transfer either forward or backward, or both. Moreover, our proposed approach can flexibly operate with or without a computational budget.

Introduction

In classical machine learning, models are typically trained on a single task. When forced to learn tasks sequentially, they suffer from catastrophic forgetting—the performance on Task A plummets as soon as the model starts learning Task B. Current "continual learning" solutions usually try to manage the stability-plasticity trade-off, essentially fighting to not lose old knowledge.

However, a true lifelong learner should aim higher. It should exhibit:

  1. Forward Transfer: Using knowledge from past tasks to learn new tasks faster or better.
  2. Backward Transfer: Using data from new tasks to actually improve performance on previously learned tasks.

Existing modular or regularization-based methods often fail to achieve both, frequently sacrificing one for the other or failing at both in complex, real-world scenarios. This paper introduces SILLY (Simple Lifelong Learning), a representation ensembling approach designed to overcome these limitations.

Methods: Representation Ensembling

The core innovation of SILLY is Representation Ensembling. Instead of forcing a single model to learn everything, the architecture is modular, composed of three distinct parts: Encoders, Channels, and Decoders.

Architectural comparison of lifelong learning strategies, highlighting SILLY's representation ensembling (E).
  • SILLY-N (Networks): For every new task, a new deep network "encoder" (backbone) is trained. To perform a task, a "channel" is created that ensembles the representations from all available encoders (past and present).
  • SILLY-F (Forests): This version uses decision forests as encoders. It leverages "honest trees" where leaf posteriors are updated using data from different tasks, allowing for efficient ensembling without retraining the entire forest structure.
  • Forward & Backward Mechanisms:
    • Forward: A new task's channel integrates information from all previous encoders.
  • Backward: When a new task arrives, its encoder provides a new perspective on the data. By passing a small amount of replayed old-task data through this new encoder, the old tasks' channels can be updated to improve their accuracy.

Crucially, SILLY can operate in two modes: Resource Growing (adding a new encoder for every task) or Constant Resource (stopping at a fixed budget of encoders and just training new channels using the existing "knowledge base").

Experimental Evaluation

The authors evaluated SILLY against 16 reference algorithms (including EWC, LWF, and ProgNN) on an extensive suite of benchmarks:

  • Vision: CIFAR-100 (split into 10 tasks), "5-dataset" (CIFAR-10, MNIST, SVHN, notMNIST, Fashion-MNIST), Split Mini-Imagenet, and Food1k (50 tasks).
  • Real-World Video: CORe50 (110 tasks).
  • Speech: The Spoken Digit dataset.
  • Tabular: A flattened version of CIFAR-10x10 to test the forest-based SILLY-F.

Key Results and Insights

SILLY-N outperformed all reference algorithms in terms of overall transfer across vision and speech datasets. Unlike almost all baselines, SILLY consistently shows positive backward transfer. It doesn't just "not forget"; it actually gets smarter at Task 1 after seeing Task 2.

Performance metrics across benchmarks showing SILLY's superior forward and backward transfer.

Key Insights:

  • Independence as a Feature: By training encoders independently, SILLY avoids the complex interference patterns that cause forgetting in joint-training schemes. It also allows for massive parallelization during training.
  • Graceful Forgetting: In experiments where Task B was "adversarial" to Task A (e.g., rotated data), SILLY demonstrated "graceful forgetting"—it ignored the harmful new info for the old task—while standard deep networks were completely derailed.
  • Efficiency: SILLY-N requires only quasilinear time and space relative to sample size. Even in "Constant Resource" mode (e.g., limited to 20 encoders for 110 tasks), SILLY maintained high performance, proving it can scale to long-term learning scenarios.

Conclusion

SILLY demonstrates that representation ensembling is a powerful and flexible principle for lifelong learning. While the current implementation is "task-aware," future work will focus on "task-unaware" settings where the model must infer the task. Additionally, the modular nature of SILLY makes it a prime candidate for federated learning environments where data privacy is paramount.

Summary updated

BibTeX
@article{vogelstein2020simple,
  author = {Joshua T. Vogelstein and Jayanta Dey and Hayden S. Helm and Will LeVine and Ronak Mehta and Ali Geisa and Haoyin Xu and Gido M. van de Ven and Chenyu Gao and Weiwei Yang and Bryan Tower and Jonathan Larson and Christopher M. White and Carey E. Priebe and White, Christopher M. and Priebe, Carey E.},
  title = {{Simple Lifelong Learning Machines}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2020},
}
Figure