Continual Learning Long Short Term Memory

Xin Guo, Yu Tian, Qinghan Xue, Panos Lampropoulos, Steven Eliuk, Kenneth E. Barner, Xiaolong WangEMNLP 2020

Abstract

Continual learning in Recurrent Neural Networks (RNNs) is often hindered by catastrophic forgetting, where new information overwrites previously learned knowledge. This paper proposes the Continual Learning Long Short Term Memory (CL-LSTM) cell, a novel architecture that facilitates sequential task learning. By utilizing modular task-specific weights, inter-task communication via "broadcast" and "collect" modules, and a task-agnostic output aggregation method, CL-LSTM maintains high performance across multiple tasks without requiring task identifiers during inference.

Introduction

Deep learning models typically struggle with the stability-plasticity dilemma: they must be plastic enough to acquire new knowledge but stable enough to prevent the loss of existing knowledge. In the context of Natural Language Processing (NLP), this often manifests as catastrophic forgetting during sequential task training. Furthermore, many existing continual learning frameworks rely on a "Task ID" during inference to select appropriate parameters, a requirement that is often unrealistic for real-world streaming data.

The CL-LSTM Architecture

The CL-LSTM reimagines the standard LSTM cell to support incremental learning through three primary mechanisms:

  1. Task-oriented Modules: The model allocates a new module ($M_k$) for each new task. Once training for a task is complete, its weights are frozen to ensure zero forgetting of core features.
  2. Hidden State Sharing: To leverage cross-task correlations, the architecture includes:
  3. Collect Module ($M^c$): Enables the current task to extract relevant features from the hidden states of previous tasks (Forward Transfer).
  4. Broadcast Module ($M^b$): Allows information from the current task to influence the hidden states of previous tasks (Backward Transfer).
  5. Unified Output Aggregation: To eliminate the need for a Task ID at test time, the model sums the hidden states of all modules: $h_{out} = \sum h_i$. This fusion mechanism allows the network to remain task-agnostic during deployment.
Comparison of task-dependent vs. task-agnostic inference (left) and the internal CL-LSTM cell architecture (right).

Experimental Evaluation

The model was evaluated on five Spoken Language Understanding (SLU) datasets: ATIS, Snips, Weather Reminder (WR), MIT Movie (MV), and MIT Restaurant (RT). Experiments focused on multi-task scenarios involving slot filling and intent detection. The researchers compared CL-LSTM against standard baselines, including Learning Without Forgetting (LWF) and Elastic Weight Consolidation (EWC), as well as ablated versions of the proposed architecture (CL-LSTM- and CL-LSTM+).

Results and Discussion

CL-LSTM consistently outperforms standard baselines. For instance, in a 3-task sequence with only 50 exemplars per task, CL-LSTM achieved 50.46% semantic accuracy, significantly higher than EWC (37.84%) and LWF (40.79%). As shown in the performance table below, the model maintains a significant lead even as the number of available exemplars increases.

Performance comparison of CL-LSTM against baselines across varying exemplar counts.

Key findings include:

  • Interaction Benefits: The inclusion of broadcast and collect modules significantly boosts accuracy compared to simple weight freezing (CL-LSTM-), proving that inter-task correlation is vital.
  • Task-Agnostic Inference: The summation of hidden states effectively removes the dependency on Task IDs, making the model suitable for production environments.
  • Scalability: While the model effectively eliminates forgetting, it does so through parameter expansion, leading to linear growth in model size relative to the number of tasks.

Conclusion

The CL-LSTM provides a robust framework for continual learning in NLP by balancing stability and plasticity. By integrating modularity with sophisticated state-sharing mechanisms, it achieves state-of-the-art results while remaining practical for real-world applications where task labels are unavailable at inference time. Future work will investigate more complex aggregation methods and network pruning to manage parameter growth.

Summary updated

BibTeX
@inproceedings{guo2020continual,
  author = {Xin Guo and Yu Tian and Qinghan Xue and Panos Lampropoulos and Steven Eliuk and Kenneth E. Barner and Xiaolong Wang},
  title = {{Continual Learning Long Short Term Memory}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.164},
}
Figure