Continual Learning in Neural Networks

Rahaf AljundiarXiv 2019

Abstract

Artificial neural networks have exceeded human-level performance in accomplishing several individual tasks (e.g. voice recognition, object recognition, and video games). However, such success remains modest compared to human intelligence that can learn and perform an unlimited number of tasks. Humans' ability of learning and accumulating knowledge over their lifetime is an essential aspect of their intelligence. Continual machine learning aims at a higher level of machine intelligence through providing the artificial agents with the ability to learn online from a non-stationary and never-ending stream of data. A key component of such a never-ending learning process is to overcome the catastrophic forgetting of previously seen data, a problem that neural networks are well known to suffer from. The work described in this thesis has been dedicated to the investigation of continual learning and solutions to mitigate the forgetting phenomena in neural networks. To approach the continual learning problem, we first assume a task incremental setting where tasks are received one at a time and data from previous tasks are not stored. Since the task incremental setting can't be assumed in all continual learning scenarios, we also study the more general online continual setting. We consider an infinite stream of data drawn from a non-stationary distribution with a supervisory or self-supervisory training signal. The proposed methods in this thesis have tackled important aspects of continual learning. They were evaluated on different benchmarks and over various learning sequences. Advances in the state of the art of continual learning have been shown and challenges for bringing continual learning into application were critically identified.

Introduction: The Stability-Plasticity Dilemma

Modern artificial intelligence excels in static environments where data is independent and identically distributed (i.i.d.). However, real-world applications often involve non-stationary data streams where information arrives sequentially. In such scenarios, standard neural networks face the stability-plasticity dilemma: the challenge of integrating new information (plasticity) without degrading previously acquired knowledge (stability). This degradation, known as catastrophic forgetting, occurs when weight updates for a new task overwrite the parameters essential for prior tasks.

This research by Rahaf Aljundi investigates mechanisms to move AI closer to biological lifelong learning. By developing strategies that range from modular architectural isolation to unsupervised parameter importance estimation, this work provides a comprehensive framework for mitigating forgetting in both task-incremental and online continual learning settings.

Methodology and Innovations

1. Expert Gate: Task-Based Architectural Isolation

In task-incremental settings, where task boundaries are clearly defined, the Expert Gate system proposes a "Network of Experts" architecture. Each new task is assigned a specialized expert module. To route inputs correctly at test time without explicit task labels, a shallow autoencoder is trained for each task to learn its specific data manifold. The autoencoder with the lowest reconstruction error identifies the task and activates the corresponding expert, ensuring zero interference between tasks.

2. Memory Aware Synapses (MAS): Unsupervised Importance Estimation

For scenarios with fixed network capacity, Memory Aware Synapses (MAS) offers a way to preserve knowledge by identifying critical parameters. Unlike previous methods that rely on labeled data and loss functions, MAS estimates parameter importance in an unsupervised, online manner. It calculates the sensitivity of the model's output function to changes in each weight. During the learning of subsequent tasks, updates to these high-importance weights are penalized, effectively protecting the core knowledge of the network.

3. Selfless Continual Learning (SCL): Capacity Management

Inspired by the biological principle of lateral inhibition, Selfless Continual Learning (SCL) introduces a regularization technique (SLNID) to enforce representation sparsity. By restricting the number of active neurons for any single task, the model remains "selfless," preserving unused capacity for future learning. This proactive management of network resources significantly reduces interference as the number of tasks grows.

4. Gradient-based Sample Selection (GSS): Optimized Replay

In online continual learning, where data is seen only once, keeping a small memory buffer of past samples (replay) is a common strategy. Gradient-based Sample Selection (GSS) improves upon random sampling by selecting buffer candidates based on their gradient diversity. This ensures that the memory buffer represents the most informative regions of the optimization landscape, facilitating more effective knowledge consolidation.

Experimental Results

The proposed methods were evaluated on a variety of benchmarks, including standard vision datasets (MNIST, CIFAR, ImageNet), fine-grained classification tasks, and real-world video streams for face recognition and drone navigation.

  • Task Identification: The Expert Gate mechanism correctly identified the appropriate expert for 99.2% of test samples, outperforming joint training approaches.
  • Forgetting Mitigation: MAS achieved state-of-the-art performance, showing a negligible forgetting rate of just 0.49% across an 8-task sequence.
  • Capacity Efficiency: SCL/SLNID improved average accuracy by 1.8% over baseline methods on complex object recognition sequences, demonstrating the value of enforced sparsity.
  • Online Adaptation: In experiments involving actor recognition in television series, the proposed online protocols allowed for continuous knowledge accumulation where standard baselines failed after a few episodes.

Conclusion

This thesis provides a robust set of tools for addressing catastrophic forgetting in neural networks. By leveraging autoencoders for task routing, unsupervised sensitivity analysis for weight protection, and sparsity for capacity management, the research moves AI significantly closer to the goal of autonomous, lifelong learning. Future work will focus on modular architectures that support component sharing and the integration of meta-learning to further enhance the efficiency of continual adaptation.

Summary updated

BibTeX
@misc{aljundi2019continual,
  author = {Rahaf Aljundi},
  title = {{Continual Learning in Neural Networks}},
  year = {2019},
  eprint = {1910.02718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.02718},
}
Figure