Learning to Remember from a Multi-Task Teacher

Yuwen Xiong, Mengye Ren, Raquel UrtasunarXiv 2019

Abstract

Recent studies on catastrophic forgetting during sequential learning typically focus on fixing the accuracy of the predictions for a previously learned task. In this paper we argue that the outputs of neural networks are subject to rapid changes when learning a new data distribution, and networks that appear to "forget" everything still contain useful representation towards previous tasks. Instead of enforcing the output accuracy to stay the same, we propose to reduce the effect of catastrophic forgetting on the representation level, as the output layer can be quickly recovered later with a small number of examples. Towards this goal, we propose an experimental setup that measures the amount of representational forgetting, and develop a novel meta-learning algorithm to overcome this issue. The proposed meta-learner produces weight updates of a sequential learning network, mimicking a multi-task teacher network's representation. We show that our meta-learner can improve its learned representations on new tasks, while maintaining a good representation for old tasks.

Introduction

In deep learning, "catastrophic forgetting" occurs when a model trained on a new task (Task B) overwrites the weight configurations necessary for a previously mastered task (Task A). Traditional research focuses on maintaining output accuracy, but this paper posits that while the output layer may become miscalibrated, the underlying feature representations in hidden layers often remain intact. By protecting these representations, the model retains a foundation of knowledge that allows for the rapid recovery of old tasks with minimal data.

Methodology

The authors introduce a two-pronged approach: a novel measurement for representational forgetting and a meta-learning algorithm to mitigate it.

  1. Representational Readout: To quantify true forgetting, the researchers freeze the hidden layers and train a simple linear readout layer on the old task's data. This reveals how much task-relevant information is preserved in the features, independent of the original output layer's state.
  2. Meta-Learning with a Multi-Task Teacher: The core of the solution is a meta-learner (a stacked LSTM) that learns a custom weight update rule. It uses an offline "Teacher" network—trained on all tasks simultaneously—as an oracle for the ideal feature space.
The proposed meta-learning architecture. Left: The Teacher-Student framework where a multi-task teacher guides a sequential student. Right: The internal LSTM-based meta-learner that generates weight updates.

During sequential training, the meta-learner modulates the Student's updates for Task B to ensure that the resulting internal representations stay as close as possible to the Teacher’s multi-task representations. This "learning how to learn" approach allows the model to discover which weights are critical for old tasks and protect them dynamically.

Experimental Results

The framework was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, and Tiny-ImageNet. The results demonstrate that the meta-learner significantly outperforms standard regularization techniques like Elastic Weight Consolidation (EWC) and Learning without Forgetting (LwF).

Experimental results on CIFAR tasks. 'Ours' (light green) demonstrates superior retention on Task A while matching teacher performance on Task B, outperforming baselines like EWC and LwF.

In the CIFAR-10 Task A $\to$ B setup, the proposed model lost only 4% accuracy on Task A, whereas standard SGD and other popular methods lost over 10%. On the new task (Task B), the meta-learner achieved performance nearly identical to the multi-task teacher, proving that protecting old knowledge does not necessarily hinder the acquisition of new features.

Key Insights and Generalization

  • Representations are Stickier than Outputs: The "Representational Readout" experiments confirm that hidden features are more resilient than final predictions.
  • Dynamic Plasticity: The meta-learner does not just scale learning rates; it can reverse gradient directions if necessary to maintain alignment with the teacher's representation.
  • Zero-Shot Generalization: Once trained, the meta-learner can be applied to entirely new datasets (like Tiny-ImageNet) without retraining, indicating it has learned a general strategy for stability.

Conclusion

By shifting the focus from output preservation to representational stability, this work provides a robust path forward for sequential learning. While the requirement of a multi-task teacher during meta-training adds complexity, the resulting meta-learner offers superior retention and generalization capabilities compared to manually designed regularization terms. Future work will focus on extending these results to longer task sequences and reducing the computational cost of the meta-training phase.

Summary updated

BibTeX
@misc{xiong2019learning,
  author = {Yuwen Xiong and Mengye Ren and Raquel Urtasun},
  title = {{Learning to Remember from a Multi-Task Teacher}},
  year = {2019},
  eprint = {1910.04650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.04650},
}
Figure