Overcoming catastrophic forgetting problem by weight consolidation and long-term memory

Shixian Wen, Laurent IttiarXiv 2018

Abstract

Artificial Neural Networks (ANNs) frequently suffer from catastrophic forgetting, where learning new tasks overwrites knowledge of previous ones. This paper introduces Adversarial Memory Networks (AMN), a novel architecture that repurposes adversarial subspaces—regions of the parameter space typically associated with misclassification—as a form of long-term memory. By combining these task-specific memory units with Elastic Weight Consolidation (EWC), the proposed method achieves superior retention on sequential benchmarks like Disjoint MNIST and CIFAR-10. Experimental results show that the hybrid AD+EWC approach maintains near-original accuracy on early tasks even after multiple subsequent training phases, significantly outperforming standard gradient descent and EWC alone.

Introduction

A fundamental challenge in artificial intelligence is continual learning: the ability to acquire new knowledge without losing previously learned information. In standard ANNs, this is hindered by catastrophic forgetting, where the gradient descent process optimized for a new task (Task B) inevitably overwrites the weights optimized for a prior task (Task A).

Existing mitigation strategies like Elastic Weight Consolidation (EWC) penalize changes to weights deemed important for previous tasks. While effective to an extent, EWC can trap the model in suboptimal regions of the parameter space. Other methods involve "data replay," which necessitates storing previous training data, raising concerns regarding memory efficiency and data privacy. This research proposes storing the "essence" of a task as abstract, high-level memory within the network itself, drawing inspiration from the mammalian brain's use of the neocortex for long-term storage.

Adversarial Memory Networks

The core innovation of this work is the treatment of adversarial subspaces as a feature rather than a bug. The authors posit that the adversarial subspace of a class captures a high-level, abstract representation of that class.

Architecture of the Adversarial Memory Network showing neurons with task-specific memory units and the gradient update process.

The AMN architecture introduces "Adversarial Memory Units" (float tensors) to each neuron. Unlike standard weights, these units are updated using the Fast Gradient Sign Method (FGSM) to find the intersection of adversarial subspaces for all classes within a given task. This "Adversarial Direction" (AD) method allows the network to store task-specific long-term memories. In the hybrid AD+EWC approach, EWC manages the "normal" weights to maintain a joint probability distribution, while the AD units provide the task-specific context needed for retention. Crucially, only the memory units corresponding to the current task are activated during training and inference, preventing cross-task interference.

Experimental Evaluation

The researchers evaluated the AMN framework on two primary benchmarks: Disjoint MNIST and Disjoint CIFAR-10, each split into three sequential tasks. They also tested a modified LeNet architecture to demonstrate compatibility with convolutional layers.

Performance comparison on sequential tasks showing the stability of the AD+EWC hybrid compared to EWC and standard gradient descent.

The results highlight a significant performance gap between the proposed method and traditional approaches. On the Disjoint MNIST benchmark, after learning all three tasks, Task 1 accuracy for standard Gradient Descent (PGD) plummeted to 32.95%, and EWC dropped to 41.02%. In contrast, the AD+EWC hybrid maintained a high accuracy of 94.53%. Similar trends were observed in the more complex CIFAR-10 dataset, where PGD and EWC fell to chance levels on early tasks, while AD+EWC retained 67.73% accuracy on Task 1 (compared to an initial 70.10%). These findings suggest that adversarial directions are uniquely suited for representing task-wide abstract information in a stable manner.

Conclusion and Future Work

Adversarial Memory Networks provide a robust mechanism for overcoming catastrophic forgetting by leveraging the high-level representations found in adversarial subspaces. By combining task-specific memory units with weight consolidation, the model achieves state-of-the-art retention without the need for data replay.

Despite these successes, several areas for future research remain. The current implementation requires explicit task identity during inference to activate the correct memory units. Future iterations could explore methods for the model to infer task identity autonomously. Additionally, while the method is applicable to CNNs, the mathematical complexity of applying EWC constraints to convolutional and pooling layers warrants further optimization. Finally, as the number of tasks grows, the linear increase in memory units presents a scalability challenge that might be addressed through unit sharing or compression techniques.

Summary updated

BibTeX
@misc{wen2018overcoming,
  author = {Shixian Wen and Laurent Itti},
  title = {{Overcoming catastrophic forgetting problem by weight consolidation and long-term memory}},
  year = {2018},
  eprint = {1805.07441},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07441},
}
Figure